variableDeclarationList abstract method

VariableDeclarationList variableDeclarationList(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? keyword,
  4. TypeAnnotation? type,
  5. List<VariableDeclaration> variables,
)

Returns a newly created variable declaration list. Either or both of the comment and metadata can be null if the variable list does not have the corresponding attribute. The keyword can be null if a type was specified. The type must be null if the keyword is 'var'.

Use variableDeclarationList2 instead.

Implementation

VariableDeclarationList variableDeclarationList(
    Comment? comment,
    List<Annotation>? metadata,
    Token? keyword,
    TypeAnnotation? type,
    List<VariableDeclaration> variables);