Beispiel #1
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            EnumMemberDeclaration o = other as EnumMemberDeclaration;

            return(o != null && this.MatchAttributesAndModifiers(o, match) &&
                   MatchString(this.Name, o.Name) && this.Initializer.DoMatch(o.Initializer, match));
        }
Beispiel #2
0
        public override void VisitEnumMemberDeclaration(EnumMemberDeclaration enumMemberDeclaration)
        {
            FixAttributesAndDocComment(enumMemberDeclaration);
            var initializer = enumMemberDeclaration.Initializer;

            if (!initializer.IsNull)
            {
                ForceSpacesAround(enumMemberDeclaration.AssignToken, policy.SpaceAroundAssignment);
                initializer.AcceptVisitor(this);
            }
        }
Beispiel #3
0
 void IAstVisitor.VisitEnumMemberDeclaration(EnumMemberDeclaration enumMemberDeclaration)
 {
     Visit(EnterEnumMemberDeclaration, LeaveEnumMemberDeclaration, enumMemberDeclaration);
 }