Beispiel #1
0
        S IAstVisitor <T, S> .VisitFixedFieldDeclaration(FixedFieldDeclaration fixedFieldDeclaration, T data)
        {
            var handler = FixedFieldDeclarationVisited;

            if (handler != null)
            {
                handler(fixedFieldDeclaration, data);
            }
            return(VisitChildren(fixedFieldDeclaration, data));
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 void IAstVisitor.VisitFixedFieldDeclaration(FixedFieldDeclaration fixedFieldDeclaration)
 {
     Visit(EnterFixedFieldDeclaration, LeaveFixedFieldDeclaration, fixedFieldDeclaration);
 }