public override void VisitComposedType(ComposedType composedType)
        {
            var spec = composedType.ArraySpecifiers.FirstOrDefault();

            if (spec != null)
            {
                ForceSpacesBefore(spec.LBracketToken, policy.SpaceBeforeArrayDeclarationBrackets);
            }

            if (composedType.HasNullableSpecifier)
            {
                ForceSpacesBefore(composedType.NullableSpecifierToken, false);
            }

            if (composedType.PointerRank > 0)
            {
                foreach (var token in composedType.PointerTokens)
                {
                    ForceSpacesBefore(token, false);
                }
            }

            base.VisitComposedType(composedType);
        }
Example #2
0
 void IAstVisitor.VisitComposedType(ComposedType composedType)
 {
     Visit(EnterComposedType, LeaveComposedType, composedType);
 }