/// <summary> /// Initializes a new instance of the GlobalCode class. /// </summary> public GlobalCode(List<Statement>/*!*/ statements, SourceUnit/*!*/ sourceUnit) { Debug.Assert(statements != null && sourceUnit != null); this.sourceUnit = sourceUnit; this.statements = statements; this.prependedInclusion = null; this.AppendedInclusion = null; if (!sourceUnit.CompilationUnit.IsPure) { varTable = new VariablesTable(20); varTable.SetAllRef(); labels = new Dictionary<VariableName, Statement>(); } }
/// <summary> /// Initializes a new instance of the GlobalCode class. /// </summary> public GlobalCode(List <Statement> /*!*/ statements, SourceUnit /*!*/ sourceUnit) { Debug.Assert(statements != null && sourceUnit != null); this.sourceUnit = sourceUnit; this.statements = statements; this.prependedInclusion = null; this.AppendedInclusion = null; if (!sourceUnit.CompilationUnit.IsPure) { varTable = new VariablesTable(20); varTable.SetAllRef(); labels = new Dictionary <VariableName, Statement>(); } }
/// <summary> /// Visit include target. /// </summary> /// <param name="x"></param> virtual public void VisitIncludingEx(IncludingEx x) { VisitElement(x.Target); }
public void InclusionReduced(Parser parser, PHP.Core.AST.IncludingEx decl) { }