1
/*******************************************************************************
2
* Copyright (c) 2006, 2009 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.internal.core.dom.lrparser.c99.bindings;
13
import org.eclipse.cdt.core.dom.IName;
14
import org.eclipse.cdt.core.dom.ast.DOMException;
15
import org.eclipse.cdt.core.dom.ast.EScopeKind;
16
import org.eclipse.cdt.core.dom.ast.IASTName;
17
import org.eclipse.cdt.core.dom.ast.IASTNode;
18
import org.eclipse.cdt.core.dom.ast.IBinding;
19
import org.eclipse.cdt.core.dom.ast.IScope;
20
import org.eclipse.cdt.core.index.IIndexFileSet;
21
import org.eclipse.cdt.internal.core.dom.parser.IASTInternalScope;
27
@SuppressWarnings({"restriction","unused"})
28
public class C99Scope implements IC99Scope, IASTInternalScope {
32
private IScope parent;
33
private IASTNode physicalNode;
34
private IName scopeName;
35
private final EScopeKind kind;
37
public C99Scope(EScopeKind eKind) {
41
public IScope getParent() {
45
public void setParent(IScope parent) {
49
public IASTNode getPhysicalNode() {
53
public void setPhysicalNode(IASTNode physicalNode) {
54
this.physicalNode = physicalNode;
57
public final EScopeKind getKind() {
61
public IName getScopeName() {
65
public void setScopeName(IName scopeName) {
66
this.scopeName = scopeName;
70
public IBinding[] find( String name) {
71
throw new UnsupportedOperationException();
74
public IBinding getBinding(IASTName name, boolean resolve) {
75
throw new UnsupportedOperationException();
78
public IBinding[] getBindings(IASTName name, boolean resolve, boolean prefixLookup) {
79
throw new UnsupportedOperationException();
85
public void addBinding(IBinding binding) {
86
throw new UnsupportedOperationException();
89
public void addName(IASTName name) {
90
throw new UnsupportedOperationException();
93
public void populateCache() {
96
public IBinding getBinding(IASTName name, boolean resolve,
97
IIndexFileSet acceptLocalBindings) throws DOMException {
98
// TODO Auto-generated method stub
102
public IBinding[] getBindings(IASTName name, boolean resolve,
103
boolean prefixLookup, IIndexFileSet acceptLocalBindings)
104
throws DOMException {
105
// TODO Auto-generated method stub