FunctionDeclaration.cs 661 B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. namespace Jint.Parser.Ast
  3. {
  4. public class FunctionDeclaration : Statement, IVariableScope
  5. {
  6. public FunctionDeclaration()
  7. {
  8. VariableDeclarations = new List<VariableDeclaration>();
  9. }
  10. public Identifier Id;
  11. public IEnumerable<Identifier> Parameters;
  12. public Statement Body;
  13. public IList<VariableDeclaration> VariableDeclarations { get; set; }
  14. #region ECMA6
  15. public IEnumerable<Expression> Defaults;
  16. public SyntaxNode Rest;
  17. public bool Generator;
  18. public bool Expression;
  19. #endregion
  20. }
  21. }