1 implementation of OperatorMethod
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5595public IMethodSymbol? OperatorMethod { get; }
16 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)
2257operation.OperatorMethod, operation.ConstrainedToType, 2264operation.OperatorMethod == null && 2739lastUnary.OperatorMethod, lastUnary.ConstrainedToType, semanticModel: null, lastUnary.Syntax,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1414if (operation is IUnaryOperation { OperatorMethod: not null })
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
IOperation\IOperationTests_IUnaryOperatorExpression.cs (3)
3639Assert.Null(operation.OperatorMethod); 3662Assert.Null(operation.OperatorMethod); 3688Assert.Null(operation.OperatorMethod);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1414if (operation is IUnaryOperation { OperatorMethod: not null })
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (1)
1180LogHasOperatorMethodExpressionCommon(operation.OperatorMethod, operation.ConstrainedToType);
Compilation\TestOperationVisitor.cs (1)
749var operatorMethod = operation.OperatorMethod;
Diagnostics\OperationTestAnalyzer.cs (3)
1532if (unary.OperatorKind == UnaryOperatorKind.Minus && unary.OperatorMethod != null && unary.OperatorMethod.Name.Contains("UnaryNegation")) 1647if (!operand.HasErrors(operationContext.Compilation, operationContext.CancellationToken) && unary.OperatorMethod == null)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests.vb (1)
134Assert.Null(negate3.OperatorMethod)