| Package | Description |
|---|---|
| org.sonar.javascript.parser | |
| org.sonar.javascript.tree.impl.declaration | |
| org.sonar.javascript.tree.impl.expression | |
| org.sonar.javascript.tree.impl.flow | |
| 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.flow |
Provides interfaces to represent JavaScript source code as abstract syntax trees (AST).
|
| org.sonar.plugins.javascript.api.visitors |
| Modifier and Type | Method and Description |
|---|---|
FlowTypeAnnotationTree |
JavaScriptGrammar.FLOW_ARROW_FUNCTION_RETURN_TYPE_ANNOTATION() |
FlowTypeAnnotationTree |
JavaScriptGrammar.FLOW_TYPE_ANNOTATION() |
FlowTypeAnnotationTree |
TreeFactory.flowTypeAnnotation(InternalSyntaxToken colonToken,
FlowTypeTree flowTypeTree) |
| 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,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> genericParameterClause,
ParameterListTree parameters,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> returnType,
BlockTree body) |
ArrowFunctionTree |
TreeFactory.arrowFunction(com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> asyncToken,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> genericParameterClause,
Tree parameters,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> returnType,
Tree spacingNoLB,
InternalSyntaxToken doubleArrow,
Tree body) |
RestElementTree |
TreeFactory.bindingRestElement(InternalSyntaxToken ellipsis,
BindingElementTree bindingElement,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> type) |
FieldDeclarationTree |
TreeFactory.fieldDeclaration(com.sonar.sslr.api.typed.Optional<List<DecoratorTree>> decorators,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> staticToken,
Tree propertyName,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> typeAnnotation,
com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<InternalSyntaxToken,ExpressionTree>> initializer,
Tree semicolonToken) |
FlowGenericParameterTree |
TreeFactory.flowGenericParameter(IdentifierTree identifierTree,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> superType,
com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<InternalSyntaxToken,FlowTypeTree>> defaultValue) |
FlowTypeAliasStatementTree |
TreeFactory.flowTypeAliasStatement(com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> opaqueToken,
InternalSyntaxToken typeToken,
IdentifierTree identifierTree,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> generic,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> superTypeAnnotation,
InternalSyntaxToken equalToken,
FlowTypeTree flowTypeTree,
Tree semicolonToken) |
FunctionDeclarationTree |
TreeFactory.functionAndGeneratorDeclaration(com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> asyncToken,
InternalSyntaxToken functionToken,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> starToken,
IdentifierTree name,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> genericParameterClause,
ParameterListTree parameters,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> returnType,
BlockTree body) |
FunctionExpressionTree |
TreeFactory.functionExpression(com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> asyncToken,
InternalSyntaxToken functionKeyword,
com.sonar.sslr.api.typed.Optional<IdentifierTree> functionName,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> genericParameterClause,
ParameterListTree parameters,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> returnType,
BlockTree body) |
FunctionExpressionTree |
TreeFactory.generatorExpression(InternalSyntaxToken functionKeyword,
InternalSyntaxToken starOperator,
com.sonar.sslr.api.typed.Optional<IdentifierTree> functionName,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> genericParameterClause,
ParameterListTree parameters,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> returnType,
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,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> genericParameterClause,
ParameterListTree parameters,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> returnType,
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,
com.sonar.sslr.api.typed.Optional<FlowGenericParameterClauseTree> genericParameterClause,
ParameterListTree parameters,
com.sonar.sslr.api.typed.Optional<FlowTypeAnnotationTree> returnType,
BlockTree body) |
| Modifier and Type | Method and Description |
|---|---|
FlowTypeAnnotationTree |
AccessorMethodDeclarationTreeImpl.returnType() |
FlowTypeAnnotationTree |
FunctionDeclarationTreeImpl.returnType() |
FlowTypeAnnotationTree |
MethodDeclarationTreeImpl.returnType() |
FlowTypeAnnotationTree |
FieldDeclarationTreeImpl.typeAnnotation() |
| Constructor and Description |
|---|
AccessorMethodDeclarationTreeImpl(List<DecoratorTree> decorators,
InternalSyntaxToken staticToken,
InternalSyntaxToken accessorToken,
Tree name,
FlowGenericParameterClauseTree genericParameterClause,
ParameterListTree parameters,
FlowTypeAnnotationTree returnType,
BlockTree body) |
FieldDeclarationTreeImpl(List<DecoratorTree> decorators,
SyntaxToken staticToken,
Tree propertyName,
FlowTypeAnnotationTree typeAnnotation,
SyntaxToken equalToken,
ExpressionTree initializer,
SyntaxToken semicolonToken) |
| Modifier and Type | Method and Description |
|---|---|
FlowTypeAnnotationTree |
ArrowFunctionTreeImpl.returnType() |
FlowTypeAnnotationTree |
FunctionExpressionTreeImpl.returnType() |
| Modifier and Type | Method and Description |
|---|---|
static FunctionExpressionTree |
FunctionExpressionTreeImpl.create(SyntaxToken asyncToken,
SyntaxToken functionToken,
IdentifierTree name,
FlowGenericParameterClauseTree genericParameterClause,
ParameterListTree parameters,
FlowTypeAnnotationTree returnType,
BlockTree body) |
static FunctionExpressionTree |
FunctionExpressionTreeImpl.createGenerator(SyntaxToken functionKeyword,
SyntaxToken star,
IdentifierTree name,
FlowGenericParameterClauseTree genericParameterClause,
ParameterListTree parameters,
FlowTypeAnnotationTree returnType,
BlockTree body) |
| Constructor and Description |
|---|
ArrowFunctionTreeImpl(SyntaxToken asyncToken,
FlowGenericParameterClauseTree genericParameterClause,
Tree parameters,
FlowTypeAnnotationTree returnType,
InternalSyntaxToken doubleArrow,
Tree body) |
| Modifier and Type | Class and Description |
|---|---|
class |
FlowTypeAnnotationTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
FlowTypeAnnotationTree |
FlowFunctionSignatureTreeImpl.returnType() |
FlowTypeAnnotationTree |
FlowGenericParameterTreeImpl.superTypeAnnotation() |
FlowTypeAnnotationTree |
FlowTypeAliasStatementTreeImpl.superTypeAnnotation() |
FlowTypeAnnotationTree |
FlowPropertyDefinitionTreeImpl.typeAnnotation() |
FlowTypeAnnotationTree |
FlowFunctionTypeParameterTreeImpl.typeAnnotation() |
FlowTypeAnnotationTree |
FlowModuleExportsTreeImpl.typeAnnotation() |
FlowTypeAnnotationTree |
FlowTypedBindingElementTreeImpl.typeAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
FlowTypeAnnotationTree |
AccessorMethodDeclarationTree.returnType() |
FlowTypeAnnotationTree |
MethodDeclarationTree.returnType() |
FlowTypeAnnotationTree |
FunctionDeclarationTree.returnType() |
FlowTypeAnnotationTree |
FunctionTree.returnType() |
FlowTypeAnnotationTree |
FieldDeclarationTree.typeAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
FlowTypeAnnotationTree |
FunctionExpressionTree.returnType() |
FlowTypeAnnotationTree |
ArrowFunctionTree.returnType() |
| Modifier and Type | Method and Description |
|---|---|
FlowTypeAnnotationTree |
FlowFunctionSignatureTree.returnType() |
FlowTypeAnnotationTree |
FlowGenericParameterTree.superTypeAnnotation() |
FlowTypeAnnotationTree |
FlowTypeAliasStatementTree.superTypeAnnotation() |
FlowTypeAnnotationTree |
FlowFunctionTypeParameterTree.typeAnnotation() |
FlowTypeAnnotationTree |
FlowModuleExportsTree.typeAnnotation() |
FlowTypeAnnotationTree |
FlowPropertyDefinitionTree.typeAnnotation() |
FlowTypeAnnotationTree |
FlowTypedBindingElementTree.typeAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
void |
DoubleDispatchVisitor.visitFlowTypeAnnotation(FlowTypeAnnotationTree tree) |
Copyright © 2011–2019 SonarSource and Eriks Nukis. All rights reserved.