1 implementation of ReferenceKind
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6112public InstanceReferenceKind ReferenceKind { get; }
26 references to ReferenceKind
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
141 if (instanceRef.ReferenceKind != InstanceReferenceKind.ContainingTypeInstance)
Microsoft.CodeAnalysis (6)
Operations\ControlFlowGraphBuilder.cs (5)
6396Debug.Assert(((IInstanceReferenceOperation)propertyReference.Instance).ReferenceKind == InstanceReferenceKind.ImplicitReceiver); 6582switch (operation.ReferenceKind) 6604return new InstanceReferenceOperation(operation.ReferenceKind, semanticModel: null, operation.Syntax, operation.Type, IsImplicit(operation)); 7142instanceReference.ReferenceKind == InstanceReferenceKind.ImplicitReceiver && 8000Debug.Assert(((IInstanceReferenceOperation)propertyReference.Instance).ReferenceKind == InstanceReferenceKind.ImplicitReceiver);
Operations\ControlFlowGraphBuilder.InterpolatedStringContext.cs (1)
50Debug.Assert(placeholderOperation is IInstanceReferenceOperation { ReferenceKind: InstanceReferenceKind.InterpolatedStringHandler } or IInterpolatedStringHandlerArgumentPlaceholderOperation);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
122instanceReference.ReferenceKind == InstanceReferenceKind.ContainingTypeInstance &&
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
94if ((instanceOperation as IInstanceReferenceOperation)?.ReferenceKind == InstanceReferenceKind.ImplicitReceiver)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
526ReferenceKind: InstanceReferenceKind.ContainingTypeInstance,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
103if (operationAssigmnent.Target is IInstanceReferenceOperation { ReferenceKind: InstanceReferenceKind.ContainingTypeInstance })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
154if (descendent is IInstanceReferenceOperation { ReferenceKind: InstanceReferenceKind.ContainingTypeInstance } instanceReference)
Microsoft.CodeAnalysis.CSharp.Features (3)
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
119instanceReference.ReferenceKind != InstanceReferenceKind.ContainingTypeInstance)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
103if (operationAssigmnent.Target is IInstanceReferenceOperation { ReferenceKind: InstanceReferenceKind.ContainingTypeInstance })
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
154if (descendent is IInstanceReferenceOperation { ReferenceKind: InstanceReferenceKind.ContainingTypeInstance } instanceReference)
Microsoft.CodeAnalysis.Features (3)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
122instanceReference.ReferenceKind == InstanceReferenceKind.ContainingTypeInstance &&
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
94if ((instanceOperation as IInstanceReferenceOperation)?.ReferenceKind == InstanceReferenceKind.ImplicitReceiver)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
526ReferenceKind: InstanceReferenceKind.ContainingTypeInstance,
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\ControlFlowGraphVerifier.cs (4)
1886return instanceReference.ReferenceKind == InstanceReferenceKind.ContainingTypeInstance || 1887instanceReference.ReferenceKind == InstanceReferenceKind.PatternInput || 1890instanceReference.ReferenceKind == InstanceReferenceKind.InterpolatedStringHandler || 1891(instanceReference.ReferenceKind == InstanceReferenceKind.ImplicitReceiver &&
Compilation\OperationTreeVerifier.cs (2)
1035LogString($" (ReferenceKind: {operation.ReferenceKind})"); 1462Assert.Equal(InstanceReferenceKind.ImplicitReceiver, ((IInstanceReferenceOperation)propertyReference.Instance).ReferenceKind);
Compilation\TestOperationVisitor.cs (2)
644var referenceKind = operation.ReferenceKind; 1055Assert.Equal(InstanceReferenceKind.ImplicitReceiver, ((IInstanceReferenceOperation)propertyReference.Instance).ReferenceKind);