public virtual void VisitEventDeclaration(EventDeclarationSyntax node)
 {
     DefaultVisit(node);
 }
示例#2
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;
        }
示例#3
0
        public static EventDeclarationSyntax EventDeclaration(string type = null, string identifier = null)
        {
            var result = new EventDeclarationSyntax();

            if (type != null)
                result.Type = ParseName(type);
            result.Identifier = identifier;

            return result;
        }
示例#4
0
        public static EventDeclarationSyntax EventDeclaration(TypeSyntax type = null, string identifier = null)
        {
            var result = new EventDeclarationSyntax();

            result.Type = type;
            result.Identifier = identifier;

            return result;
        }