372 references to UserDefinedOperator
Microsoft.CodeAnalysis (1)
CodeGen\CompilationTestData.cs (1)
128var format = (iMethod.MethodKind == MethodKind.UserDefinedOperator) ?
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
226if (member is IMethodSymbol { IsStatic: true, IsAbstract: true, MethodKind: MethodKind.UserDefinedOperator } method) 426if (method is { MethodKind: MethodKind.UserDefinedOperator or MethodKind.Conversion } ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
141MethodKind.UserDefinedOperator or 232=> symbol is IMethodSymbol { MethodKind: MethodKind.UserDefinedOperator };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
113methodSymbol.MethodKind == MethodKind.UserDefinedOperator;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
262if ((kind1 == MethodKind.BuiltinOperator && kind2 == MethodKind.UserDefinedOperator) || 263(kind1 == MethodKind.UserDefinedOperator && kind2 == MethodKind.BuiltinOperator))
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
40public override MethodKind MethodKind => MethodKind.UserDefinedOperator;
Microsoft.CodeAnalysis.CSharp (22)
Lowering\DiagnosticsPass_Warnings.cs (1)
368if ((object)op == null || op.MethodKind != MethodKind.UserDefinedOperator) continue;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
520case MethodKind.UserDefinedOperator:
Symbols\Compilation_WellKnownMembers.cs (1)
309if (methodKind == MethodKind.Conversion || methodKind == MethodKind.UserDefinedOperator)
Symbols\MemberSymbolExtensions.cs (1)
173return methodSymbol.MethodKind == MethodKind.UserDefinedOperator || methodSymbol.MethodKind == MethodKind.Conversion;
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1229return IsValidUserDefinedOperatorSignature(2) ? MethodKind.UserDefinedOperator : MethodKind.Ordinary; 1241return IsValidUserDefinedOperatorSignature(1) ? MethodKind.UserDefinedOperator : MethodKind.Ordinary;
Symbols\MethodSymbol.cs (2)
616case MethodKind.UserDefinedOperator: 1202or MethodKind.UserDefinedOperator
Symbols\MethodSymbolExtensions.cs (1)
132case MethodKind.UserDefinedOperator:
Symbols\NamedTypeSymbol.cs (1)
220if (candidate is MethodSymbol { MethodKind: MethodKind.UserDefinedOperator or MethodKind.Conversion } method)
Symbols\PublicModel\MethodSymbol.cs (2)
55case MethodKind.UserDefinedOperator: 56return MethodKind.UserDefinedOperator;
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
263(interfaceMethod.MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion) != isOperator)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4061case MethodKind.UserDefinedOperator:
Symbols\Source\SourceMemberMethodSymbol.cs (2)
345ErrorCode code = (this.MethodKind == MethodKind.Conversion || this.MethodKind == MethodKind.UserDefinedOperator) ? 356code = (this.MethodKind == MethodKind.Conversion || this.MethodKind == MethodKind.UserDefinedOperator) ?
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1663case MethodKind.UserDefinedOperator:
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
635Debug.Assert(this.MethodKind != MethodKind.UserDefinedOperator, "SourceUserDefinedOperatorSymbolBase overrides this");
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
48? MethodKind.UserDefinedOperator
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
39: base(MethodKind.UserDefinedOperator, explicitInterfaceType: null, name, containingType, containingType.GetFirstLocation(), (CSharpSyntaxNode)containingType.SyntaxReferences[0].GetSyntax(),
Symbols\TypeSymbol.cs (2)
2173isOperator = interfaceMethod.MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion; 2181(((MethodSymbol)member).MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion) != isOperator.GetValueOrDefault())
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
921if (sym is IMethodSymbol { MethodKind: MethodKind.UserDefinedOperator } op)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
162if (method.MethodKind == MethodKind.UserDefinedOperator)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Emit\EditAndContinue\SymbolMatcherTests.cs (8)
1719var members1 = compilation1.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray(); 1720var members0 = compilation0.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray(); 1761var members1 = compilation1.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray(); 1762var members0 = compilation0.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray(); 1813var members1 = compilation1.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray(); 1814var members0 = compilation0.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray(); 1860var members1 = compilation1.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray(); 1905var members1 = compilation1.GetMember<NamedTypeSymbol>("A").GetMembers().OfType<MethodSymbol>().Where(m => m.MethodKind is (MethodKind.Conversion or MethodKind.UserDefinedOperator)).ToArray();
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (1)
60case MethodKind.UserDefinedOperator:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2541IMethodSymbol { MethodKind: MethodKind.Conversion or MethodKind.UserDefinedOperator }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
8103Assert.Equal(MethodKind.UserDefinedOperator, s.MethodKind); 8291Assert.Equal(MethodKind.UserDefinedOperator, symbol1.MethodKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (59)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
4497Assert.Equal(MethodKind.UserDefinedOperator, @operator.MethodKind);
DocumentationComments\CrefTests.cs (2)
3302Assert.Equal(MethodKind.UserDefinedOperator, ((IMethodSymbol)info.CandidateSymbols[0]).MethodKind); 5718Assert.Equal(MethodKind.UserDefinedOperator, ((IMethodSymbol)symbol).MethodKind);
Symbols\CheckedUserDefinedOperatorsTests.cs (25)
53Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind); 87Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 88Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 120Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 121Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 168Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 169Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 906Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind); 942Assert.Equal(MethodKind.UserDefinedOperator, opSymbol1.MethodKind); 948Assert.Equal(MethodKind.UserDefinedOperator, opSymbol2.MethodKind); 984Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 985Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 1020Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 1023Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 1026Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[2].MethodKind); 1270Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind); 1305Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 1306Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 1339Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 1340Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 1374Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 1375Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind); 2183Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind); 2229Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[0].MethodKind); 2230Assert.Equal(MethodKind.UserDefinedOperator, opSymbols[1].MethodKind);
Symbols\StaticAbstractMembersInInterfacesTests.cs (25)
19318Assert.Equal(MethodKind.UserDefinedOperator, cM01.MethodKind); 19399Assert.Equal(MethodKind.UserDefinedOperator, cM01.MethodKind); 19491Assert.Equal(MethodKind.UserDefinedOperator, cM01.MethodKind); 20279Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind); 20280Assert.Equal(MethodKind.UserDefinedOperator, c1.GetMember<MethodSymbol>(opName).MethodKind); 20301Assert.Equal(MethodKind.UserDefinedOperator, c2M01.MethodKind); 20414Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind); 20415Assert.Equal(MethodKind.UserDefinedOperator, c1.GetMember<MethodSymbol>(opName).MethodKind); 20436Assert.Equal(MethodKind.UserDefinedOperator, c2M01.MethodKind); 20493Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind); 20573Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind); 20665Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind); 20730Assert.Equal(MethodKind.UserDefinedOperator, m01.MethodKind); 20826Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind); 20833Assert.Equal(MethodKind.UserDefinedOperator, c2M01.MethodKind); 20940Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind); 20946Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind); 21051Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind); 21057Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind); 21186Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind); 21192Assert.Equal(MethodKind.UserDefinedOperator, c1M01.MethodKind); 32193Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind); 32232Assert.Equal(MethodKind.UserDefinedOperator, opSymbol1.MethodKind); 32238Assert.Equal(MethodKind.UserDefinedOperator, opSymbol2.MethodKind); 32441Assert.Equal(MethodKind.UserDefinedOperator, opSymbol.MethodKind);
Symbols\UnsignedRightShiftTests.cs (6)
1988Assert.Equal(MethodKind.UserDefinedOperator, compilation1.GetMember<MethodSymbol>("C1.op_UnsignedRightShift").MethodKind); 1997Assert.Equal(MethodKind.UserDefinedOperator, compilation2.GetMember<MethodSymbol>("C1.op_UnsignedRightShift").MethodKind); 2003Assert.Equal(MethodKind.UserDefinedOperator, compilation3.GetMember<MethodSymbol>("C1.op_UnsignedRightShift").MethodKind); 2240Assert.Equal(MethodKind.UserDefinedOperator, compilation1.GetMember<MethodSymbol>("C1.op_UnsignedRightShift").MethodKind); 2249Assert.Equal(MethodKind.UserDefinedOperator, compilation2.GetMember<MethodSymbol>("C1.op_UnsignedRightShift").MethodKind); 2255Assert.Equal(MethodKind.UserDefinedOperator, compilation3.GetMember<MethodSymbol>("C1.op_UnsignedRightShift").MethodKind);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.cs (1)
48if (symbolInfo.Symbol is IMethodSymbol { MethodKind: MethodKind.UserDefinedOperator })
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
33if (member is not IMethodSymbol { MethodKind: MethodKind.UserDefinedOperator } method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
921if (sym is IMethodSymbol { MethodKind: MethodKind.UserDefinedOperator } op)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
162if (method.MethodKind == MethodKind.UserDefinedOperator)
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
360MethodKind.BuiltinOperator or MethodKind.UserDefinedOperator or MethodKind.Conversion => FeaturesResources.operator_,
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
128.Any(m => m.MethodKind == MethodKind.UserDefinedOperator &&
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
78MethodKind: MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.UserDefinedOperator or MethodKind.Conversion
Rename\SymbolicRenameInfo.cs (1)
206if (symbol.Kind == SymbolKind.Method && ((IMethodSymbol)symbol).MethodKind == MethodKind.UserDefinedOperator)
RQName\RQNodeBuilder.cs (1)
200if (symbol.MethodKind is MethodKind.UserDefinedOperator or
Shared\Extensions\ISymbolExtensions_2.cs (1)
98if (methodSymbol.MethodKind is MethodKind.UserDefinedOperator or
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
131new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.UserDefinedOperator, ReturnsVoid = false },
Microsoft.CodeAnalysis.VisualBasic (88)
Analysis\FlowAnalysis\DataFlowPass.vb (4)
1258Case MethodKind.Conversion, MethodKind.UserDefinedOperator 1270Case MethodKind.Conversion, MethodKind.UserDefinedOperator 1286Case MethodKind.Conversion, MethodKind.UserDefinedOperator 1324Case MethodKind.Conversion, MethodKind.UserDefinedOperator
Binding\Binder_Utils.vb (1)
1648MethodKindOperator = CUInt(MethodKind.UserDefinedOperator) << MethodKindShift
Binding\DocumentationCommentCrefBinder.vb (25)
904CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.TrueOperatorName, opInfo, useSiteInfo) 910CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.FalseOperatorName, opInfo, useSiteInfo) 916CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, 925CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.UnaryPlusOperatorName, opInfo, useSiteInfo) 928CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.AdditionOperatorName, opInfo, useSiteInfo) 934CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.UnaryNegationOperatorName, opInfo, useSiteInfo) 937CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.SubtractionOperatorName, opInfo, useSiteInfo) 943CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.MultiplyOperatorName, opInfo, useSiteInfo) 949CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.DivisionOperatorName, opInfo, useSiteInfo) 955CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.IntegerDivisionOperatorName, opInfo, useSiteInfo) 961CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ModulusOperatorName, opInfo, useSiteInfo) 967CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ExponentOperatorName, opInfo, useSiteInfo) 973CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.EqualityOperatorName, opInfo, useSiteInfo) 979CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.InequalityOperatorName, opInfo, useSiteInfo) 985CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.LessThanOperatorName, opInfo, useSiteInfo) 991CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.GreaterThanOperatorName, opInfo, useSiteInfo) 997CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.LessThanOrEqualOperatorName, opInfo, useSiteInfo) 1003CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.GreaterThanOrEqualOperatorName, opInfo, useSiteInfo) 1009CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.LikeOperatorName, opInfo, useSiteInfo) 1015CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ConcatenateOperatorName, opInfo, useSiteInfo) 1021CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, 1030CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, 1039CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.ExclusiveOrOperatorName, opInfo, useSiteInfo) 1045CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, 1054CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator,
BoundTree\BoundCall.vb (1)
80Dim isOperator As Boolean = (Method.MethodKind = MethodKind.UserDefinedOperator)
BoundTree\BoundUserDefinedBinaryOperator.vb (1)
41Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.UserDefinedOperator AndAlso underlyingCall.Method.ParameterCount = 2)
BoundTree\BoundUserDefinedUnaryOperator.vb (1)
33Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.UserDefinedOperator AndAlso underlyingCall.Method.ParameterCount = 1)
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
726If(method.MethodKind = MethodKind.UserDefinedOperator OrElse method.MethodKind = MethodKind.Conversion, "operator",
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
112Me.TypeParamSupported = Not Me.IsDeclareMethod AndAlso method.MethodKind <> MethodKind.UserDefinedOperator
Compilation\DocumentationComments\DocumentationCommentCompiler.Method.vb (1)
106If method.MethodKind = MethodKind.UserDefinedOperator OrElse method.MethodKind = MethodKind.DeclareMethod Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
270Debug.Assert(helper.MethodKind = MethodKind.Ordinary OrElse helper.MethodKind = MethodKind.UserDefinedOperator)
Semantics\Operators.vb (25)
2955CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator, 2969CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator, 2992CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator, 2997CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator, 3002CollectUserDefinedOperators(argument.Type, Nothing, MethodKind.UserDefinedOperator, 3028CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3033CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3038CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3043CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3048CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3053CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3058CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3063CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3068CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3073CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3078CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3083CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3088CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3093CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3098CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3104CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3111CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3116CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3122CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator, 3128CollectUserDefinedOperators(left.Type, right.Type, MethodKind.UserDefinedOperator,
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
259Case MethodKind.UserDefinedOperator, MethodKind.BuiltinOperator 345Case MethodKind.UserDefinedOperator, MethodKind.BuiltinOperator
Symbols\Metadata\PE\PEMethodSymbol.vb (13)
449Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False) 452Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False) 454Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.OnesComplementOperatorName, False) 478Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False) 482Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False) 484Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.BitwiseAndOperatorName, False) 488Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False) 490Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.BitwiseOrOperatorName, False) 494Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False) 496Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.LeftShiftOperatorName, False) 500Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, Nothing, False) 502Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.UserDefinedOperator, WellKnownMemberNames.RightShiftOperatorName, False) 523Debug.Assert(potentialMethodKind = MethodKind.Conversion OrElse potentialMethodKind = MethodKind.UserDefinedOperator)
Symbols\MethodSymbolExtensions.vb (1)
86Case MethodKind.UserDefinedOperator, MethodKind.Conversion
Symbols\Source\OverrideHidingHelper.vb (1)
499Case MethodKind.Conversion, MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Ordinary, MethodKind.DeclareMethod,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
3433method.MethodKind <> MethodKind.UserDefinedOperator AndAlso 3601Case MethodKind.UserDefinedOperator
Symbols\Source\SourceMethodSymbol.vb (2)
1966MethodKind.UserDefinedOperator 2289If Me.MethodKind = MethodKind.UserDefinedOperator Then
Symbols\Source\SourceParameterSymbol.vb (1)
209MethodKind.UserDefinedOperator,
Symbols\Symbol.vb (2)
620Case MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Conversion 658Case MethodKind.Ordinary, MethodKind.DeclareMethod, MethodKind.ReducedExtension, MethodKind.DelegateInvoke, MethodKind.UserDefinedOperator, MethodKind.Conversion
Symbols\Symbol_Attributes.vb (1)
80MethodKind.UserDefinedOperator,
Symbols\SymbolExtensions.vb (1)
59Case MethodKind.Conversion, MethodKind.UserDefinedOperator, MethodKind.BuiltinOperator
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
153If method.MethodKind = MethodKind.UserDefinedOperator Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
2034If method.MethodKind = MethodKind.Conversion OrElse method.MethodKind = MethodKind.UserDefinedOperator Then
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
278method.MethodKind = MethodKind.UserDefinedOperator OrElse
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
1153Assert.Equal(MethodKind.UserDefinedOperator, sym2.MethodKind)
Semantics\BinaryOperators.vb (1)
1109If method.MethodKind = MethodKind.UserDefinedOperator AndAlso
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (140)
SymbolsTests\CheckedUserDefinedOperatorsTests.vb (4)
193Assert.Equal(MethodKind.UserDefinedOperator, m.MethodKind) 255Assert.Equal(MethodKind.UserDefinedOperator, m.MethodKind) 379Assert.Equal(MethodKind.UserDefinedOperator, operators(0).MethodKind) 438Assert.Equal(MethodKind.UserDefinedOperator, m.MethodKind)
SymbolsTests\Metadata\PE\LoadingOperators.vb (85)
556New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1, y As A1) As A1"), 557New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"), 559New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"), 561New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator &(x As A1, y As A1) As A1"), 562New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator /(x As A1, y As A1) As A1"), 563New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator =(x As A1, y As A1) As A1"), 564New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Xor(x As A1, y As A1) As A1"), 566New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator ^(x As A1, y As A1) As A1"), 567New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsFalse(x As A1) As Boolean"), 568New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >(x As A1, y As A1) As A1"), 569New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >=(x As A1, y As A1) As A1"), 571New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <>(x As A1, y As A1) As A1"), 572New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator \(x As A1, y As A1) As A1"), 573New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"), 575New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <(x As A1, y As A1) As A1"), 576New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <=(x As A1, y As A1) As A1"), 577New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Like(x As A1, y As A1) As A1"), 578New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Mod(x As A1, y As A1) As A1"), 579New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator *(x As A1, y As A1) As A1"), 580New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"), 582New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1"), 584New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1, y As A1) As A1"), 585New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsTrue(x As A1) As Boolean"), 586New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1) As A1"), 587New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1) As A1")} 1152New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1, y As A1) As A1"), 1153New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"), 1155New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"), 1157New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator &(x As A1, y As A1) As A1"), 1158New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator /(x As A1, y As A1) As A1"), 1159New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator =(x As A1, y As A1) As A1"), 1160New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Xor(x As A1, y As A1) As A1"), 1162New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator ^(x As A1, y As A1) As A1"), 1163New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsFalse(x As A1) As Boolean"), 1164New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >(x As A1, y As A1) As A1"), 1165New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >=(x As A1, y As A1) As A1"), 1167New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <>(x As A1, y As A1) As A1"), 1168New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator \(x As A1, y As A1) As A1"), 1169New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"), 1171New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <(x As A1, y As A1) As A1"), 1172New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <=(x As A1, y As A1) As A1"), 1173New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Like(x As A1, y As A1) As A1"), 1174New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Mod(x As A1, y As A1) As A1"), 1175New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator *(x As A1, y As A1) As A1"), 1176New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"), 1178New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1"), 1180New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1, y As A1) As A1"), 1181New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsTrue(x As A1) As Boolean"), 1182New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1) As A1"), 1183New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1) As A1")} 1914New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1, y As A1) As A1"), 1915New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"), 1917New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"), 1919New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator &(x As A1, y As A1) As A1"), 1920New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator /(x As A1, y As A1) As A1"), 1921New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator =(x As A1, y As A1) As A1"), 1922New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Xor(x As A1, y As A1) As A1"), 1924New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator ^(x As A1, y As A1) As A1"), 1925New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsFalse(x As A1) As Boolean"), 1926New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >(x As A1, y As A1) As A1"), 1927New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >=(x As A1, y As A1) As A1"), 1929New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <>(x As A1, y As A1) As A1"), 1930New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator \(x As A1, y As A1) As A1"), 1931New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"), 1933New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <(x As A1, y As A1) As A1"), 1934New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <=(x As A1, y As A1) As A1"), 1935New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Like(x As A1, y As A1) As A1"), 1936New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Mod(x As A1, y As A1) As A1"), 1937New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator *(x As A1, y As A1) As A1"), 1938New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"), 1940New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1"), 1942New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1, y As A1) As A1"), 1943New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator IsTrue(x As A1) As Boolean"), 1944New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator -(x As A1) As A1"), 1945New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator +(x As A1) As A1")} 2075New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator And(x As A1, y As A1) As A1"), 2076New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Or(x As A1, y As A1) As A1"), 2077New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator <<(x As A1, y As Integer) As A1"), 2078New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator Not(x As A1) As A1"), 2079New BaseLine(MethodKind.UserDefinedOperator, "Public Shared Overloads Operator >>(x As A1, y As Integer) As A1")} 2471Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers("op_OnesComplement").Single(), MethodSymbol).MethodKind) 2549Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers("op_OnesComplement").Single(), MethodSymbol).MethodKind) 2628Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2692Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2782Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(m, MethodSymbol).MethodKind)
SymbolsTests\Source\OperatorsTests.vb (51)
155New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryPlus"), 156New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryNegation"), 157New BaseLine(MethodKind.UserDefinedOperator, "op_OnesComplement"), 158New BaseLine(MethodKind.UserDefinedOperator, "op_True"), 159New BaseLine(MethodKind.UserDefinedOperator, "op_False"), 160New BaseLine(MethodKind.UserDefinedOperator, "op_Addition"), 161New BaseLine(MethodKind.UserDefinedOperator, "op_Subtraction"), 162New BaseLine(MethodKind.UserDefinedOperator, "op_Multiply"), 163New BaseLine(MethodKind.UserDefinedOperator, "op_Division"), 164New BaseLine(MethodKind.UserDefinedOperator, "op_IntegerDivision"), 165New BaseLine(MethodKind.UserDefinedOperator, "op_Modulus"), 166New BaseLine(MethodKind.UserDefinedOperator, "op_Exponent"), 167New BaseLine(MethodKind.UserDefinedOperator, "op_Equality"), 168New BaseLine(MethodKind.UserDefinedOperator, "op_Inequality"), 169New BaseLine(MethodKind.UserDefinedOperator, "op_LessThan"), 170New BaseLine(MethodKind.UserDefinedOperator, "op_GreaterThan"), 171New BaseLine(MethodKind.UserDefinedOperator, "op_LessThanOrEqual"), 172New BaseLine(MethodKind.UserDefinedOperator, "op_GreaterThanOrEqual"), 173New BaseLine(MethodKind.UserDefinedOperator, "op_Like"), 174New BaseLine(MethodKind.UserDefinedOperator, "op_Concatenate"), 175New BaseLine(MethodKind.UserDefinedOperator, "op_BitwiseAnd"), 176New BaseLine(MethodKind.UserDefinedOperator, "op_BitwiseOr"), 177New BaseLine(MethodKind.UserDefinedOperator, "op_ExclusiveOr"), 178New BaseLine(MethodKind.UserDefinedOperator, "op_LeftShift"), 179New BaseLine(MethodKind.UserDefinedOperator, "op_RightShift"), 360New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryPlus"), 361New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryNegation"), 362New BaseLine(MethodKind.UserDefinedOperator, "op_OnesComplement"), 363New BaseLine(MethodKind.UserDefinedOperator, "op_True"), 364New BaseLine(MethodKind.UserDefinedOperator, "op_False"), 365New BaseLine(MethodKind.UserDefinedOperator, "op_Addition"), 366New BaseLine(MethodKind.UserDefinedOperator, "op_Subtraction"), 367New BaseLine(MethodKind.UserDefinedOperator, "op_Multiply"), 368New BaseLine(MethodKind.UserDefinedOperator, "op_Division"), 369New BaseLine(MethodKind.UserDefinedOperator, "op_IntegerDivision"), 370New BaseLine(MethodKind.UserDefinedOperator, "op_Modulus"), 371New BaseLine(MethodKind.UserDefinedOperator, "op_Exponent"), 372New BaseLine(MethodKind.UserDefinedOperator, "op_Equality"), 373New BaseLine(MethodKind.UserDefinedOperator, "op_Inequality"), 377New BaseLine(MethodKind.UserDefinedOperator, "op_LeftShift"), 378New BaseLine(MethodKind.UserDefinedOperator, "op_RightShift"), 379New BaseLine(MethodKind.UserDefinedOperator, "op_ExclusiveOr") 528New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryPlus"), 529New BaseLine(MethodKind.UserDefinedOperator, "op_UnaryNegation"), 530New BaseLine(MethodKind.UserDefinedOperator, "op_OnesComplement"), 531New BaseLine(MethodKind.UserDefinedOperator, "op_True"), 532New BaseLine(MethodKind.UserDefinedOperator, "op_False"), 533New BaseLine(MethodKind.UserDefinedOperator, "op_Addition"), 534New BaseLine(MethodKind.UserDefinedOperator, "op_Subtraction"), 535New BaseLine(MethodKind.UserDefinedOperator, "op_Multiply"), 536New BaseLine(MethodKind.UserDefinedOperator, "op_Division"),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
225MethodKind.UserDefinedOperator
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.vb (1)
42DirectCast(symbolInfo.Symbol, IMethodSymbol).MethodKind = MethodKind.UserDefinedOperator Then
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
343symbols = symbols.WhereAsArray(Function(s) s.Kind <> SymbolKind.Method OrElse DirectCast(s, IMethodSymbol).MethodKind <> MethodKind.UserDefinedOperator)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
153If method.MethodKind = MethodKind.UserDefinedOperator Then
Microsoft.CodeAnalysis.Workspaces (11)
Editing\SyntaxGenerator.cs (2)
280if (method.MethodKind is not (MethodKind.UserDefinedOperator or MethodKind.Conversion)) 747case MethodKind.UserDefinedOperator or MethodKind.Conversion:
FindSymbols\FindReferences\Finders\OperatorSymbolReferenceFinder.cs (1)
18=> symbol.MethodKind is MethodKind.UserDefinedOperator or MethodKind.BuiltinOperator;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
226if (member is IMethodSymbol { IsStatic: true, IsAbstract: true, MethodKind: MethodKind.UserDefinedOperator } method) 426if (method is { MethodKind: MethodKind.UserDefinedOperator or MethodKind.Conversion } ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
141MethodKind.UserDefinedOperator or 232=> symbol is IMethodSymbol { MethodKind: MethodKind.UserDefinedOperator };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (1)
113methodSymbol.MethodKind == MethodKind.UserDefinedOperator;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
262if ((kind1 == MethodKind.BuiltinOperator && kind2 == MethodKind.UserDefinedOperator) || 263(kind1 == MethodKind.UserDefinedOperator && kind2 == MethodKind.BuiltinOperator))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
40public override MethodKind MethodKind => MethodKind.UserDefinedOperator;
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\DocumentationCommentIdTests.cs (2)
281CheckDeclarationId<IMethodSymbol>("M:Acme.Widget.op_UnaryPlus(Acme.Widget)", compilation, m => m.MethodKind == MethodKind.UserDefinedOperator && m.Parameters.Length == 1); 297CheckDeclarationId<IMethodSymbol>("M:Acme.Widget.op_Addition(Acme.Widget,Acme.Widget)", compilation, m => m.MethodKind == MethodKind.UserDefinedOperator && m.Parameters.Length == 2);
Microsoft.VisualStudio.LanguageServices (3)
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
43MethodKind.UserDefinedOperator
Progression\GraphBuilder.cs (2)
527case MethodKind.UserDefinedOperator: 624var isOperator = method.MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
2201case MethodKind.UserDefinedOperator:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
154methodKind: MethodKind.UserDefinedOperator);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (1)
2552Case MethodKind.UserDefinedOperator
ObjectBrowser\DescriptionBuilder.vb (1)
116Case MethodKind.Conversion, MethodKind.UserDefinedOperator