1 write to Value
Microsoft.CodeAnalysis (1)
Operations\CaptureId.cs (1)
18Value = value;
18 references to Value
Microsoft.CodeAnalysis (7)
Operations\CaptureId.cs (3)
26public bool Equals(CaptureId other) => Value == other.Value; 32public override int GetHashCode() => Value.GetHashCode();
Operations\ControlFlowGraphBuilder.cs (2)
1688captureId != ((IFlowCaptureReferenceOperation)result).Id.Value) 7150GetCaptureReference(reference.Id.Value, operation) :
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (2)
335CaptureIds?.Sort((x, y) => x.Value.CompareTo(y.Value));
Microsoft.CodeAnalysis.Test.Utilities (11)
Compilation\ControlFlowGraphVerifier.cs (9)
403AssertTrueWithGraph(currentState.Contains(id), $"Backward branch from [{getBlockId(predecessor.Source)}] to [{getBlockId(block)}] before capture [{id.Value}] is initialized.", finalGraph); 416AssertTrueWithGraph(currentState.Add(capture.Id), $"Operation [{j}] in [{getBlockId(block)}] re-initialized capture [{capture.Id.Value}]", finalGraph); 526$"Capture [{id.Value}] is not used in region [{getRegionId(region)}] before leaving it after block [{getBlockId(block)}]", finalGraph); 792$"Operation [{operationIndex}] in [{getBlockId(block)}] uses not initialized capture [{id.Value}].", finalGraph); 811$"Operation [{operationIndex}] in [{getBlockId(block)}] uses capture [{id.Value}] from another region. Should the regions be merged?", finalGraph); 818$"Operation [{operationIndex}] in [{getBlockId(block)}] uses capture [{id.Value}] from another region. Should the regions be merged?", finalGraph); 822AssertTrueWithGraph(false, $"Operation [{operationIndex}] in [{getBlockId(block)}] uses capture [{id.Value}] from another region. Should the regions be merged?", finalGraph); 1407stringBuilder.Append($" [{id.Value}]"); 1691Assert.True(false, $"Capture [{referencedCaptureIds.First().Value}] without owning region in [{getBlockId(block)}]\n{finalGraph()}");
Compilation\OperationTreeVerifier.cs (2)
974LogString($": {operation.Id.Value}"); 985LogString($": {operation.Id.Value}");