Package org.sonar.python.semantic
Interface SymbolTable
-
public interface SymbolTable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SymbolgetSymbol(com.sonar.sslr.api.AstNode node)Find symbol associated with the node.Set<Symbol>symbols(com.sonar.sslr.api.AstNode scopeTree)
-
-
-
Method Detail
-
getSymbol
@CheckForNull Symbol getSymbol(com.sonar.sslr.api.AstNode node)
Find symbol associated with the node. Works only for ast nodes with typePythonGrammar.CALL_EXPR,PythonGrammar.ATTRIBUTE_REFandPythonGrammar.ATOM- Parameters:
node- of typePythonGrammar.CALL_EXPR,PythonGrammar.ATTRIBUTE_REForPythonGrammar.ATOM- Returns:
- symbol for the node
-
-