Interface ArrowFunctionTree
-
- All Superinterfaces:
ExpressionTree,FunctionTree,JsxElementNameTree,Tree
- All Known Implementing Classes:
ArrowFunctionTreeImpl
@Beta public interface ArrowFunctionTree extends ExpressionTree, FunctionTree
ECMAScript 6 feature Arrow function.parameterClause()=>body()This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Treebody()EitherBlockTreeorExpressionTreeSyntaxTokendoubleArrowToken()TreeparameterClause()FlowTypeAnnotationTreereturnType()-
Methods inherited from interface org.sonar.plugins.javascript.api.tree.expression.ExpressionTree
types
-
Methods inherited from interface org.sonar.plugins.javascript.api.tree.declaration.FunctionTree
asyncToken, genericParameterClause, name, parameterList, scope
-
Methods inherited from interface org.sonar.plugins.javascript.api.tree.Tree
accept, childrenStream, descendants, firstToken, is, isAncestorOf, lastToken, parent
-
-
-
-
Method Detail
-
parameterClause
Tree parameterClause()
- Specified by:
parameterClausein interfaceFunctionTree
-
returnType
@Nullable FlowTypeAnnotationTree returnType()
- Specified by:
returnTypein interfaceFunctionTree
-
doubleArrowToken
SyntaxToken doubleArrowToken()
-
body
Tree body()
EitherBlockTreeorExpressionTree- Specified by:
bodyin interfaceFunctionTree
-
-