public virtual object TrackedVisitUsing(Using @using, object data)
 {
     return base.VisitUsing(@using, data);
 }
 public override object VisitUsing(Using @using, object data)
 {
     return base.VisitUsing(@using, data);
 }
 public override sealed object VisitUsing(Using @using, object data)
 {
     this.BeginVisit(@using);
     object result = this.TrackedVisitUsing(@using, data);
     this.EndVisit(@using);
     return result;
 }
예제 #4
0
 public virtual object VisitUsing(Using @using, object data)
 {
     Debug.Assert((@using != null));
     Debug.Assert((@using.Alias != null));
     return @using.Alias.AcceptVisitor(this, data);
 }
 public virtual object VisitUsing(Using @using, object data)
 {
     throw new global::System.NotImplementedException("Using");
 }
예제 #6
0
        void ImportClause(out Using u)
        {
            string qualident  = null;
            TypeReference aliasedType = null;
            u = null;

            if (StartOf(5)) {
            Qualident(out qualident);
            if (la.kind == 20) {
                Get();
                TypeName(out aliasedType);
            }
            if (qualident != null && qualident.Length > 0) {
                    if (aliasedType != null) {
                        u = new Using(qualident, aliasedType);
                    } else {
                        u = new Using(qualident);
                    }
                }

            } else if (la.kind == 10) {
            string prefix = null;
            Get();
            Identifier();
            prefix = t.val;
            Expect(20);
            Expect(3);
            u = new Using(t.literalValue as string, prefix);
            Expect(11);
            } else SynErr(247);
        }
 public virtual object VisitUsing(Using @using, object data)
 {
     Debug.Assert((@using != null));
     Debug.Assert((@using.Alias != null));
     nodeStack.Push(@using.Alias);
     @using.Alias.AcceptVisitor(this, data);
     @using.Alias = ((TypeReference)(nodeStack.Pop()));
     return null;
 }