1 implementation of IFlowCaptureReferenceOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
8865
internal sealed partial class FlowCaptureReferenceOperation : Operation,
IFlowCaptureReferenceOperation
59 references to IFlowCaptureReferenceOperation
ILLink.RoslynAnalyzer (11)
DataFlow\LocalDataFlowVisitor.cs (7)
343
Debug.Assert (operation.Target is not
IFlowCaptureReferenceOperation
);
388
if (targetOperation is not
IFlowCaptureReferenceOperation
flowCaptureReference)
449
TValue GetFlowCaptureValue (
IFlowCaptureReferenceOperation
operation, LocalDataFlowState<TValue, TContext, TValueLattice, TContextLattice> state)
460
public override TValue VisitFlowCaptureReference (
IFlowCaptureReferenceOperation
operation, LocalDataFlowState<TValue, TContext, TValueLattice, TContextLattice> state)
509
Debug.Assert (operation.Value is not
IFlowCaptureReferenceOperation
);
510
if (operation.Value is
IFlowCaptureReferenceOperation
)
523
if (operation.Value is
IFlowCaptureReferenceOperation
captureRef) {
DataFlow\LValueFlowCaptureProvider.cs (4)
22
/// Corresponding <see cref="
IFlowCaptureReferenceOperation
"/>s which share the same
41
static bool IsLValueFlowCapture (
IFlowCaptureReferenceOperation
flowCaptureReference, out IAssignmentOperation? assignment)
63
foreach (
var
flowCaptureReference in cfg.DescendantOperations<
IFlowCaptureReferenceOperation
> (OperationKind.FlowCaptureReference)) {
Microsoft.CodeAnalysis (13)
Generated\OperationKind.Generated.cs (1)
216
/// <summary>Indicates an <see cref="
IFlowCaptureReferenceOperation
"/>.</summary>
Generated\Operations.Generated.cs (3)
11236
public override IOperation VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation, object? argument)
11510
public virtual void VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation) => DefaultVisit(operation);
11649
public virtual TResult? VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (9)
1688
captureId != ((
IFlowCaptureReferenceOperation
)result).Id.Value)
1877
if (operation is
IFlowCaptureReferenceOperation
reference)
1884
foreach (
IFlowCaptureReferenceOperation
reference in operation.DescendantsAndSelf().OfType<
IFlowCaptureReferenceOperation
>())
4754
IFlowCaptureReferenceOperation
? positiveFlag = null;
5912
public override IOperation VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation, int? captureIdForResult)
6978
Debug.Assert(receiverCapture is
IFlowCaptureReferenceOperation
);
6991
Debug.Assert(argumentCapture is
IFlowCaptureReferenceOperation
or IDiscardOperation);
7149
return captured is
IFlowCaptureReferenceOperation
reference ?
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (3)
21
/// Corresponding <see cref="
IFlowCaptureReferenceOperation
"/>s which share the same
54
foreach (
var
flowCaptureReference in cfg.DescendantOperations<
IFlowCaptureReferenceOperation
>(OperationKind.FlowCaptureReference))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
210
var
captureReference = (
IFlowCaptureReferenceOperation
)write;
281
public override void VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation)
Microsoft.CodeAnalysis.Test.Utilities (23)
Compilation\ControlFlowGraphVerifier.cs (20)
495
foreach (
IFlowCaptureReferenceOperation
reference in lastOperation.DescendantsAndSelf().OfType<
IFlowCaptureReferenceOperation
>())
522
IFlowCaptureReferenceOperation
[] referencesAfter = getFlowCaptureReferenceOperationsInRegion(region, block.Ordinal + 1).Where(r => r.Id.Equals(id)).ToArray();
595
bool isEmptySwitchExpressionResult(
IFlowCaptureReferenceOperation
reference)
773
foreach (
IFlowCaptureReferenceOperation
reference in operation.DescendantsAndSelf().OfType<
IFlowCaptureReferenceOperation
>())
827
bool isConditionalAccessReceiver(
IFlowCaptureReferenceOperation
reference)
860
bool isCoalesceAssignmentTarget(
IFlowCaptureReferenceOperation
reference)
873
bool isObjectInitializerInitializedObjectTarget(
IFlowCaptureReferenceOperation
reference)
889
bool isInterpolatedStringArgumentCapture(
IFlowCaptureReferenceOperation
reference)
921
bool isInterpolatedStringHandlerCapture(
IFlowCaptureReferenceOperation
reference)
942
bool isFirstOperandOfDynamicOrUserDefinedLogicalOperator(
IFlowCaptureReferenceOperation
reference)
994
bool isIncrementedNullableForToLoopControlVariable(
IFlowCaptureReferenceOperation
reference)
1011
bool isLongLivedCaptureReference(
IFlowCaptureReferenceOperation
reference, ControlFlowRegion region)
1318
IEnumerable<
IFlowCaptureReferenceOperation
> getFlowCaptureReferenceOperationsInRegion(ControlFlowRegion region, int firstBlockOrdinal)
1326
foreach (
IFlowCaptureReferenceOperation
reference in operation.DescendantsAndSelf().OfType<
IFlowCaptureReferenceOperation
>())
1334
foreach (
IFlowCaptureReferenceOperation
reference in block.BranchValue.DescendantsAndSelf().OfType<
IFlowCaptureReferenceOperation
>())
1747
case
IFlowCaptureReferenceOperation
flowCaptureReference:
Compilation\OperationTreeVerifier.cs (2)
1000
public override void VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation)
1002
LogString(nameof(
IFlowCaptureReferenceOperation
));
Compilation\TestOperationVisitor.cs (1)
1731
public override void VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation)
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (3)
21
/// Corresponding <see cref="
IFlowCaptureReferenceOperation
"/>s which share the same
54
foreach (
var
flowCaptureReference in cfg.DescendantOperations<
IFlowCaptureReferenceOperation
>(OperationKind.FlowCaptureReference))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
210
var
captureReference = (
IFlowCaptureReferenceOperation
)write;
281
public override void VisitFlowCaptureReference(
IFlowCaptureReferenceOperation
operation)