Exemplo n.º 1
0
		/// <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>();
			}
		}
Exemplo n.º 2
0
        /// <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>();
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Visit include target.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitIncludingEx(IncludingEx x)
 {
     VisitElement(x.Target);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Visit include target.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitIncludingEx(IncludingEx x)
 {
     VisitElement(x.Target);
 }
Exemplo n.º 5
0
 public void InclusionReduced(Parser parser, PHP.Core.AST.IncludingEx decl)
 {
 }