blob: 4a3f804ba1d4b45b497b5b6c736b593fc9fb3efc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*******************************************************************************
* Copyright (c) 2008, 2012 Symbian Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Andrew Ferguson (Symbian) - Initial implementation
*******************************************************************************/
package org.eclipse.cdt.internal.core.index.composite.cpp;
import org.eclipse.cdt.core.dom.ast.DOMException;
import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IType;
import org.eclipse.cdt.core.index.IIndexBinding;
import org.eclipse.cdt.core.index.IIndexName;
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPUnknownTypeScope;
import org.eclipse.cdt.internal.core.index.IIndexScope;
public class CompositeCPPUnknownScope extends CPPUnknownTypeScope implements IIndexScope {
public CompositeCPPUnknownScope(IIndexBinding binding, IASTName name) {
super((IType) binding, name);
}
@Override
public IIndexName getScopeName() {
return null;
}
@Override
public IIndexScope getParent() {
try {
return (IIndexScope) super.getParent();
} catch (DOMException e) {
return null;
}
}
@Override
public IIndexBinding getScopeBinding() {
return (IIndexBinding) super.getScopeType();
}
}
|