1 implementation of OperatorMethod
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5635public IMethodSymbol? OperatorMethod { get; }
12 references to OperatorMethod
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (2)
1078/// Type parameter which runtime type will be used to resolve virtual invocation of the <see cref="OperatorMethod" />, if any. 1079/// Null if <see cref="OperatorMethod" /> is resolved statically, or is null.
Operations\ControlFlowGraphBuilder.cs (3)
2267operation.OperatorMethod, operation.ConstrainedToType, 2274operation.OperatorMethod == null && 2749lastUnary.OperatorMethod, lastUnary.ConstrainedToType, semanticModel: null, lastUnary.Syntax,
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (3)
124if (unary.OperatorMethod != null) 126VerifySymbol(context.ReportDiagnostic, unary.OperatorMethod, context.Operation.Syntax); 127VerifyType(context.ReportDiagnostic, unary.OperatorMethod.ContainingType, context.Operation.Syntax);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1585if (operation is IUnaryOperation { OperatorMethod: not null })
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1585if (operation is IUnaryOperation { OperatorMethod: not null })
Roslyn.Diagnostics.Analyzers (1)
AbstractDoNotCopyValue.cs (1)
1250CheckMethodSymbolInUnsupportedContext(operation, operation.OperatorMethod);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1585if (operation is IUnaryOperation { OperatorMethod: not null })