public override void CaseAABlock(AABlock node) { if (node == null) return; //If this is the first block, it marks the end if (node.Parent() is AMethodDecl || node.Parent() is AInitializerDecl || node.Parent() is ATriggerDecl || node.Parent() is APropertyDecl || node.Parent() is AConstructorDecl || node.Parent() is ADeconstructorDecl) { End = TextPoint.FromCompilerCoords(node.GetToken().Line, node.GetToken().Pos); } base.CaseAABlock(node); }
public override void CaseAABlock(AABlock node) { InAABlock(node); if (node.GetToken() != null) { node.GetToken().Apply(this); } { Object[] temp = new Object[node.GetStatements().Count]; node.GetStatements().CopyTo(temp, 0); for (int i = temp.Length - 1; i >= 0; i--) { ((PStm)temp[i]).Apply(this); } } OutAABlock(node); }