S IAstVisitor <T, S> .VisitFixedFieldDeclaration(FixedFieldDeclaration fixedFieldDeclaration, T data) { var handler = FixedFieldDeclarationVisited; if (handler != null) { handler(fixedFieldDeclaration, data); } return(VisitChildren(fixedFieldDeclaration, data)); }
public override void VisitFixedFieldDeclaration(FixedFieldDeclaration fixedFieldDeclaration) { FixAttributes(fixedFieldDeclaration); FormatCommas(fixedFieldDeclaration, policy.SpaceBeforeFieldDeclarationComma, policy.SpaceAfterFieldDeclarationComma); var lastLoc = fixedFieldDeclaration.StartLocation; curIndent.Push(IndentType.Block); foreach (var initializer in fixedFieldDeclaration.Variables) { if (lastLoc.Line != initializer.StartLocation.Line) { FixStatementIndentation(initializer.StartLocation); lastLoc = initializer.StartLocation; } initializer.AcceptVisitor(this); } curIndent.Pop(); }
void IAstVisitor.VisitFixedFieldDeclaration(FixedFieldDeclaration fixedFieldDeclaration) { Visit(EnterFixedFieldDeclaration, LeaveFixedFieldDeclaration, fixedFieldDeclaration); }