22 references to InstanceReference
ILLink.RoslynAnalyzer (1)
DataFlow\CapturedReferenceValue.cs (1)
27 case OperationKind.InstanceReference:
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
205if (modelStatePropertyReference.Instance?.Kind != OperationKind.InstanceReference)
Microsoft.CodeAnalysis (4)
Generated\Operations.Generated.cs (2)
1362/// <item><description><see cref="OperationKind.InstanceReference"/></description></item> 6119public override OperationKind Kind => OperationKind.InstanceReference;
Operations\ControlFlowGraphBuilder.cs (2)
6395Debug.Assert(propertyReference.Instance.Kind == OperationKind.InstanceReference); 7999Debug.Assert(propertyReference.Instance.Kind == OperationKind.InstanceReference);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
285if (fieldReference.Instance?.Kind != OperationKind.InstanceReference ||
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
84if (instanceOperation.Kind != OperationKind.InstanceReference)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
676return fieldReference.Instance == null || fieldReference.Instance.Kind == OperationKind.InstanceReference;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
127=> operation is IMemberReferenceOperation { Instance.Kind: OperationKind.InstanceReference };
Microsoft.CodeAnalysis.Features (5)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
228containsClassSpecificStatement = operation.Descendants().Any(op => op.Kind == OperationKind.InstanceReference);
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
370=> operation is IMemberReferenceOperation { Instance.Kind: OperationKind.InstanceReference };
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
285if (fieldReference.Instance?.Kind != OperationKind.InstanceReference ||
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
84if (instanceOperation.Kind != OperationKind.InstanceReference)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
676return fieldReference.Instance == null || fieldReference.Instance.Kind == OperationKind.InstanceReference;
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\ControlFlowGraphVerifier.cs (1)
1883case OperationKind.InstanceReference:
Compilation\OperationTreeVerifier.cs (1)
1461Assert.Equal(OperationKind.InstanceReference, propertyReference.Instance.Kind);
Compilation\TestOperationVisitor.cs (2)
642Assert.Equal(OperationKind.InstanceReference, operation.Kind); 1054Assert.Equal(OperationKind.InstanceReference, propertyReference.Instance.Kind);
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
120case OperationKind.InstanceReference:
Diagnostics\OperationTestAnalyzer.cs (1)
957OperationKind.InstanceReference);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
127=> operation is IMemberReferenceOperation { Instance.Kind: OperationKind.InstanceReference };