public override void Visit(Destructor d) { var newDestructor = new DestructorDeclaration(); AddAttributeSection(newDestructor, d); var location = LocationsBag.GetMemberLocation(d); AddModifiers(newDestructor, location); if (location != null && location.Count > 0) newDestructor.AddChild(new CSharpTokenNode(Convert(location [0]), DestructorDeclaration.TildeRole), DestructorDeclaration.TildeRole); newDestructor.AddChild(Identifier.Create(d.Identifier, Convert(d.MemberName.Location)), Roles.Identifier); if (location != null && location.Count > 1) { newDestructor.AddChild(new CSharpTokenNode(Convert(location [1]), Roles.LPar), Roles.LPar); if (location.Count > 2) newDestructor.AddChild(new CSharpTokenNode(Convert(location [2]), Roles.RPar), Roles.RPar); } if (d.Block != null) newDestructor.AddChild((BlockStatement)d.Block.Accept(this), Roles.Body); typeStack.Peek().AddChild(newDestructor, Roles.TypeMemberRole); }
public virtual void Visit (Destructor d) { }