Class FunctionDeclarationTree
- java.lang.Object
-
- com.google.javascript.jscomp.parsing.parser.trees.ParseTree
-
- com.google.javascript.jscomp.parsing.parser.trees.FunctionDeclarationTree
-
public class FunctionDeclarationTree extends ParseTree
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FunctionDeclarationTree.Builder
Builds aFunctionDeclarationTree
.static class
FunctionDeclarationTree.Kind
-
Field Summary
Fields Modifier and Type Field Description FormalParameterListTree
formalParameterList
ParseTree
functionBody
boolean
isAsync
boolean
isGenerator
boolean
isOptional
boolean
isStatic
FunctionDeclarationTree.Kind
kind
IdentifierToken
name
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FunctionDeclarationTree.Builder
builder(FunctionDeclarationTree.Kind kind)
-
Methods inherited from class com.google.javascript.jscomp.parsing.parser.trees.ParseTree
asArrayLiteralExpression, asArrayPattern, asAwaitExpression, asBinaryOperator, asBlock, asBreakStatement, asCallExpression, asCaseClause, asCatch, asClassDeclaration, asCommaExpression, asComprehension, asComprehensionFor, asComprehensionIf, asComputedPropertyDefinition, asComputedPropertyField, asComputedPropertyGetter, asComputedPropertyMethod, asComputedPropertySetter, asConditionalExpression, asContinueStatement, asDebuggerStatement, asDefaultClause, asDefaultParameter, asDoWhileStatement, asDynamicImportExpression, asEmptyStatement, asExportDeclaration, asExportSpecifier, asExpressionStatement, asFieldDeclaration, asFinally, asForAwaitOfStatement, asForInStatement, asFormalParameterList, asForOfStatement, asForStatement, asFunctionDeclaration, asGetAccessor, asIdentifierExpression, asIfStatement, asImportDeclaration, asImportMetaExpression, asImportSpecifier, asIterRest, asIterSpread, asLabelledStatement, asLiteralExpression, asMemberExpression, asMemberLookupExpression, asMissingPrimaryExpression, asNewExpression, asNewTargetExpression, asNull, asObjectLiteralExpression, asObjectPattern, asObjectRest, asObjectSpread, asOptChainCallExpression, asOptionalMemberExpression, asOptionalMemberLookupExpression, asParenExpression, asProgram, asPropertyNameAssignment, asReturnStatement, asSetAccessor, asSuperExpression, asSwitchStatement, asTemplateLiteralExpression, asTemplateLiteralPortion, asTemplateSubstitution, asThisExpression, asThrowStatement, asTryStatement, asUnaryExpression, asUpdateExpression, asVariableDeclaration, asVariableDeclarationList, asVariableStatement, asWhileStatement, asWithStatement, asYieldStatement, getEnd, getStart, isPattern, isRestParameter, isValidAssignmentTarget, toString
-
-
-
-
Field Detail
-
name
@Nullable public final IdentifierToken name
-
formalParameterList
public final FormalParameterListTree formalParameterList
-
functionBody
public final ParseTree functionBody
-
isStatic
public final boolean isStatic
-
isGenerator
public final boolean isGenerator
-
isOptional
public final boolean isOptional
-
isAsync
public final boolean isAsync
-
kind
public final FunctionDeclarationTree.Kind kind
-
-
Method Detail
-
builder
public static FunctionDeclarationTree.Builder builder(FunctionDeclarationTree.Kind kind)
-
-