Ejemplo n.º 1
0
        internal Module(LoadDirective[] loadStmts, UseStatementList useStmts, DefStatement[] globalDefStmts, Function[] functions)
            : base(HappySourceLocation.None, HappySourceLocation.None)
        {
            ContractUtils.RequiresNotNull(loadStmts, "loadStmts");
            ContractUtils.RequiresNotNull(useStmts, "useStmts");
            ContractUtils.RequiresNotNull(globalDefStmts, "globalDefStmts");
            ContractUtils.RequiresNotNull(functions,  "functions");

            this.LoadDirectives = loadStmts;
            this.UseStatements = useStmts;
            this.GlobalDefStatements = globalDefStmts;
            this.Functions = functions;
        }
Ejemplo n.º 2
0
 public virtual void BeforeVisit(UseStatementList node)
 {
     this.BeforeVisitCatchAll(node);
 }
Ejemplo n.º 3
0
        public override void AfterVisit(UseStatementList node)
        {
            base.AfterVisit(node);

            PopAndAssert(node.GetExtension<ScopeExtension>().SymbolTable);
        }
Ejemplo n.º 4
0
 public virtual void AfterVisit(UseStatementList node)
 {
     this.AfterVisitCatchAll(node);
 }
Ejemplo n.º 5
0
 public override void BeforeVisit(UseStatementList node)
 {
     base.BeforeVisit(node);
     _scopeStack.Push(node.GetExtension<ScopeExtension>().SymbolTable);
 }