public virtual void VisitOperatorDeclaration(OperatorDeclarationSyntax node) { DefaultVisit(node); }
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; }
public static OperatorDeclarationSyntax OperatorDeclaration(TypeSyntax returnType = null, Operator @operator = default(Operator)) { var result = new OperatorDeclarationSyntax(); result.ReturnType = returnType; result.Operator = @operator; return result; }
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; }