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 classFunctionDeclarationTree.BuilderBuilds aFunctionDeclarationTree.static classFunctionDeclarationTree.Kind
-
Field Summary
Fields Modifier and Type Field Description TokenTypeaccessFormalParameterListTreeformalParameterListParseTreefunctionBodyGenericTypeListTreegenericsbooleanisAsyncbooleanisGeneratorbooleanisOptionalbooleanisStaticFunctionDeclarationTree.KindkindIdentifierTokennameParseTreereturnType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FunctionDeclarationTree.Builderbuilder(FunctionDeclarationTree.Kind kind)-
Methods inherited from class com.google.javascript.jscomp.parsing.parser.trees.ParseTree
asAmbientDeclaration, asArrayLiteralExpression, asArrayPattern, asArrayType, asAwaitExpression, asBinaryOperator, asBlock, asBreakStatement, asCallExpression, asCallSignature, asCaseClause, asCatch, asClassDeclaration, asCommaExpression, asComprehension, asComprehensionFor, asComprehensionIf, asComputedPropertyDefinition, asComputedPropertyGetter, asComputedPropertyMemberVariable, asComputedPropertyMethod, asComputedPropertySetter, asConditionalExpression, asContinueStatement, asDebuggerStatement, asDefaultClause, asDefaultParameter, asDoWhileStatement, asDynamicImportExpression, asEmptyStatement, asEnumDeclaration, asExportDeclaration, asExportSpecifier, asExpressionStatement, asFinally, asForAwaitOfStatement, asForInStatement, asFormalParameterList, asForOfStatement, asForStatement, asFunctionDeclaration, asFunctionType, asGenericTypeList, asGetAccessor, asIdentifierExpression, asIfStatement, asImportDeclaration, asImportMetaExpression, asImportSpecifier, asIndexSignature, asInterfaceDeclaration, asIterRest, asIterSpread, asLabelledStatement, asLiteralExpression, asMemberExpression, asMemberLookupExpression, asMemberVariable, asMissingPrimaryExpression, asNamespaceDeclaration, asNewExpression, asNewTargetExpression, asNull, asObjectLiteralExpression, asObjectPattern, asObjectRest, asObjectSpread, asOptionalCallExpression, asOptionalMemberExpression, asOptionalMemberLookupExpression, asOptionalParameter, asParameterizedType, asParenExpression, asProgram, asPropertyNameAssignment, asRecordType, asReturnStatement, asSetAccessor, asSuperExpression, asSwitchStatement, asTemplateLiteralExpression, asTemplateLiteralPortion, asTemplateSubstitution, asThisExpression, asThrowStatement, asTryStatement, asTypeAlias, asTypedParameter, asTypeName, asTypeQuery, asUnaryExpression, asUnionType, asUpdateExpression, asVariableDeclaration, asVariableDeclarationList, asVariableStatement, asWhileStatement, asWithStatement, asYieldStatement, getEnd, getStart, isPattern, isRestParameter, isValidAssignmentTarget, toString
-
-
-
-
Field Detail
-
name
@Nullable public final IdentifierToken name
-
generics
@Nullable public final GenericTypeListTree generics
-
formalParameterList
public final FormalParameterListTree formalParameterList
-
returnType
@Nullable public final ParseTree returnType
-
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
-
access
@Nullable public final TokenType access
-
kind
public final FunctionDeclarationTree.Kind kind
-
-
Method Detail
-
builder
public static FunctionDeclarationTree.Builder builder(FunctionDeclarationTree.Kind kind)
-
-