anonymousFunction method

AstNode anonymousFunction()

Implementation

AstNode anonymousFunction() {
  List<Token> parameters = _parseParameterTokens();
  consume(TokenType.leftBrace, "Expect '{' before function body.");
  Block body = block();
  return AnonymousFunction(parameters, body);
}