public virtual object VisitEventRaiseRegion(EventRaiseRegion eventRaiseRegion, object data) { throw new global::System.NotImplementedException("EventRaiseRegion"); }
public virtual object VisitEventRaiseRegion(EventRaiseRegion eventRaiseRegion, object data) { Debug.Assert((eventRaiseRegion != null)); Debug.Assert((eventRaiseRegion.Attributes != null)); Debug.Assert((eventRaiseRegion.Block != null)); Debug.Assert((eventRaiseRegion.Parameters != null)); foreach (AttributeSection o in eventRaiseRegion.Attributes) { Debug.Assert(o != null); o.AcceptVisitor(this, data); } eventRaiseRegion.Block.AcceptVisitor(this, data); foreach (ParameterDeclarationExpression o in eventRaiseRegion.Parameters) { Debug.Assert(o != null); o.AcceptVisitor(this, data); } return null; }
public virtual object VisitEventRaiseRegion(EventRaiseRegion eventRaiseRegion, object data) { Debug.Assert((eventRaiseRegion != null)); Debug.Assert((eventRaiseRegion.Attributes != null)); Debug.Assert((eventRaiseRegion.Block != null)); Debug.Assert((eventRaiseRegion.Parameters != null)); for (int i = 0; i < eventRaiseRegion.Attributes.Count; i++) { AttributeSection o = eventRaiseRegion.Attributes[i]; Debug.Assert(o != null); nodeStack.Push(o); o.AcceptVisitor(this, data); o = (AttributeSection)nodeStack.Pop(); if (o == null) eventRaiseRegion.Attributes.RemoveAt(i--); else eventRaiseRegion.Attributes[i] = o; } nodeStack.Push(eventRaiseRegion.Block); eventRaiseRegion.Block.AcceptVisitor(this, data); eventRaiseRegion.Block = ((BlockStatement)(nodeStack.Pop())); for (int i = 0; i < eventRaiseRegion.Parameters.Count; i++) { ParameterDeclarationExpression o = eventRaiseRegion.Parameters[i]; Debug.Assert(o != null); nodeStack.Push(o); o.AcceptVisitor(this, data); o = (ParameterDeclarationExpression)nodeStack.Pop(); if (o == null) eventRaiseRegion.Parameters.RemoveAt(i--); else eventRaiseRegion.Parameters[i] = o; } return 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 EventDeclaration() { addRegion = EventAddRegion.Null; removeRegion = EventRemoveRegion.Null; raiseRegion = EventRaiseRegion.Null; bodyStart = Location.Empty; bodyEnd = Location.Empty; initializer = Expression.Null; }
public virtual object TrackedVisitEventRaiseRegion(EventRaiseRegion eventRaiseRegion, object data) { return base.VisitEventRaiseRegion(eventRaiseRegion, data); }
public sealed override object VisitEventRaiseRegion(EventRaiseRegion eventRaiseRegion, object data) { this.BeginVisit(eventRaiseRegion); object result = this.TrackedVisitEventRaiseRegion(eventRaiseRegion, data); this.EndVisit(eventRaiseRegion); return result; }