1 implementation of IConstructorBodyOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8722internal sealed partial class ConstructorBodyOperation : BaseMethodBodyBaseOperation, IConstructorBodyOperation
34 references to IConstructorBodyOperation
Microsoft.CodeAnalysis (8)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2966Debug.Assert(operationBlock.Parent.Parent is IConstructorBodyOperation ctorBody &&
Generated\OperationKind.Generated.cs (2)
207/// <summary>Indicates an <see cref="IConstructorBodyOperation"/>.</summary> 209/// <summary>Indicates an <see cref="IConstructorBodyOperation"/>. Use <see cref="ConstructorBody"/> instead.</summary>
Generated\Operations.Generated.cs (3)
11226public override IOperation VisitConstructorBodyOperation(IConstructorBodyOperation operation, object? argument) 11507public virtual void VisitConstructorBodyOperation(IConstructorBodyOperation operation) => DefaultVisit(operation); 11646public virtual TResult? VisitConstructorBodyOperation(IConstructorBodyOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraph.cs (1)
155public static ControlFlowGraph Create(Operations.IConstructorBodyOperation constructorBody, CancellationToken cancellationToken = default)
Operations\ControlFlowGraphBuilder.cs (1)
1480public override IOperation? VisitConstructorBodyOperation(IConstructorBodyOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
361private IConstructorBodyOperation CreateConstructorBodyOperation(BoundConstructorMethodBody boundNode)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (4)
156var constructorOperation = (IConstructorBodyOperation?)semanticModel.GetOperation(constructor, cancellationToken); 344var constructorOperation = (IConstructorBodyOperation?)semanticModel.GetOperation(constructor, cancellationToken);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (4)
183IConstructorBodyOperation operation, 227IConstructorBodyOperation operation, 289IConstructorBodyOperation operation, 420IConstructorBodyOperation constructorOperation,
Microsoft.CodeAnalysis.CSharp.Features (8)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (4)
156var constructorOperation = (IConstructorBodyOperation?)semanticModel.GetOperation(constructor, cancellationToken); 344var constructorOperation = (IConstructorBodyOperation?)semanticModel.GetOperation(constructor, cancellationToken);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (4)
183IConstructorBodyOperation operation, 227IConstructorBodyOperation operation, 289IConstructorBodyOperation operation, 420IConstructorBodyOperation constructorOperation,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RefFieldTests.cs (2)
29441var constructorOperation = (Microsoft.CodeAnalysis.Operations.IConstructorBodyOperation)model.GetOperation(constructorSyntax);
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\CompilationExtensions.cs (1)
375case IConstructorBodyOperation constructorBody:
Compilation\ControlFlowGraphVerifier.cs (1)
52case IConstructorBodyOperation constructorBodyOperation:
Compilation\OperationTreeVerifier.cs (2)
2090public override void VisitConstructorBodyOperation(IConstructorBodyOperation operation) 2092LogString(nameof(IConstructorBodyOperation));
Compilation\TestOperationVisitor.cs (1)
1630public override void VisitConstructorBodyOperation(IConstructorBodyOperation operation)
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\OperationTests.cs (2)
124Assert.Throws<ArgumentNullException>(() => ControlFlowGraph.Create((IConstructorBodyOperation)null)); 221IConstructorBodyOperation constructorBody = new ConstructorBodyOperation(