public class SymbolVisitor extends BaseTreeVisitor
| Constructor and Description |
|---|
SymbolVisitor(SymbolModelBuilder symbolModel,
org.sonar.api.source.Symbolizable symbolizable,
SourceFileOffsets sourceFileOffsets) |
| 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 |
visitCatchBlock(CatchBlockTree tree) |
void |
visitForInStatement(ForInStatementTree tree) |
void |
visitForOfStatement(ForOfStatementTree tree) |
void |
visitFunctionDeclaration(FunctionDeclarationTree tree) |
void |
visitFunctionExpression(FunctionExpressionTree tree) |
void |
visitIdentifier(IdentifierTree tree) |
void |
visitMethodDeclaration(MethodDeclarationTree tree) |
void |
visitScript(ScriptTree tree) |
void |
visitUnaryExpression(UnaryExpressionTree tree) |
getContext, scan, scan, scanFile, visitArrayBindingPattern, visitArrayLiteral, visitBinaryExpression, visitBindingProperty, visitBlock, visitBreakStatement, visitCallExpression, visitCaseClause, visitClassDeclaration, visitComputedPropertyName, visitConditionalExpression, visitContinueStatement, visitDebugger, visitDefaultClause, visitDefaultExportDeclaration, visitDoWhileStatement, visitElseClause, visitEmptyStatement, visitExportClause, visitExpressionStatement, visitForStatement, visitFromClause, visitIfStatement, visitImportClause, visitImportDeclaration, visitImportModuletDeclaration, visitInitializedBindingElement, visitLabelledStatement, visitLiteral, visitMemberExpression, visitModule, visitNamedExportDeclaration, visitNameSpaceExportDeclaration, visitNewExpression, visitObjectBindingPattern, visitObjectLiteral, visitPairProperty, visitParameterList, visitParenthesisedExpression, visitRestElement, visitReturnStatement, visitSpecifier, visitSpecifierList, visitSuper, visitSwitchStatement, visitTaggedTemplate, visitTemplateCharacters, visitTemplateExpression, visitTemplateLiteral, visitThisTree, visitThrowStatement, visitTryStatement, visitVariableDeclaration, visitVariableStatement, visitWhileStatement, visitWithStatement, visitYieldExpressionpublic SymbolVisitor(SymbolModelBuilder symbolModel, @Nullable org.sonar.api.source.Symbolizable symbolizable, @Nullable SourceFileOffsets sourceFileOffsets)
public void visitScript(ScriptTree tree)
visitScript in interface TreeVisitorvisitScript in class BaseTreeVisitorpublic void visitMethodDeclaration(MethodDeclarationTree tree)
visitMethodDeclaration in interface TreeVisitorvisitMethodDeclaration in class BaseTreeVisitorpublic void visitCatchBlock(CatchBlockTree tree)
visitCatchBlock in interface TreeVisitorvisitCatchBlock in class BaseTreeVisitorpublic void visitFunctionDeclaration(FunctionDeclarationTree tree)
visitFunctionDeclaration in interface TreeVisitorvisitFunctionDeclaration in class BaseTreeVisitorpublic void visitFunctionExpression(FunctionExpressionTree tree)
visitFunctionExpression in interface TreeVisitorvisitFunctionExpression in class BaseTreeVisitorpublic void visitArrowFunction(ArrowFunctionTree tree)
visitArrowFunction in interface TreeVisitorvisitArrowFunction in class BaseTreeVisitorpublic void visitAssignmentExpression(AssignmentExpressionTree tree)
visitAssignmentExpression in interface TreeVisitorvisitAssignmentExpression in class BaseTreeVisitorpublic void visitIdentifier(IdentifierTree tree)
visitIdentifier in interface TreeVisitorvisitIdentifier in class BaseTreeVisitorpublic void visitUnaryExpression(UnaryExpressionTree tree)
visitUnaryExpression in interface TreeVisitorvisitUnaryExpression in class BaseTreeVisitorpublic void visitForOfStatement(ForOfStatementTree tree)
visitForOfStatement in interface TreeVisitorvisitForOfStatement in class BaseTreeVisitorpublic void visitForInStatement(ForInStatementTree tree)
visitForInStatement in interface TreeVisitorvisitForInStatement in class BaseTreeVisitorCopyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.