functionDeclaration abstract method

FunctionDeclaration functionDeclaration(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? augmentKeyword,
  4. Token? externalKeyword,
  5. TypeAnnotation? returnType,
  6. Token? propertyKeyword,
  7. SimpleIdentifier name,
  8. 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 augmentKeyword can be null if the function is not a function augmentation. 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? augmentKeyword,
    Token? externalKeyword,
    TypeAnnotation? returnType,
    Token? propertyKeyword,
    SimpleIdentifier name,
    FunctionExpression functionExpression);