39 references to FieldReference
ILLink.RoslynAnalyzer (1)
DataFlow\CapturedReferenceValue.cs (1)
21 case OperationKind.FieldReference:
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (1)
106var op = invocationOp.Arguments[LogLevelParamIndex].Descendants().SingleOrDefault(x => x.Kind == OperationKind.Literal || x.Kind == OperationKind.FieldReference);
ConditionalAccessAnalyzer.cs (1)
52case OperationKind.FieldReference:
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
44OperationKind.FieldReference,
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
44OperationKind.FieldReference,
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (2)
926/// <item><description><see cref="OperationKind.FieldReference"/></description></item> 5394public override OperationKind Kind => OperationKind.FieldReference;
Operations\ControlFlowGraphBuilder.cs (3)
6064OperationKind.LocalReference, OperationKind.Binary, OperationKind.FieldReference, OperationKind.Invalid, 6162case OperationKind.FieldReference: 6230case OperationKind.FieldReference:
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
65context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
50=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference, OperationKind.PropertyReference, OperationKind.MethodReference, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
216symbolStartContext.RegisterOperationAction(AnalyzeMemberReferenceOperation, OperationKind.FieldReference, OperationKind.MethodReference, OperationKind.PropertyReference, OperationKind.EventReference);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
672case OperationKind.FieldReference:
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
31=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
240OperationKind.FieldReference, OperationKind.PropertyReference);
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
217}, OperationKind.FieldReference);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
3223var analyzers = new DiagnosticAnalyzer[] { new SymbolStartAnalyzer(topLevelAction: true, SymbolKind.NamedType, OperationKind.FieldReference) };
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
240OperationKind.FieldReference, OperationKind.PropertyReference);
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
217}, OperationKind.FieldReference);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests.cs (1)
562Assert.Equal(OperationKind.FieldReference, operation.Kind);
Microsoft.CodeAnalysis.Features (6)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
377case OperationKind.FieldReference:
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
65context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
50=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference, OperationKind.PropertyReference, OperationKind.MethodReference, OperationKind.Invocation);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
216symbolStartContext.RegisterOperationAction(AnalyzeMemberReferenceOperation, OperationKind.FieldReference, OperationKind.MethodReference, OperationKind.PropertyReference, OperationKind.EventReference);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
672case OperationKind.FieldReference:
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
31=> context.RegisterOperationAction(AnalyzeOperation, OperationKind.FieldReference);
Microsoft.CodeAnalysis.Test.Utilities (12)
Compilation\ControlFlowGraphVerifier.cs (1)
1915case OperationKind.FieldReference:
Compilation\TestOperationVisitor.cs (1)
681Assert.Equal(OperationKind.FieldReference, operation.Kind);
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1434context.RegisterOperationAction(AnalyzerOperation, OperationKind.FieldReference);
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
245else if (targetKind == OperationKind.FieldReference)
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
113if (target.Kind == OperationKind.FieldReference)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
123else if (target.Kind == OperationKind.FieldReference)
Diagnostics\OperationTestAnalyzer.cs (6)
716Report(operationContext, initializer.Syntax, initializer.Kind == OperationKind.FieldReference ? DoNotUseFieldInitializerDescriptor : DoNotUsePropertyInitializerDescriptor); 718OperationKind.FieldReference, 754if (kind == OperationKind.FieldReference || 1063OperationKind.FieldReference); 1383case OperationKind.FieldReference: 1416OperationKind.FieldReference,