| Modifier and Type | Method and Description |
|---|---|
void |
HighlighterVisitor.visitNode(Tree tree) |
| Modifier and Type | Method and Description |
|---|---|
List<Tree> |
ComplexityVisitor.complexityTrees(Tree tree) |
| Modifier and Type | Method and Description |
|---|---|
List<Tree> |
ComplexityVisitor.complexityTrees(Tree tree) |
int |
ComplexityVisitor.getComplexity(Tree tree) |
void |
LineVisitor.visitNode(Tree tree) |
void |
CounterVisitor.visitNode(Tree tree) |
void |
CommentLineVisitor.visitNode(Tree tree) |
void |
MetricsVisitor.visitNode(Tree tree) |
| Constructor and Description |
|---|
CommentLineVisitor(Tree tree,
boolean ignoreHeaderComments) |
CounterVisitor(Tree tree) |
LineVisitor(Tree tree) |
| Modifier and Type | Method and Description |
|---|---|
Tree |
JavaScriptGrammar.CLASS_ELEMENT() |
Tree |
JavaScriptGrammar.PROPERTY_DEFINITION() |
| Modifier and Type | Method and Description |
|---|---|
static com.sonar.sslr.api.typed.ActionParser<Tree> |
JavaScriptParserBuilder.createParser(Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
ClassTreeImpl |
TreeFactory.classDeclaration(InternalSyntaxToken classToken,
IdentifierTreeImpl name,
com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<InternalSyntaxToken,ExpressionTree>> extendsClause,
InternalSyntaxToken openCurlyBraceToken,
com.sonar.sslr.api.typed.Optional<List<Tree>> members,
InternalSyntaxToken closeCurlyBraceToken) |
ClassTreeImpl |
TreeFactory.classExpression(InternalSyntaxToken classToken,
com.sonar.sslr.api.typed.Optional<IdentifierTreeImpl> name,
com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<InternalSyntaxToken,ExpressionTree>> extendsClause,
InternalSyntaxToken openCurlyBraceToken,
com.sonar.sslr.api.typed.Optional<List<Tree>> members,
InternalSyntaxToken closeCurlyBraceToken) |
ForStatementTreeImpl |
TreeFactory.forStatement(InternalSyntaxToken forToken,
InternalSyntaxToken openParenthesis,
com.sonar.sslr.api.typed.Optional<Tree> init,
InternalSyntaxToken firstSemiToken,
com.sonar.sslr.api.typed.Optional<ExpressionTree> condition,
InternalSyntaxToken secondSemiToken,
com.sonar.sslr.api.typed.Optional<ExpressionTree> update,
InternalSyntaxToken closeParenthesis,
StatementTree statement) |
ModuleTreeImpl |
TreeFactory.module(List<Tree> items) |
ObjectLiteralTreeImpl |
TreeFactory.newObjectLiteral(Tree property,
com.sonar.sslr.api.typed.Optional<List<TreeFactory.Tuple<InternalSyntaxToken,Tree>>> restProperties,
com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> trailingComma) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SyntacticEquivalence.areEquivalent(Tree leftNode,
Tree rightNode) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SyntacticEquivalence.areEquivalent(List<? extends Tree> leftList,
List<? extends Tree> rightList) |
static boolean |
SyntacticEquivalence.areEquivalent(List<? extends Tree> leftList,
List<? extends Tree> rightList) |
| Modifier and Type | Class and Description |
|---|---|
class |
JavaScriptTree |
| Modifier and Type | Method and Description |
|---|---|
abstract Iterator<Tree> |
JavaScriptTree.childrenIterator()
Creates iterator for children of this node.
|
Iterator<Tree> |
SeparatedList.elementsAndSeparators(com.google.common.base.Function<T,? extends Tree> elementTransformer) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Tree> |
SeparatedList.elementsAndSeparators(com.google.common.base.Function<T,? extends Tree> elementTransformer) |
| Modifier and Type | Class and Description |
|---|---|
class |
AccessorMethodDeclarationTreeImpl |
class |
ArrayBindingPatternTreeImpl |
class |
BindingPropertyTreeImpl |
class |
DefaultExportDeclarationTreeImpl |
class |
ExportClauseTreeImpl |
class |
FromClauseTreeImpl |
class |
FunctionDeclarationTreeImpl |
class |
GeneratorMethodDeclarationTreeImpl |
class |
ImportClauseTreeImpl |
class |
ImportDeclarationTreeImpl |
class |
ImportModuleDeclarationTreeImpl |
class |
InitializedBindingElementTreeImpl |
class |
MethodDeclarationTreeImpl |
class |
ModuleTreeImpl |
class |
NamedExportDeclarationTreeImpl |
class |
NameSpaceExportDeclarationTreeImpl |
class |
NameSpaceSpecifierTreeImpl |
class |
ObjectBindingPatternTreeImpl |
class |
ParameterListTreeImpl |
class |
ScriptTreeImpl |
class |
SpecifierListTreeImpl |
class |
SpecifierTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
Tree |
DefaultExportDeclarationTreeImpl.object() |
Tree |
NamedExportDeclarationTreeImpl.object() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Tree> |
AccessorMethodDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
DefaultExportDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
InitializedBindingElementTreeImpl.childrenIterator() |
Iterator<Tree> |
GeneratorMethodDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
SpecifierListTreeImpl.childrenIterator() |
Iterator<Tree> |
BindingPropertyTreeImpl.childrenIterator() |
Iterator<Tree> |
MethodDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
ImportClauseTreeImpl.childrenIterator() |
Iterator<Tree> |
FunctionDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
NameSpaceSpecifierTreeImpl.childrenIterator() |
Iterator<Tree> |
SpecifierTreeImpl.childrenIterator() |
Iterator<Tree> |
ObjectBindingPatternTreeImpl.childrenIterator() |
Iterator<Tree> |
ImportModuleDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
ImportDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
NameSpaceExportDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
ExportClauseTreeImpl.childrenIterator() |
Iterator<Tree> |
ScriptTreeImpl.childrenIterator() |
Iterator<Tree> |
ModuleTreeImpl.childrenIterator() |
Iterator<Tree> |
FromClauseTreeImpl.childrenIterator() |
Iterator<Tree> |
ArrayBindingPatternTreeImpl.childrenIterator() |
Iterator<Tree> |
ParameterListTreeImpl.childrenIterator() |
Iterator<Tree> |
NamedExportDeclarationTreeImpl.childrenIterator() |
SeparatedList<Tree> |
ObjectBindingPatternTreeImpl.elements() |
List<Tree> |
ModuleTreeImpl.items() |
SeparatedList<Tree> |
ParameterListTreeImpl.parameters() |
| Constructor and Description |
|---|
DefaultExportDeclarationTreeImpl(InternalSyntaxToken exportToken,
InternalSyntaxToken defaultToken,
Tree object,
InternalSyntaxToken semicolon) |
NamedExportDeclarationTreeImpl(InternalSyntaxToken exportToken,
Tree object) |
| Constructor and Description |
|---|
ModuleTreeImpl(List<Tree> items) |
ObjectBindingPatternTreeImpl(SeparatedList<Tree> bindingElements) |
ParameterListTreeImpl(Tree.Kind kind,
SeparatedList<Tree> parameters) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayLiteralTreeImpl |
class |
ArrowFunctionTreeImpl |
class |
AssignmentExpressionTreeImpl |
class |
BinaryExpressionTreeImpl |
class |
BracketMemberExpressionTreeImpl |
class |
CallExpressionTreeImpl |
class |
ClassTreeImpl |
class |
ComputedPropertyNameTreeImpl |
class |
ConditionalExpressionTreeImpl |
class |
DotMemberExpressionTreeImpl |
class |
FunctionExpressionTreeImpl |
class |
IdentifierTreeImpl |
class |
LiteralTreeImpl |
class |
NewExpressionTreeImpl |
class |
ObjectLiteralTreeImpl |
class |
PairPropertyTreeImpl |
class |
ParenthesisedExpressionTreeImpl |
class |
PostfixExpressionTreeImpl |
class |
PrefixExpressionTreeImpl |
class |
RestElementTreeImpl |
class |
SuperTreeImpl |
class |
TaggedTemplateTreeImpl |
class |
TemplateCharactersTreeImpl |
class |
TemplateExpressionTreeImpl |
class |
TemplateLiteralTreeImpl |
class |
ThisTreeImpl |
class |
YieldExpressionTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
Tree |
ArrowFunctionTreeImpl.conciseBody() |
Tree |
ArrowFunctionTreeImpl.parameters() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Tree> |
TaggedTemplateTreeImpl.childrenIterator() |
Iterator<Tree> |
ComputedPropertyNameTreeImpl.childrenIterator() |
Iterator<Tree> |
LiteralTreeImpl.childrenIterator() |
Iterator<Tree> |
ArrowFunctionTreeImpl.childrenIterator() |
Iterator<Tree> |
CallExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
RestElementTreeImpl.childrenIterator() |
Iterator<Tree> |
BracketMemberExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
ParenthesisedExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
BinaryExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
SuperTreeImpl.childrenIterator() |
Iterator<Tree> |
PostfixExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
PrefixExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
TemplateLiteralTreeImpl.childrenIterator() |
Iterator<Tree> |
ClassTreeImpl.childrenIterator() |
Iterator<Tree> |
ObjectLiteralTreeImpl.childrenIterator() |
Iterator<Tree> |
AssignmentExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
TemplateExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
ThisTreeImpl.childrenIterator() |
Iterator<Tree> |
TemplateCharactersTreeImpl.childrenIterator() |
Iterator<Tree> |
YieldExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
ConditionalExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
FunctionExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
PairPropertyTreeImpl.childrenIterator() |
Iterator<Tree> |
IdentifierTreeImpl.childrenIterator() |
Iterator<Tree> |
ArrayLiteralTreeImpl.childrenIterator() |
Iterator<Tree> |
NewExpressionTreeImpl.childrenIterator() |
Iterator<Tree> |
DotMemberExpressionTreeImpl.childrenIterator() |
List<Tree> |
ClassTreeImpl.elements() |
List<Tree> |
ArrayLiteralTreeImpl.elementsAndCommas() |
SeparatedList<Tree> |
ObjectLiteralTreeImpl.properties() |
| Modifier and Type | Method and Description |
|---|---|
static ClassTreeImpl |
ClassTreeImpl.newClassDeclaration(InternalSyntaxToken classToken,
IdentifierTreeImpl name,
InternalSyntaxToken extendsToken,
ExpressionTree superClass,
InternalSyntaxToken openCurlyBraceToken,
List<Tree> elements,
InternalSyntaxToken closeCurlyBraceToken) |
static ClassTreeImpl |
ClassTreeImpl.newClassExpression(InternalSyntaxToken classToken,
IdentifierTreeImpl name,
InternalSyntaxToken extendsToken,
ExpressionTree superClass,
InternalSyntaxToken openCurlyBraceToken,
List<Tree> elements,
InternalSyntaxToken closeCurlyBraceToken) |
| Constructor and Description |
|---|
ArrowFunctionTreeImpl(Tree parameters,
InternalSyntaxToken doubleArrow,
Tree body) |
| Constructor and Description |
|---|
ArrayLiteralTreeImpl(List<Tree> elementsAndCommas) |
ObjectLiteralTreeImpl(SeparatedList<Tree> properties) |
TemplateLiteralTreeImpl(InternalSyntaxToken openBacktick,
List<Tree> elements,
InternalSyntaxToken closeBacktick) |
| Modifier and Type | Class and Description |
|---|---|
class |
InternalSyntaxToken |
class |
InternalSyntaxTrivia |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Tree> |
InternalSyntaxTrivia.childrenIterator() |
Iterator<Tree> |
InternalSyntaxToken.childrenIterator() |
| Modifier and Type | Class and Description |
|---|---|
class |
BlockTreeImpl |
class |
BreakStatementTreeImpl |
class |
CaseClauseTreeImpl |
class |
CatchBlockTreeImpl |
class |
ContinueStatementTreeImpl |
class |
DebuggerStatementTreeImpl |
class |
DefaultClauseTreeImpl |
class |
DoWhileStatementTreeImpl |
class |
ElseClauseTreeImpl |
class |
EmptyStatementTreeImpl |
class |
ExpressionStatementTreeImpl |
class |
ForInStatementTreeImpl |
class |
ForOfStatementTreeImpl |
class |
ForStatementTreeImpl |
class |
IfStatementTreeImpl |
class |
LabelledStatementTreeImpl |
class |
ReturnStatementTreeImpl |
class |
SwitchStatementTreeImpl |
class |
ThrowStatementTreeImpl |
class |
TryStatementTreeImpl |
class |
VariableDeclarationTreeImpl |
class |
VariableStatementTreeImpl |
class |
WhileStatementTreeImpl |
class |
WithStatementTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
Tree |
ExpressionStatementTreeImpl.expression() |
Tree |
WithStatementTreeImpl.expression() |
Tree |
ForStatementTreeImpl.init() |
Tree |
CatchBlockTreeImpl.parameter() |
Tree |
ForOfStatementTreeImpl.variableOrExpression() |
Tree |
ForInStatementTreeImpl.variableOrExpression() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Tree> |
TryStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
BreakStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
DebuggerStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ForOfStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ForStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
SwitchStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ExpressionStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ForInStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
DefaultClauseTreeImpl.childrenIterator() |
Iterator<Tree> |
WithStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ThrowStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
CatchBlockTreeImpl.childrenIterator() |
Iterator<Tree> |
DoWhileStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ElseClauseTreeImpl.childrenIterator() |
Iterator<Tree> |
CaseClauseTreeImpl.childrenIterator() |
Iterator<Tree> |
WhileStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
VariableDeclarationTreeImpl.childrenIterator() |
Iterator<Tree> |
EmptyStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ContinueStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
LabelledStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
VariableStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
BlockTreeImpl.childrenIterator() |
Iterator<Tree> |
IfStatementTreeImpl.childrenIterator() |
Iterator<Tree> |
ReturnStatementTreeImpl.childrenIterator() |
| Constructor and Description |
|---|
ForInStatementTreeImpl(InternalSyntaxToken forKeyword,
InternalSyntaxToken openParenthesis,
Tree variableOrExpression,
InternalSyntaxToken inKeyword,
ExpressionTree expression,
InternalSyntaxToken closeParenthesis,
StatementTree statement) |
ForOfStatementTreeImpl(InternalSyntaxToken forKeyword,
InternalSyntaxToken openParenthesis,
Tree variableOrExpression,
InternalSyntaxToken ofKeyword,
ExpressionTree expression,
InternalSyntaxToken closeParenthesis,
StatementTree statement) |
ForStatementTreeImpl(InternalSyntaxToken forKeyword,
InternalSyntaxToken openParenthesis,
Tree init,
InternalSyntaxToken firstSemicolon,
ExpressionTree condition,
InternalSyntaxToken secondSemicolon,
ExpressionTree update,
InternalSyntaxToken closeParenthesis,
StatementTree statement) |
| Modifier and Type | Method and Description |
|---|---|
Tree |
Scope.tree() |
| Modifier and Type | Method and Description |
|---|---|
Scope |
SymbolModelImpl.getScope(Tree tree) |
| Constructor and Description |
|---|
Scope(Scope outer,
Tree tree) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
SubscriptionTreeVisitor.isSubscribed(Tree tree) |
void |
SubscriptionTreeVisitor.leaveNode(Tree tree) |
void |
SubscriptionTreeVisitor.scanTree(Tree tree) |
void |
SubscriptionTreeVisitor.visitFile(Tree scriptTree) |
void |
SubscriptionTreeVisitor.visitNode(Tree tree) |
| Modifier and Type | Method and Description |
|---|---|
Scope |
SymbolModel.getScope(Tree tree) |
| Modifier and Type | Field and Description |
|---|---|
protected static com.sonar.sslr.api.typed.ActionParser<Tree> |
TestCheckContext.p |
| Modifier and Type | Method and Description |
|---|---|
void |
TestCheckContext.addIssue(JavaScriptCheck check,
Tree tree,
String message) |
void |
TestCheckContext.addIssue(JavaScriptCheck check,
Tree tree,
String message,
double cost) |
int |
TestCheckContext.getComplexity(Tree tree) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ModuleTree
Interface for type Module.
|
interface |
ScriptTree |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Tree> |
Tree.Kind.getAssociatedInterface() |
List<Tree> |
ModuleTree.items() |
| Modifier and Type | Interface and Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
interface |
AccessorMethodDeclarationTree
| ||||||||||
interface |
BindingPropertyTree
| ||||||||||
interface |
DefaultExportDeclarationTree
Default Export Declarations
(
interface ExportClauseTree
Export Clause
(
interface ExportDeclarationTree
| ||||||||||
interface |
GeneratorMethodDeclarationTree
Generator Method
(
interface ImportClauseTree
Import Clause
(
interface ImportDeclarationTree
| ||||||||||
interface |
InitializedBindingElementTree
|
||||||||||
interface |
MethodDeclarationTree
Common interface for all types Method Definitions
(
interface NamedExportDeclarationTree
Named Export Declarations
(
interface NameSpaceExportDeclarationTree
Namespace Export Declarations
(
interface ObjectBindingPatternTree
Object Binding Pattern
(
interface ParameterListTree
Formal Parameter List
(
interface SpecifierListTree
|
| Modifier and Type | Method and Description |
|---|---|
SeparatedList<Tree> |
ObjectBindingPatternTree.elements() |
SeparatedList<Tree> |
ParameterListTree.parameters() |
| Modifier and Type | Method and Description |
|---|---|
List<Tree> |
ClassTree.elements() |
List<Tree> |
ArrayLiteralTree.elementsAndCommas() |
SeparatedList<Tree> |
ObjectLiteralTree.properties() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SyntaxToken
Represents a token in the syntax tree.
|
interface |
SyntaxTrivia
Represents a Trivia in the SyntaxTree.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BlockTree
|
interface |
BreakStatementTree
|
interface |
CaseClauseTree
|
interface |
CatchBlockTree
|
interface |
ContinueStatementTree
|
interface |
DebuggerStatementTree
|
interface |
DefaultClauseTree
|
interface |
DoWhileStatementTree
|
interface |
ElseClauseTree
|
interface |
EmptyStatementTree
|
interface |
ExpressionStatementTree
|
interface |
ForInStatementTree
|
interface |
IfStatementTree
|
interface |
IterationStatementTree
Common interface for iteration statements.
|
interface |
LabelledStatementTree
|
interface |
ReturnStatementTree
|
interface |
StatementTree
Common interface for all types of Statements.
|
interface |
SwitchClauseTree
|
interface |
SwitchStatementTree
|
interface |
ThrowStatementTree
|
interface |
TryStatementTree
|
interface |
VariableDeclarationTree
|
interface |
VariableStatementTree
|
interface |
WhileStatementTree
|
interface |
WithStatementTree
|
| Modifier and Type | Method and Description |
|---|---|
Tree |
ExpressionStatementTree.expression() |
Tree |
WithStatementTree.expression() |
Tree |
ForStatementTree.init() |
Tree |
CatchBlockTree.parameter() |
Tree |
ForOfStatementTree.variableOrExpression() |
Tree |
ForInStatementTree.variableOrExpression() |
| Modifier and Type | Method and Description |
|---|---|
void |
TreeVisitorContext.addIssue(JavaScriptCheck check,
Tree tree,
String message)
Creates an issue.
|
void |
TreeVisitorContext.addIssue(JavaScriptCheck check,
Tree tree,
String message,
double cost)
Creates an issue.
|
void |
SubscriptionBaseTreeVisitor.addIssue(Tree tree,
String message) |
int |
TreeVisitorContext.getComplexity(Tree tree) |
protected void |
BaseTreeVisitor.scan(Tree tree) |
| Constructor and Description |
|---|
IssueLocation(Tree tree) |
IssueLocation(Tree tree,
String message) |
IssueLocation(Tree firstTree,
Tree lastTree,
String message) |
Copyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.