public class FunctionDeclarationTree extends ParseTree
Modifier and Type | Class and Description |
---|---|
static class |
FunctionDeclarationTree.Kind |
Modifier and Type | Field and Description |
---|---|
TokenType |
access |
FormalParameterListTree |
formalParameterList |
ParseTree |
functionBody |
GenericTypeListTree |
generics |
boolean |
isGenerator |
boolean |
isOptional |
boolean |
isStatic |
FunctionDeclarationTree.Kind |
kind |
IdentifierToken |
name |
ParseTree |
returnType |
Constructor and Description |
---|
FunctionDeclarationTree(SourceRange location,
IdentifierToken name,
GenericTypeListTree generics,
boolean isStatic,
boolean isGenerator,
boolean isOptional,
TokenType access,
FunctionDeclarationTree.Kind kind,
FormalParameterListTree formalParameterList,
ParseTree returnType,
ParseTree functionBody) |
asAmbientDeclaration, asArrayLiteralExpression, asArrayPattern, asArrayType, asAssignmentRestElement, 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, isAssignmentRestElement, isPattern, isValidAssignmentTarget, toString
public final IdentifierToken name
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 FunctionDeclarationTree.Kind kind
public FunctionDeclarationTree(SourceRange location, IdentifierToken name, GenericTypeListTree generics, boolean isStatic, boolean isGenerator, boolean isOptional, @Nullable TokenType access, FunctionDeclarationTree.Kind kind, FormalParameterListTree formalParameterList, @Nullable ParseTree returnType, ParseTree functionBody)
Copyright © 2009-2016 Google. All Rights Reserved.