public override sealed object VisitConstructorInitializer(ConstructorInitializer constructorInitializer, object data)
 {
     this.BeginVisit(constructorInitializer);
     object result = this.TrackedVisitConstructorInitializer(constructorInitializer, data);
     this.EndVisit(constructorInitializer);
     return result;
 }
 public virtual object TrackedVisitConstructorInitializer(ConstructorInitializer constructorInitializer, object data)
 {
     return base.VisitConstructorInitializer(constructorInitializer, data);
 }
 public virtual object VisitConstructorInitializer(ConstructorInitializer constructorInitializer, object data)
 {
     Debug.Assert((constructorInitializer != null));
     Debug.Assert((constructorInitializer.Arguments != null));
     foreach (Expression o in constructorInitializer.Arguments) {
         Debug.Assert(o != null);
         o.AcceptVisitor(this, data);
     }
     return null;
 }
 public virtual object VisitConstructorInitializer(ConstructorInitializer constructorInitializer, object data)
 {
     throw new global::System.NotImplementedException("ConstructorInitializer");
 }
Esempio n. 5
0
 public ConstructorDeclaration(string name, Modifiers modifier, List<ParameterDeclarationExpression> parameters, ConstructorInitializer constructorInitializer, List<AttributeSection> attributes)
 {
     Name = name;
     Modifier = modifier;
     Parameters = parameters;
     ConstructorInitializer = constructorInitializer;
     Attributes = attributes;
     body = BlockStatement.Null;
 }
 public virtual object VisitConstructorInitializer(ConstructorInitializer constructorInitializer, object data)
 {
     Debug.Assert((constructorInitializer != null));
     Debug.Assert((constructorInitializer.Arguments != null));
     for (int i = 0; i < constructorInitializer.Arguments.Count; i++) {
         Expression o = constructorInitializer.Arguments[i];
         Debug.Assert(o != null);
         nodeStack.Push(o);
         o.AcceptVisitor(this, data);
         o = (Expression)nodeStack.Pop();
         if (o == null)
             constructorInitializer.Arguments.RemoveAt(i--);
         else
             constructorInitializer.Arguments[i] = o;
     }
     return null;
 }