public class FunctionDeclarationTree extends ParseTree
Modifier and Type | Class and Description |
---|---|
static class |
FunctionDeclarationTree.Builder
Builds a
FunctionDeclarationTree . |
static class |
FunctionDeclarationTree.Kind |
Modifier and Type | Field and Description |
---|---|
TokenType |
access |
FormalParameterListTree |
formalParameterList |
ParseTree |
functionBody |
GenericTypeListTree |
generics |
boolean |
isAsync |
boolean |
isGenerator |
boolean |
isOptional |
boolean |
isStatic |
FunctionDeclarationTree.Kind |
kind |
IdentifierToken |
name |
ParseTree |
returnType |
Modifier and Type | Method and Description |
---|---|
static FunctionDeclarationTree.Builder |
builder(FunctionDeclarationTree.Kind kind) |
asAmbientDeclaration, asArrayLiteralExpression, asArrayPattern, asArrayType, asAssignmentRestElement, asAwaitExpression, asBinaryOperator, asBlock, asBreakStatement, asCallExpression, asCallSignature, asCaseClause, asCatch, asClassDeclaration, asCommaExpression, asComprehension, asComprehensionFor, asComprehensionIf, asComputedPropertyDefinition, asComputedPropertyGetter, asComputedPropertyMemberVariable, asComputedPropertyMethod, asComputedPropertySetter, asConditionalExpression, asContinueStatement, asDebuggerStatement, asDefaultClause, asDefaultParameter, asDoWhileStatement, asEmptyStatement, asEnumDeclaration, asExportDeclaration, asExportSpecifier, asExpressionStatement, asFinally, asForInStatement, asFormalParameterList, asForOfStatement, asForStatement, asFunctionDeclaration, asFunctionType, asGenericTypeList, asGetAccessor, asIdentifierExpression, asIfStatement, asImportDeclaration, asImportSpecifier, asIndexSignature, asInterfaceDeclaration, asLabelledStatement, asLiteralExpression, asMemberExpression, asMemberLookupExpression, asMemberVariable, asMissingPrimaryExpression, asNamespaceDeclaration, asNewExpression, asNewTargetExpression, asNull, asObjectLiteralExpression, asObjectPattern, asOptionalParameter, asParameterizedType, asParenExpression, asPostfixExpression, asProgram, asPropertyNameAssignment, asRecordType, asRestParameter, asReturnStatement, asSetAccessor, asSpreadExpression, asSuperExpression, asSwitchStatement, asTemplateLiteralExpression, asTemplateLiteralPortion, asTemplateSubstitution, asThisExpression, asThrowStatement, asTryStatement, asTypeAlias, asTypedParameter, asTypeName, asTypeQuery, asUnaryExpression, asUnionType, asVariableDeclaration, asVariableDeclarationList, asVariableStatement, asWhileStatement, asWithStatement, asYieldStatement, getEnd, getStart, isAssignmentRestElement, isPattern, isRestParameter, isValidAssignmentTarget, toString
@Nullable public final IdentifierToken name
@Nullable public final GenericTypeListTree generics
public final FormalParameterListTree formalParameterList
public final ParseTree functionBody
public final boolean isStatic
public final boolean isGenerator
public final boolean isOptional
public final boolean isAsync
public final FunctionDeclarationTree.Kind kind
public static FunctionDeclarationTree.Builder builder(FunctionDeclarationTree.Kind kind)
Copyright © 2009-2016 Google. All Rights Reserved.