public virtual object TrackedVisitUsingDeclaration(UsingDeclaration usingDeclaration, object data)
 {
     return base.VisitUsingDeclaration(usingDeclaration, data);
 }
Ejemplo n.º 2
0
 public override object VisitUsingDeclaration(UsingDeclaration usingDeclaration, object data)
 {
     foreach (Using u in usingDeclaration.Usings) {
         namespaceDeclarations.Peek().Imports.Add(new CodeNamespaceImport(u.Name));
     }
     return null;
 }
 public override sealed object VisitUsingDeclaration(UsingDeclaration usingDeclaration, object data)
 {
     this.BeginVisit(usingDeclaration);
     object result = this.TrackedVisitUsingDeclaration(usingDeclaration, data);
     this.EndVisit(usingDeclaration);
     return result;
 }
Ejemplo n.º 4
0
 public virtual object VisitUsingDeclaration(UsingDeclaration usingDeclaration, object data)
 {
     Debug.Assert((usingDeclaration != null));
     Debug.Assert((usingDeclaration.Usings != null));
     foreach (Using o in usingDeclaration.Usings) {
         Debug.Assert(o != null);
         o.AcceptVisitor(this, data);
     }
     return null;
 }
 public virtual object VisitUsingDeclaration(UsingDeclaration usingDeclaration, object data)
 {
     throw new global::System.NotImplementedException("UsingDeclaration");
 }
Ejemplo n.º 6
0
        void ImportsStmt()
        {
            List<Using> usings = new List<Using>();

            Expect(137);
            Location startPos = t.Location;
            Using u;

            ImportClause(out u);
            if (u != null) { usings.Add(u); }
            while (la.kind == 22) {
            Get();
            ImportClause(out u);
            if (u != null) { usings.Add(u); }
            }
            EndOfStmt();
            UsingDeclaration usingDeclaration = new UsingDeclaration(usings);
            usingDeclaration.StartLocation = startPos;
            usingDeclaration.EndLocation   = t.Location;
            AddChild(usingDeclaration);
        }
 public virtual object VisitUsingDeclaration(UsingDeclaration usingDeclaration, object data)
 {
     Debug.Assert((usingDeclaration != null));
     Debug.Assert((usingDeclaration.Usings != null));
     for (int i = 0; i < usingDeclaration.Usings.Count; i++) {
         Using o = usingDeclaration.Usings[i];
         Debug.Assert(o != null);
         nodeStack.Push(o);
         o.AcceptVisitor(this, data);
         o = (Using)nodeStack.Pop();
         if (o == null)
             usingDeclaration.Usings.RemoveAt(i--);
         else
             usingDeclaration.Usings[i] = o;
     }
     return null;
 }