public virtual void VisitDelegateDeclaration(DelegateDeclarationSyntax node)
 {
     DefaultVisit(node);
 }
Esempio n. 2
0
        public static DelegateDeclarationSyntax DelegateDeclaration(string returnType = null, string identifier = null, ParameterListSyntax parameterList = null)
        {
            var result = new DelegateDeclarationSyntax();

            if (returnType != null)
                result.ReturnType = ParseName(returnType);
            result.Identifier = identifier;
            result.ParameterList = parameterList;

            return result;
        }
Esempio n. 3
0
        public static DelegateDeclarationSyntax DelegateDeclaration(TypeSyntax returnType = null, string identifier = null, ParameterListSyntax parameterList = null)
        {
            var result = new DelegateDeclarationSyntax();

            result.ReturnType = returnType;
            result.Identifier = identifier;
            result.ParameterList = parameterList;

            return result;
        }
Esempio n. 4
0
        public static DelegateDeclarationSyntax DelegateDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string returnType = null, string identifier = null, TypeParameterListSyntax typeParameterList = null, ParameterListSyntax parameterList = null, IEnumerable<TypeParameterConstraintClauseSyntax> constraintClauses = null)
        {
            var result = new DelegateDeclarationSyntax();

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

            return result;
        }
Esempio n. 5
0
 public virtual void VisitDelegateDeclaration(DelegateDeclarationSyntax node)
 {
     DefaultVisit(node);
 }