public class SymbolVisitor extends DoubleDispatchVisitor
| Constructor and Description |
|---|
SymbolVisitor(Map<Tree,Scope> treeScopeMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
visitArrowFunction(ArrowFunctionTree tree) |
void |
visitAssignmentExpression(AssignmentExpressionTree tree)
When an assignment is done to a symbol that has not been declared before,
a global variable is created with the left-hand side identifier as name.
|
void |
visitBlock(BlockTree tree) |
void |
visitCatchBlock(CatchBlockTree tree) |
void |
visitClass(ClassTree tree) |
void |
visitForObjectStatement(ForObjectStatementTree tree) |
void |
visitForStatement(ForStatementTree tree) |
void |
visitFunctionDeclaration(FunctionDeclarationTree tree) |
void |
visitFunctionExpression(FunctionExpressionTree tree) |
void |
visitIdentifier(IdentifierTree tree) |
void |
visitMethodDeclaration(MethodDeclarationTree tree) |
void |
visitScript(ScriptTree tree) |
void |
visitSwitchStatement(SwitchStatementTree tree) |
void |
visitUnaryExpression(UnaryExpressionTree tree) |
getContext, scan, scan, scanChildren, scanTree, visitArrayBindingPattern, visitArrayLiteral, visitBinaryExpression, visitBindingProperty, visitBreakStatement, visitCallExpression, visitCaseClause, visitComment, visitComputedPropertyName, visitConditionalExpression, visitContinueStatement, visitDebugger, visitDefaultClause, visitDefaultExportDeclaration, visitDoWhileStatement, visitElseClause, visitEmptyStatement, visitExportClause, visitExportDefaultBinding, visitExportDefaultBindingWithExportList, visitExportDefaultBindingWithNameSpaceExport, visitExpressionStatement, visitFieldDeclaration, visitFromClause, visitIfStatement, visitImportClause, visitImportDeclaration, visitImportModuleDeclaration, visitInitializedBindingElement, visitJsxClosingElement, visitJsxIdentifier, visitJsxJavaScriptExpression, visitJsxOpeningElement, visitJsxSelfClosingElement, visitJsxSpreadAttribute, visitJsxStandardAttribute, visitJsxStandardElement, visitJsxText, visitLabelledStatement, visitLiteral, visitMemberExpression, visitModule, visitNamedExportDeclaration, visitNameSpaceExportDeclaration, visitNewExpression, visitNewTarget, visitObjectBindingPattern, visitObjectLiteral, visitPairProperty, visitParameterList, visitParenthesisedExpression, visitRestElement, visitReturnStatement, visitSpecifier, visitSpecifierList, visitSpreadElement, visitSuper, visitTaggedTemplate, visitTemplateCharacters, visitTemplateExpression, visitTemplateLiteral, visitThrowStatement, visitToken, visitTryStatement, visitVariableDeclaration, visitVariableStatement, visitWhileStatement, visitWithStatement, visitYieldExpressionpublic void visitScript(ScriptTree tree)
visitScript in class DoubleDispatchVisitorpublic void visitBlock(BlockTree tree)
visitBlock in class DoubleDispatchVisitorpublic void visitForStatement(ForStatementTree tree)
visitForStatement in class DoubleDispatchVisitorpublic void visitSwitchStatement(SwitchStatementTree tree)
visitSwitchStatement in class DoubleDispatchVisitorpublic void visitMethodDeclaration(MethodDeclarationTree tree)
visitMethodDeclaration in class DoubleDispatchVisitorpublic void visitCatchBlock(CatchBlockTree tree)
visitCatchBlock in class DoubleDispatchVisitorpublic void visitFunctionDeclaration(FunctionDeclarationTree tree)
visitFunctionDeclaration in class DoubleDispatchVisitorpublic void visitFunctionExpression(FunctionExpressionTree tree)
visitFunctionExpression in class DoubleDispatchVisitorpublic void visitArrowFunction(ArrowFunctionTree tree)
visitArrowFunction in class DoubleDispatchVisitorpublic void visitClass(ClassTree tree)
visitClass in class DoubleDispatchVisitorpublic void visitAssignmentExpression(AssignmentExpressionTree tree)
visitAssignmentExpression in class DoubleDispatchVisitorpublic void visitIdentifier(IdentifierTree tree)
visitIdentifier in class DoubleDispatchVisitorpublic void visitUnaryExpression(UnaryExpressionTree tree)
visitUnaryExpression in class DoubleDispatchVisitorpublic void visitForObjectStatement(ForObjectStatementTree tree)
visitForObjectStatement in class DoubleDispatchVisitorCopyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.