functionDeclaration abstract method
FunctionDeclaration
functionDeclaration(
- Comment? comment,
- List<
Annotation> ? metadata, - Token? externalKeyword,
- TypeAnnotation? returnType,
- Token? propertyKeyword,
- SimpleIdentifier name,
- FunctionExpression functionExpression,
Returns a newly created function declaration. Either or both of the
comment
and metadata
can be null
if the function does not have the
corresponding attribute. The externalKeyword
can be null
if the
function is not an external function. The returnType
can be null
if no
return type was specified. The propertyKeyword
can be null
if the
function is neither a getter or a setter.
Implementation
FunctionDeclaration functionDeclaration(
Comment? comment,
List<Annotation>? metadata,
Token? externalKeyword,
TypeAnnotation? returnType,
Token? propertyKeyword,
SimpleIdentifier name,
FunctionExpression functionExpression);