1 implementation of OperatorMethod
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7272public IMethodSymbol? OperatorMethod { get; }
19 references to OperatorMethod
Microsoft.CodeAnalysis (3)
Generated\Operations.Generated.cs (2)
2200/// Type parameter which runtime type will be used to resolve virtual invocation of the <see cref="OperatorMethod" />, if any. 2201/// Null if <see cref="OperatorMethod" /> is resolved statically, or is null.
Operations\ControlFlowGraphBuilder.cs (1)
7369operation.OperatorMethod, operation.ConstrainedToType,
Microsoft.CodeAnalysis.Analyzers (3)
src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (3)
127if (incrementOrDecrement.OperatorMethod != null) 129VerifySymbol(context.ReportDiagnostic, incrementOrDecrement.OperatorMethod, context.Operation.Syntax); 130VerifyType(context.ReportDiagnostic, incrementOrDecrement.OperatorMethod.ContainingType, context.Operation.Syntax);
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
RestrictedInternalsVisibleToAnalyzer.cs (1)
96IIncrementOrDecrementOperation incrementOrDecrement => incrementOrDecrement.OperatorMethod,
SymbolIsBannedAnalyzerBase.cs (3)
127if (incrementOrDecrement.OperatorMethod != null) 129VerifySymbol(context.ReportDiagnostic, incrementOrDecrement.OperatorMethod, context.Operation.Syntax); 130VerifyType(context.ReportDiagnostic, incrementOrDecrement.OperatorMethod.ContainingType, context.Operation.Syntax);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\DynamicTests.cs (6)
7715Assert.Null(operation.OperatorMethod); 7821Assert.Null(operation.OperatorMethod); 7926Assert.Null(operation.OperatorMethod); 7996Assert.Null(operation.OperatorMethod); 8102Assert.Null(operation.OperatorMethod); 8207Assert.Null(operation.OperatorMethod);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
1734LogHasOperatorMethodExpressionCommon(operation.OperatorMethod, operation.ConstrainedToType);
Compilation\TestOperationVisitor.cs (1)
1200var operatorMethod = operation.OperatorMethod;
Roslyn.Diagnostics.Analyzers (1)
AbstractDoNotCopyValue.cs (1)
822CheckMethodSymbolInUnsupportedContext(operation, operation.OperatorMethod);