示例#1
0
        public static AccessorListSyntax AccessorList(params AccessorDeclarationSyntax[] accessors)
        {
            var result = new AccessorListSyntax();

            if (accessors != null)
                result.Accessors.AddRange(accessors);

            return result;
        }
示例#2
0
        public static AccessorListSyntax AccessorList(IEnumerable<AccessorDeclarationSyntax> accessors = null)
        {
            var result = new AccessorListSyntax();

            if (accessors != null)
                result.Accessors.AddRange(accessors);

            return result;
        }
 public virtual void VisitAccessorList(AccessorListSyntax node)
 {
     DefaultVisit(node);
 }
示例#4
0
        public static EventDeclarationSyntax EventDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string type = null, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier = null, string identifier = null, AccessorListSyntax accessorList = null)
        {
            var result = new EventDeclarationSyntax();

            if (attributeLists != null)
                result.AttributeLists.AddRange(attributeLists);
            result.Modifiers = modifiers;
            if (type != null)
                result.Type = ParseName(type);
            result.ExplicitInterfaceSpecifier = explicitInterfaceSpecifier;
            result.Identifier = identifier;
            result.AccessorList = accessorList;

            return result;
        }
示例#5
0
        public static IndexerDeclarationSyntax IndexerDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), TypeSyntax type = null, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier = null, BracketedParameterListSyntax parameterList = null, AccessorListSyntax accessorList = null)
        {
            var result = new IndexerDeclarationSyntax();

            if (attributeLists != null)
                result.AttributeLists.AddRange(attributeLists);
            result.Modifiers = modifiers;
            result.Type = type;
            result.ExplicitInterfaceSpecifier = explicitInterfaceSpecifier;
            result.ParameterList = parameterList;
            result.AccessorList = accessorList;

            return result;
        }
示例#6
0
 public virtual void VisitAccessorList(AccessorListSyntax node)
 {
     DefaultVisit(node);
 }