1 implementation of OperatorMethod
Microsoft.CodeAnalysis (1)
Operations\OperationNodes.cs (1)
81public IMethodSymbol? OperatorMethod => Conversion.MethodSymbol;
22 references to OperatorMethod
ILLink.RoslynAnalyzer (3)
DataFlow\LocalDataFlowVisitor.cs (2)
1037while (source is IConversionOperation { OperatorMethod: null } conversion) 1360return operation.OperatorMethod == null ? operandValue : TopValue;
TrimAnalysis\TrimAnalysisVisitor.cs (1)
131if (operation.OperatorMethod is IMethodSymbol method)
Microsoft.CodeAnalysis (2)
Generated\Operations.Generated.cs (2)
715/// Type parameter which runtime type will be used to resolve virtual invocation of the <see cref="OperatorMethod" />, if any. 716/// Null if <see cref="OperatorMethod" /> is resolved statically, or is null.
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (3)
115if (conversion.OperatorMethod != null) 117VerifySymbol(context.ReportDiagnostic, conversion.OperatorMethod, context.Operation.Syntax); 118VerifyType(context.ReportDiagnostic, conversion.OperatorMethod.ContainingType, context.Operation.Syntax);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\66dd3055a1c91c38\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
1145if (operation.OperatorMethod != null)
Microsoft.CodeAnalysis.CodeStyle (1)
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
707return conversion.OperatorMethod == null &&
Microsoft.CodeAnalysis.Features (1)
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
707return conversion.OperatorMethod == null &&
Microsoft.CodeAnalysis.NetAnalyzers (7)
Microsoft.NetCore.Analyzers\Runtime\DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzer.cs (1)
154&& conversionOperation.OperatorMethod is null) // implicit meaning 'not user defined'
Microsoft.NetCore.Analyzers\Runtime\PreventNumericIntPtrUIntPtrBehavioralChanges.cs (1)
95explicitConversion.OperatorMethod == null) // Built in conversion
Microsoft.NetCore.Analyzers\Security\SourceTriggeredTaintedDataAnalyzerBase.cs (2)
381case IConversionOperation { OperatorMethod: not null }: 565case IConversionOperation { OperatorMethod: not null }:
Microsoft.NetCore.Analyzers\Security\UseSharedAccessProtocolHttpsOnly.cs (1)
135conversion => conversion.OperatorMethod is null);
src\ffd9070534249528\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
1144if (operation.OperatorMethod != null)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (1)
273case IConversionOperation { OperatorMethod: not null }:
Roslyn.Diagnostics.Analyzers (2)
AbstractDoNotCopyValue.cs (2)
550CheckMethodSymbolInUnsupportedContext(operation, operation.OperatorMethod); 1386return conversion.OperatorMethod switch
System.Windows.Forms.Analyzers (2)
System\Windows\Forms\Analyzers\Designer\DesignerTypeFacts.cs (1)
107while (value is IConversionOperation { OperatorMethod: null } or IParenthesizedOperation)
System\Windows\Forms\Analyzers\PropertyAllocatesNewInstanceAnalyzer.cs (1)
54while (value.Parent is IConversionOperation { OperatorMethod: null } or IParenthesizedOperation)