IFunctionScope.cs 671 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. using Jint.Parser.Ast;
  3. namespace Jint.Parser
  4. {
  5. /// <summary>
  6. /// Used to safe references to all function delcarations in a specific scope.
  7. /// </summary>
  8. public interface IFunctionScope: IVariableScope
  9. {
  10. IList<FunctionDeclaration> FunctionDeclarations { get; set; }
  11. }
  12. public class FunctionScope : IFunctionScope
  13. {
  14. public FunctionScope()
  15. {
  16. FunctionDeclarations = new List<FunctionDeclaration>();
  17. }
  18. public IList<FunctionDeclaration> FunctionDeclarations { get; set; }
  19. public IList<VariableDeclaration> VariableDeclarations { get; set; }
  20. }
  21. }