public virtual void VisitExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax node)
 {
     DefaultVisit(node);
 }
Example #2
0
        public static ExplicitInterfaceSpecifierSyntax ExplicitInterfaceSpecifier(string name = null)
        {
            var result = new ExplicitInterfaceSpecifierSyntax();

            if (name != null)
                result.Name = (NameSyntax)ParseName(name);

            return result;
        }
Example #3
0
        public static ExplicitInterfaceSpecifierSyntax ExplicitInterfaceSpecifier(NameSyntax name = null)
        {
            var result = new ExplicitInterfaceSpecifierSyntax();

            result.Name = name;

            return result;
        }
Example #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;
        }
Example #5
0
        public static MethodDeclarationSyntax MethodDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string returnType = null, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier = null, string identifier = null, TypeParameterListSyntax typeParameterList = null, ParameterListSyntax parameterList = null, IEnumerable<TypeParameterConstraintClauseSyntax> constraintClauses = null, BlockSyntax body = null)
        {
            var result = new MethodDeclarationSyntax();

            if (attributeLists != null)
                result.AttributeLists.AddRange(attributeLists);
            result.Modifiers = modifiers;
            if (returnType != null)
                result.ReturnType = ParseName(returnType);
            result.ExplicitInterfaceSpecifier = explicitInterfaceSpecifier;
            result.Identifier = identifier;
            result.TypeParameterList = typeParameterList;
            result.ParameterList = parameterList;
            if (constraintClauses != null)
                result.ConstraintClauses.AddRange(constraintClauses);
            result.Body = body;

            return result;
        }
Example #6
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;
        }