IVariableScope.cs 577 B

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