1 implementation of IFieldInitializerOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7508internal sealed partial class FieldInitializerOperation : BaseSymbolInitializerOperation, IFieldInitializerOperation
28 references to IFieldInitializerOperation
Microsoft.CodeAnalysis (6)
Generated\OperationKind.Generated.cs (1)
167/// <summary>Indicates an <see cref="IFieldInitializerOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
11121public override IOperation VisitFieldInitializer(IFieldInitializerOperation operation, object? argument) 11486public virtual void VisitFieldInitializer(IFieldInitializerOperation operation) => DefaultVisit(operation); 11625public virtual TResult? VisitFieldInitializer(IFieldInitializerOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraph.cs (1)
115public static ControlFlowGraph Create(Operations.IFieldInitializerOperation initializer, CancellationToken cancellationToken = default)
Operations\ControlFlowGraphBuilder.cs (1)
7214public override IOperation? VisitFieldInitializer(IFieldInitializerOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
310var initializer = (IFieldInitializerOperation)operationContext.Operation;
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
1724private IFieldInitializerOperation CreateBoundFieldEqualsValueOperation(BoundFieldEqualsValue boundFieldEqualsValue)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (2)
158var fieldInitializer = (IFieldInitializerOperation)context.Operation;
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (2)
158var fieldInitializer = (IFieldInitializerOperation)context.Operation;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RefFieldTests.cs (2)
29398var fieldInitializerOperation = (Microsoft.CodeAnalysis.Operations.IFieldInitializerOperation)model.GetOperation(fieldInitializerSyntax);
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
310var initializer = (IFieldInitializerOperation)operationContext.Operation;
Microsoft.CodeAnalysis.Test.Utilities (9)
Compilation\CompilationExtensions.cs (1)
376case IFieldInitializerOperation fieldInitializerOperation:
Compilation\ControlFlowGraphVerifier.cs (1)
56case IFieldInitializerOperation fieldInitializerOperation:
Compilation\OperationTreeVerifier.cs (2)
1520public override void VisitFieldInitializer(IFieldInitializerOperation operation) 1522LogString(nameof(IFieldInitializerOperation));
Compilation\TestOperationVisitor.cs (1)
1102public override void VisitFieldInitializer(IFieldInitializerOperation operation)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
139IFieldInitializerOperation initializer = (IFieldInitializerOperation)operationContext.Operation;
Diagnostics\OperationTestAnalyzer.cs (2)
1181IFieldInitializerOperation equalsValue = (IFieldInitializerOperation)operationContext.Operation;
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\OperationTests.cs (2)
121Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IFieldInitializerOperation)null)); 167IFieldInitializerOperation initializer = new FieldInitializerOperation(