public class Scope extends Object
| Constructor and Description |
|---|
Scope(Scope outer,
Tree tree,
boolean isBlock) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSymbol(Symbol symbol) |
Symbol |
getSymbol(String name) |
List<Symbol> |
getSymbols(Symbol.Kind kind) |
boolean |
isBlock()
Returns true for block scopes (loops, if, etc.), false for function scopes (script, functions, getter, etc.)
|
boolean |
isGlobal() |
Symbol |
lookupSymbol(String name) |
Scope |
outer() |
Tree |
tree() |
public Tree tree()
public Scope outer()
public Symbol lookupSymbol(String name)
name - of the symbol to look forpublic List<Symbol> getSymbols(Symbol.Kind kind)
kind - of the symbols to look forpublic boolean isGlobal()
public void addSymbol(Symbol symbol)
public boolean isBlock()
Copyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.