AnonymousFunction constructor

AnonymousFunction(
  1. List<Token> parameters,
  2. Block body
)

Implementation

AnonymousFunction(List<Token> parameters, Block body)
    : super(
        Token(
          TokenType.identifier,
          '_anon_${_generateUniqueId()}',
          null,
          -1,
        ),
        parameters,
        body,
      );