public virtual object Visit(EventRemoveRegion eventRemoveRegion, object data) { Debug.Assert(eventRemoveRegion != null); Debug.Assert(eventRemoveRegion.Attributes != null); Debug.Assert(eventRemoveRegion.Block != null); foreach (AttributeSection section in eventRemoveRegion.Attributes) { Debug.Assert(section != null); section.AcceptVisitor(this, data); } blockStack.Push(eventRemoveRegion.Block); eventRemoveRegion.Block.AcceptChildren(this, data); blockStack.Pop(); return(data); }
public object VisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { throw new ApplicationException("EventRemoveRegion visited."); }
public virtual object VisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { throw new global::System.NotImplementedException("EventRemoveRegion"); }
public override object VisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { return(base.VisitEventRemoveRegion(eventRemoveRegion, data)); }
void EventAccessorDeclaration( #line 1278 "VBNET.ATG" out EventAddRemoveRegion eventAccessorDeclaration) { #line 1280 "VBNET.ATG" Statement stmt = null; List<ParameterDeclarationExpression> p = new List<ParameterDeclarationExpression>(); AttributeSection section; List<AttributeSection> attributes = new List<AttributeSection>(); eventAccessorDeclaration = null; while (la.kind == 28) { AttributeSection( #line 1286 "VBNET.ATG" out section); #line 1286 "VBNET.ATG" attributes.Add(section); } if (la.kind == 43) { lexer.NextToken(); if (la.kind == 25) { lexer.NextToken(); if (StartOf(4)) { FormalParameterList( #line 1288 "VBNET.ATG" p); } Expect(26); } Expect(1); Block( #line 1289 "VBNET.ATG" out stmt); Expect(100); Expect(43); EndOfStmt(); #line 1291 "VBNET.ATG" eventAccessorDeclaration = new EventAddRegion(attributes); eventAccessorDeclaration.Block = (BlockStatement)stmt; eventAccessorDeclaration.Parameters = p; } else if (la.kind == 178) { lexer.NextToken(); if (la.kind == 25) { lexer.NextToken(); if (StartOf(4)) { FormalParameterList( #line 1296 "VBNET.ATG" p); } Expect(26); } Expect(1); Block( #line 1297 "VBNET.ATG" out stmt); Expect(100); Expect(178); EndOfStmt(); #line 1299 "VBNET.ATG" eventAccessorDeclaration = new EventRemoveRegion(attributes); eventAccessorDeclaration.Block = (BlockStatement)stmt; eventAccessorDeclaration.Parameters = p; } else if (la.kind == 174) { lexer.NextToken(); if (la.kind == 25) { lexer.NextToken(); if (StartOf(4)) { FormalParameterList( #line 1304 "VBNET.ATG" p); } Expect(26); } Expect(1); Block( #line 1305 "VBNET.ATG" out stmt); Expect(100); Expect(174); EndOfStmt(); #line 1307 "VBNET.ATG" eventAccessorDeclaration = new EventRaiseRegion(attributes); eventAccessorDeclaration.Block = (BlockStatement)stmt; eventAccessorDeclaration.Parameters = p; } else SynErr(252); }
public virtual object VisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { Debug.Assert((eventRemoveRegion != null)); Debug.Assert((eventRemoveRegion.Attributes != null)); Debug.Assert((eventRemoveRegion.Block != null)); Debug.Assert((eventRemoveRegion.Parameters != null)); foreach (AttributeSection o in eventRemoveRegion.Attributes) { Debug.Assert(o != null); o.AcceptVisitor(this, data); } eventRemoveRegion.Block.AcceptVisitor(this, data); foreach (ParameterDeclarationExpression o in eventRemoveRegion.Parameters) { Debug.Assert(o != null); o.AcceptVisitor(this, data); } return null; }
void EventAccessorDecls( #line 1224 "cs.ATG" out EventAddRegion addBlock, out EventRemoveRegion removeBlock) { #line 1225 "cs.ATG" AttributeSection section; List<AttributeSection> attributes = new List<AttributeSection>(); Statement stmt; addBlock = null; removeBlock = null; while (la.kind == 18) { AttributeSection( #line 1232 "cs.ATG" out section); #line 1232 "cs.ATG" attributes.Add(section); } if (la.kind == 130) { #line 1234 "cs.ATG" addBlock = new EventAddRegion(attributes); AddAccessorDecl( #line 1235 "cs.ATG" out stmt); #line 1235 "cs.ATG" attributes = new List<AttributeSection>(); addBlock.Block = (BlockStatement)stmt; while (la.kind == 18) { AttributeSection( #line 1236 "cs.ATG" out section); #line 1236 "cs.ATG" attributes.Add(section); } RemoveAccessorDecl( #line 1237 "cs.ATG" out stmt); #line 1237 "cs.ATG" removeBlock = new EventRemoveRegion(attributes); removeBlock.Block = (BlockStatement)stmt; } else if (la.kind == 131) { RemoveAccessorDecl( #line 1239 "cs.ATG" out stmt); #line 1239 "cs.ATG" removeBlock = new EventRemoveRegion(attributes); removeBlock.Block = (BlockStatement)stmt; attributes = new List<AttributeSection>(); while (la.kind == 18) { AttributeSection( #line 1240 "cs.ATG" out section); #line 1240 "cs.ATG" attributes.Add(section); } AddAccessorDecl( #line 1241 "cs.ATG" out stmt); #line 1241 "cs.ATG" addBlock = new EventAddRegion(attributes); addBlock.Block = (BlockStatement)stmt; } else SynErr(183); }
private bool IsMatch(EventRemoveRegion left, EventRemoveRegion data) { return(true); }
public object VisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { throw new NotImplementedException(); }
private void EventAccessorDecls(out EventAddRegion addBlock, out EventRemoveRegion removeBlock) { ICSharpCode.NRefactory.Parser.AST.AttributeSection section; ICSharpCode.NRefactory.Parser.AST.Statement statement; List<ICSharpCode.NRefactory.Parser.AST.AttributeSection> attributes = new List<ICSharpCode.NRefactory.Parser.AST.AttributeSection>(); addBlock = null; removeBlock = null; while (this.la.kind == 0x12) { this.AttributeSection(out section); attributes.Add(section); } if (this.IdentIsAdd()) { addBlock = new EventAddRegion(attributes); this.AddAccessorDecl(out statement); attributes = new List<ICSharpCode.NRefactory.Parser.AST.AttributeSection>(); addBlock.Block = (BlockStatement) statement; while (this.la.kind == 0x12) { this.AttributeSection(out section); attributes.Add(section); } this.RemoveAccessorDecl(out statement); removeBlock = new EventRemoveRegion(attributes); removeBlock.Block = (BlockStatement) statement; } else if (this.IdentIsRemove()) { this.RemoveAccessorDecl(out statement); removeBlock = new EventRemoveRegion(attributes); removeBlock.Block = (BlockStatement) statement; attributes = new List<ICSharpCode.NRefactory.Parser.AST.AttributeSection>(); while (this.la.kind == 0x12) { this.AttributeSection(out section); attributes.Add(section); } this.AddAccessorDecl(out statement); addBlock = new EventAddRegion(attributes); addBlock.Block = (BlockStatement) statement; } else if (this.la.kind == 1) { base.lexer.NextToken(); this.Error("add or remove accessor declaration expected"); } else { base.SynErr(0x9f); } }
public virtual object VisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { Debug.Assert((eventRemoveRegion != null)); Debug.Assert((eventRemoveRegion.Attributes != null)); Debug.Assert((eventRemoveRegion.Block != null)); Debug.Assert((eventRemoveRegion.Parameters != null)); for (int i = 0; i < eventRemoveRegion.Attributes.Count; i++) { AttributeSection o = eventRemoveRegion.Attributes[i]; Debug.Assert(o != null); nodeStack.Push(o); o.AcceptVisitor(this, data); o = (AttributeSection)nodeStack.Pop(); if (o == null) eventRemoveRegion.Attributes.RemoveAt(i--); else eventRemoveRegion.Attributes[i] = o; } nodeStack.Push(eventRemoveRegion.Block); eventRemoveRegion.Block.AcceptVisitor(this, data); eventRemoveRegion.Block = ((BlockStatement)(nodeStack.Pop())); for (int i = 0; i < eventRemoveRegion.Parameters.Count; i++) { ParameterDeclarationExpression o = eventRemoveRegion.Parameters[i]; Debug.Assert(o != null); nodeStack.Push(o); o.AcceptVisitor(this, data); o = (ParameterDeclarationExpression)nodeStack.Pop(); if (o == null) eventRemoveRegion.Parameters.RemoveAt(i--); else eventRemoveRegion.Parameters[i] = o; } return null; }
public sealed override object VisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { BeginVisit(eventRemoveRegion); object result = TrackedVisitEventRemoveRegion(eventRemoveRegion, data); EndVisit(eventRemoveRegion); return result; }
public virtual object TrackedVisitEventRemoveRegion(EventRemoveRegion eventRemoveRegion, object data) { return base.VisitEventRemoveRegion(eventRemoveRegion, data); }