1 write to Semantics
Microsoft.CodeAnalysis (1)
Operations\ControlFlowBranch.cs (1)
30
Semantics
= semantics;
38 references to Semantics
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
107
if (block.Block.FallThroughSuccessor?.
Semantics
== ControlFlowBranchSemantics.Throw)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (5)
179
continueDispatchAfterFinally[current.EnclosingRegion] = branch.
Semantics
!= ControlFlowBranchSemantics.Throw &&
180
branch.
Semantics
!= ControlFlowBranchSemantics.Rethrow &&
181
current.FallThroughSuccessor.
Semantics
== ControlFlowBranchSemantics.StructuredExceptionHandling;
210
switch (branch.
Semantics
)
249
throw ExceptionUtilities.UnexpectedValue(branch.
Semantics
);
Microsoft.CodeAnalysis.Test.Utilities (27)
Compilation\ControlFlowGraphVerifier.cs (22)
254
Assert.NotEqual(ControlFlowBranchSemantics.Return, conditionalBranch.
Semantics
);
255
Assert.NotEqual(ControlFlowBranchSemantics.Throw, conditionalBranch.
Semantics
);
256
Assert.NotEqual(ControlFlowBranchSemantics.StructuredExceptionHandling, conditionalBranch.
Semantics
);
260
appendLine($" Jump if {jumpIfTrue} ({conditionalBranch.
Semantics
}) to Block[{getDestinationString(ref conditionalBranch)}]");
293
if (nextBranch.
Semantics
== ControlFlowBranchSemantics.StructuredExceptionHandling)
300
appendLine($" Next ({nextBranch.
Semantics
}) Block[{getDestinationString(ref nextBranch)}]");
305
Assert.True(ControlFlowBranchSemantics.Return == nextBranch.
Semantics
|| ControlFlowBranchSemantics.Throw == nextBranch.
Semantics
);
311
Assert.NotEqual(ControlFlowBranchSemantics.Return, nextBranch.
Semantics
);
312
Assert.NotEqual(ControlFlowBranchSemantics.Throw, nextBranch.
Semantics
);
727
else if (branch.
Semantics
== ControlFlowBranchSemantics.Throw ||
728
branch.
Semantics
== ControlFlowBranchSemantics.Rethrow ||
729
branch.
Semantics
== ControlFlowBranchSemantics.Error ||
730
branch.
Semantics
== ControlFlowBranchSemantics.StructuredExceptionHandling)
1576
Assert.True(ControlFlowBranchSemantics.None == branch.
Semantics
|| ControlFlowBranchSemantics.Throw == branch.
Semantics
||
1577
ControlFlowBranchSemantics.Rethrow == branch.
Semantics
|| ControlFlowBranchSemantics.StructuredExceptionHandling == branch.
Semantics
||
1578
ControlFlowBranchSemantics.ProgramTermination == branch.
Semantics
|| ControlFlowBranchSemantics.Error == branch.
Semantics
);
1582
Assert.True(ControlFlowBranchSemantics.Regular == branch.
Semantics
|| ControlFlowBranchSemantics.Return == branch.
Semantics
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (5)
179
continueDispatchAfterFinally[current.EnclosingRegion] = branch.
Semantics
!= ControlFlowBranchSemantics.Throw &&
180
branch.
Semantics
!= ControlFlowBranchSemantics.Rethrow &&
181
current.FallThroughSuccessor.
Semantics
== ControlFlowBranchSemantics.StructuredExceptionHandling;
210
switch (branch.
Semantics
)
249
throw ExceptionUtilities.UnexpectedValue(branch.
Semantics
);
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (5)
179
continueDispatchAfterFinally[current.EnclosingRegion] = branch.
Semantics
!= ControlFlowBranchSemantics.Throw &&
180
branch.
Semantics
!= ControlFlowBranchSemantics.Rethrow &&
181
current.FallThroughSuccessor.
Semantics
== ControlFlowBranchSemantics.StructuredExceptionHandling;
210
switch (branch.
Semantics
)
249
throw ExceptionUtilities.UnexpectedValue(branch.
Semantics
);