public virtual object TrackedVisitEventAddRegion(EventAddRegion eventAddRegion, object data) { return base.VisitEventAddRegion(eventAddRegion, data); }
public override sealed object VisitEventAddRegion(EventAddRegion eventAddRegion, object data) { this.BeginVisit(eventAddRegion); object result = this.TrackedVisitEventAddRegion(eventAddRegion, data); this.EndVisit(eventAddRegion); return result; }
public virtual object VisitEventAddRegion(EventAddRegion eventAddRegion, object data) { Debug.Assert((eventAddRegion != null)); Debug.Assert((eventAddRegion.Attributes != null)); Debug.Assert((eventAddRegion.Block != null)); Debug.Assert((eventAddRegion.Parameters != null)); foreach (AttributeSection o in eventAddRegion.Attributes) { Debug.Assert(o != null); o.AcceptVisitor(this, data); } eventAddRegion.Block.AcceptVisitor(this, data); foreach (ParameterDeclarationExpression o in eventAddRegion.Parameters) { Debug.Assert(o != null); o.AcceptVisitor(this, data); } return null; }
public virtual object VisitEventAddRegion(EventAddRegion eventAddRegion, object data) { throw new global::System.NotImplementedException("EventAddRegion"); }
public EventDeclaration() { addRegion = EventAddRegion.Null; removeRegion = EventRemoveRegion.Null; raiseRegion = EventRaiseRegion.Null; bodyStart = Location.Empty; bodyEnd = Location.Empty; initializer = Expression.Null; }
void EventAccessorDeclaration(out EventAddRemoveRegion eventAccessorDeclaration) { Statement stmt = null; List<ParameterDeclarationExpression> p = new List<ParameterDeclarationExpression>(); AttributeSection section; List<AttributeSection> attributes = new List<AttributeSection>(); eventAccessorDeclaration = null; while (la.kind == 40) { AttributeSection(out section); attributes.Add(section); } if (la.kind == 56) { Get(); if (la.kind == 37) { Get(); if (StartOf(7)) { FormalParameterList(p); } Expect(38); } Expect(1); Block(out stmt); Expect(113); Expect(56); EndOfStmt(); eventAccessorDeclaration = new EventAddRegion(attributes); eventAccessorDeclaration.Block = (BlockStatement)stmt; eventAccessorDeclaration.Parameters = p; } else if (la.kind == 193) { Get(); if (la.kind == 37) { Get(); if (StartOf(7)) { FormalParameterList(p); } Expect(38); } Expect(1); Block(out stmt); Expect(113); Expect(193); EndOfStmt(); eventAccessorDeclaration = new EventRemoveRegion(attributes); eventAccessorDeclaration.Block = (BlockStatement)stmt; eventAccessorDeclaration.Parameters = p; } else if (la.kind == 189) { Get(); if (la.kind == 37) { Get(); if (StartOf(7)) { FormalParameterList(p); } Expect(38); } Expect(1); Block(out stmt); Expect(113); Expect(189); EndOfStmt(); eventAccessorDeclaration = new EventRaiseRegion(attributes); eventAccessorDeclaration.Block = (BlockStatement)stmt; eventAccessorDeclaration.Parameters = p; } else SynErr(275); }
public virtual object VisitEventAddRegion(EventAddRegion eventAddRegion, object data) { Debug.Assert((eventAddRegion != null)); Debug.Assert((eventAddRegion.Attributes != null)); Debug.Assert((eventAddRegion.Block != null)); Debug.Assert((eventAddRegion.Parameters != null)); for (int i = 0; i < eventAddRegion.Attributes.Count; i++) { AttributeSection o = eventAddRegion.Attributes[i]; Debug.Assert(o != null); nodeStack.Push(o); o.AcceptVisitor(this, data); o = (AttributeSection)nodeStack.Pop(); if (o == null) eventAddRegion.Attributes.RemoveAt(i--); else eventAddRegion.Attributes[i] = o; } nodeStack.Push(eventAddRegion.Block); eventAddRegion.Block.AcceptVisitor(this, data); eventAddRegion.Block = ((BlockStatement)(nodeStack.Pop())); for (int i = 0; i < eventAddRegion.Parameters.Count; i++) { ParameterDeclarationExpression o = eventAddRegion.Parameters[i]; Debug.Assert(o != null); nodeStack.Push(o); o.AcceptVisitor(this, data); o = (ParameterDeclarationExpression)nodeStack.Pop(); if (o == null) eventAddRegion.Parameters.RemoveAt(i--); else eventAddRegion.Parameters[i] = o; } return null; }