17 references to FieldInitializer
Microsoft.CodeAnalysis (3)
Generated\Operations.Generated.cs (2)
2342/// <item><description><see cref="OperationKind.FieldInitializer"/></description></item> 7555public override OperationKind Kind => OperationKind.FieldInitializer;
Operations\ControlFlowGraphBuilder.cs (1)
99body.Kind == OperationKind.FieldInitializer ||
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
213symbolStartContext.RegisterOperationAction(AnalyzeFieldInitializer, OperationKind.FieldInitializer);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
165}, OperationKind.FieldInitializer);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PrimaryConstructorTests.cs (3)
4319context.RegisterOperationAction(Handle5, OperationKind.FieldInitializer); 4712context.RegisterOperationAction(Handle5, OperationKind.FieldInitializer); 5687context.RegisterOperationAction(Fail, OperationKind.FieldInitializer);
Semantics\RecordTests.cs (2)
26827context.RegisterOperationAction(Handle5, OperationKind.FieldInitializer); 27220context.RegisterOperationAction(Handle5, OperationKind.FieldInitializer);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
165}, OperationKind.FieldInitializer);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RecordStructTests.cs (1)
6413context.RegisterOperationAction(Fail, OperationKind.FieldInitializer);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
213symbolStartContext.RegisterOperationAction(AnalyzeFieldInitializer, OperationKind.FieldInitializer);
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\ControlFlowGraphVerifier.cs (1)
1849case OperationKind.FieldInitializer:
Compilation\TestOperationVisitor.cs (1)
1104Assert.Equal(OperationKind.FieldInitializer, operation.Kind);
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
145OperationKind.FieldInitializer);
Diagnostics\OperationTestAnalyzer.cs (1)
1187OperationKind.FieldInitializer);