| Package | Description |
|---|---|
| org.sonar.javascript.cfg | |
| org.sonar.javascript.parser | |
| org.sonar.javascript.tree.impl.declaration | |
| org.sonar.javascript.tree.impl.expression | |
| org.sonar.javascript.tree.impl.statement | |
| org.sonar.javascript.tree.symbols | |
| org.sonar.plugins.javascript.api.tree.declaration |
Provides interfaces to represent JavaScript source code as abstract syntax trees (AST).
|
| org.sonar.plugins.javascript.api.tree.expression |
Provides interfaces to represent JavaScript source code as abstract syntax trees (AST).
|
| org.sonar.plugins.javascript.api.tree.statement |
Provides interfaces to represent JavaScript source code as abstract syntax trees (AST).
|
| org.sonar.plugins.javascript.api.visitors |
| Modifier and Type | Method and Description |
|---|---|
static ControlFlowGraph |
ControlFlowGraph.build(BlockTree body) |
| Modifier and Type | Method and Description |
|---|---|
BlockTree |
JavaScriptGrammar.BLOCK() |
BlockTree |
TreeFactory.newBlock(InternalSyntaxToken openingCurlyBrace,
com.sonar.sslr.api.typed.Optional<List<StatementTree>> statements,
InternalSyntaxToken closingCurlyBrace) |
| Modifier and Type | Method and Description |
|---|---|
AccessorMethodDeclarationTree |
TreeFactory.accessor(com.sonar.sslr.api.typed.Optional<List<DecoratorTree>> decorators,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> staticToken,
InternalSyntaxToken accessorToken,
Tree name,
ParameterListTree parameters,
BlockTree body) |
FinallyBlockTree |
TreeFactory.finallyBlock(InternalSyntaxToken finallyKeyword,
BlockTree finallyBlock) |
FunctionDeclarationTree |
TreeFactory.functionAndGeneratorDeclaration(com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> asyncToken,
InternalSyntaxToken functionToken,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> starToken,
IdentifierTree name,
ParameterListTree parameters,
BlockTree body) |
FunctionExpressionTree |
TreeFactory.functionExpression(com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> asyncToken,
InternalSyntaxToken functionKeyword,
com.sonar.sslr.api.typed.Optional<IdentifierTree> functionName,
ParameterListTree parameters,
BlockTree body) |
FunctionExpressionTree |
TreeFactory.generatorExpression(InternalSyntaxToken functionKeyword,
InternalSyntaxToken starOperator,
com.sonar.sslr.api.typed.Optional<IdentifierTree> functionName,
ParameterListTree parameters,
BlockTree body) |
MethodDeclarationTree |
TreeFactory.generatorMethod(com.sonar.sslr.api.typed.Optional<List<DecoratorTree>> decorators,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> staticToken,
InternalSyntaxToken starToken,
Tree name,
ParameterListTree parameters,
BlockTree body) |
MethodDeclarationTree |
TreeFactory.method(com.sonar.sslr.api.typed.Optional<List<DecoratorTree>> decorators,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> staticToken,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> asyncToken,
Tree name,
ParameterListTree parameters,
BlockTree body) |
CatchBlockTree |
TreeFactory.newCatchBlock(InternalSyntaxToken catchToken,
InternalSyntaxToken lparenToken,
BindingElementTree catchParameter,
InternalSyntaxToken rparenToken,
BlockTree block) |
TryStatementTree |
TreeFactory.tryStatementWithCatch(InternalSyntaxToken tryToken,
BlockTree block,
CatchBlockTree catchBlock,
com.sonar.sslr.api.typed.Optional<FinallyBlockTree> finallyBlockTree) |
TryStatementTree |
TreeFactory.tryStatementWithoutCatch(InternalSyntaxToken tryToken,
BlockTree block,
FinallyBlockTree finallyBlockTree) |
| Modifier and Type | Method and Description |
|---|---|
BlockTree |
MethodDeclarationTreeImpl.body() |
BlockTree |
FunctionDeclarationTreeImpl.body() |
BlockTree |
AccessorMethodDeclarationTreeImpl.body() |
| Modifier and Type | Method and Description |
|---|---|
static FunctionDeclarationTree |
FunctionDeclarationTreeImpl.create(SyntaxToken asyncToken,
InternalSyntaxToken functionKeyword,
IdentifierTree name,
ParameterListTree parameters,
BlockTree body) |
static FunctionDeclarationTree |
FunctionDeclarationTreeImpl.createGenerator(InternalSyntaxToken functionKeyword,
InternalSyntaxToken starToken,
IdentifierTree name,
ParameterListTree parameters,
BlockTree body) |
static MethodDeclarationTreeImpl |
MethodDeclarationTreeImpl.generator(List<DecoratorTree> decorators,
InternalSyntaxToken staticToken,
InternalSyntaxToken starToken,
Tree name,
ParameterListTree parameters,
BlockTree body) |
static MethodDeclarationTreeImpl |
MethodDeclarationTreeImpl.method(List<DecoratorTree> decorators,
InternalSyntaxToken staticToken,
InternalSyntaxToken asyncToken,
Tree name,
ParameterListTree parameters,
BlockTree body) |
| Constructor and Description |
|---|
AccessorMethodDeclarationTreeImpl(List<DecoratorTree> decorators,
InternalSyntaxToken staticToken,
InternalSyntaxToken accessorToken,
Tree name,
ParameterListTree parameters,
BlockTree body) |
| Modifier and Type | Method and Description |
|---|---|
BlockTree |
FunctionExpressionTreeImpl.body() |
| Modifier and Type | Method and Description |
|---|---|
static FunctionExpressionTree |
FunctionExpressionTreeImpl.create(SyntaxToken asyncToken,
SyntaxToken functionToken,
IdentifierTree name,
ParameterListTree parameters,
BlockTree body) |
static FunctionExpressionTree |
FunctionExpressionTreeImpl.createGenerator(SyntaxToken functionKeyword,
SyntaxToken star,
IdentifierTree name,
ParameterListTree parameters,
BlockTree body) |
| Modifier and Type | Class and Description |
|---|---|
class |
BlockTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
BlockTree |
TryStatementTreeImpl.block() |
BlockTree |
FinallyBlockTreeImpl.block() |
BlockTree |
CatchBlockTreeImpl.block() |
| Constructor and Description |
|---|
CatchBlockTreeImpl(InternalSyntaxToken catchKeyword,
InternalSyntaxToken openParenthesis,
BindingElementTree parameter,
InternalSyntaxToken closeParenthesis,
BlockTree block) |
FinallyBlockTreeImpl(InternalSyntaxToken finallyKeyword,
BlockTree block) |
TryStatementTreeImpl(SyntaxToken tryKeyword,
BlockTree block,
CatchBlockTree catchBlock,
FinallyBlockTree finallyBlock) |
| Modifier and Type | Method and Description |
|---|---|
void |
SymbolVisitor.visitBlock(BlockTree tree) |
void |
ScopeVisitor.visitBlock(BlockTree tree) |
void |
HoistedSymbolVisitor.visitBlock(BlockTree tree) |
| Modifier and Type | Method and Description |
|---|---|
BlockTree |
MethodDeclarationTree.body() |
BlockTree |
FunctionDeclarationTree.body() |
BlockTree |
AccessorMethodDeclarationTree.body() |
| Modifier and Type | Method and Description |
|---|---|
BlockTree |
FunctionExpressionTree.body() |
| Modifier and Type | Method and Description |
|---|---|
BlockTree |
TryStatementTree.block() |
BlockTree |
FinallyBlockTree.block() |
BlockTree |
CatchBlockTree.block() |
| Modifier and Type | Method and Description |
|---|---|
void |
DoubleDispatchVisitor.visitBlock(BlockTree tree) |
Copyright © 2011–2017 SonarSource and Eriks Nukis. All rights reserved.