public virtual void VisitOperatorDeclaration(OperatorDeclarationSyntax node)
 {
     DefaultVisit(node);
 }
Exemple #2
0
        public static OperatorDeclarationSyntax OperatorDeclaration(string returnType = null, Operator @operator = default(Operator))
        {
            var result = new OperatorDeclarationSyntax();

            if (returnType != null)
                result.ReturnType = ParseName(returnType);
            result.Operator = @operator;

            return result;
        }
Exemple #3
0
        public static OperatorDeclarationSyntax OperatorDeclaration(TypeSyntax returnType = null, Operator @operator = default(Operator))
        {
            var result = new OperatorDeclarationSyntax();

            result.ReturnType = returnType;
            result.Operator = @operator;

            return result;
        }
Exemple #4
0
        public static OperatorDeclarationSyntax OperatorDeclaration(IEnumerable<AttributeListSyntax> attributeLists = null, Modifiers modifiers = default(Modifiers), string returnType = null, Operator @operator = default(Operator), ParameterListSyntax parameterList = null, BlockSyntax body = null)
        {
            var result = new OperatorDeclarationSyntax();

            if (attributeLists != null)
                result.AttributeLists.AddRange(attributeLists);
            result.Modifiers = modifiers;
            if (returnType != null)
                result.ReturnType = ParseName(returnType);
            result.Operator = @operator;
            result.ParameterList = parameterList;
            result.Body = body;

            return result;
        }
Exemple #5
0
 public virtual void VisitOperatorDeclaration(OperatorDeclarationSyntax node)
 {
     DefaultVisit(node);
 }