1234567891011121314151617181920212223 |
- using System.Collections.Generic;
- namespace Jint.Parser.Ast
- {
- /// <summary>
- /// Used to safe references to all variable delcarations in a specific scope.
- /// Hoisting.
- /// </summary>
- public interface IVariableScope
- {
- IList<VariableDeclaration> VariableDeclarations { get; set; }
- }
- public class VariableScope : IVariableScope
- {
- public VariableScope()
- {
- VariableDeclarations = new List<VariableDeclaration>();
- }
- public IList<VariableDeclaration> VariableDeclarations { get; set; }
- }
- }
|