File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed
cpp/ql/src/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Provides classes that specify the conditions under which control flows along a given edge.
3+ */
4+
15private import internal.EdgeKindInternal
26
37private newtype TEdgeKind =
@@ -77,9 +81,15 @@ class CaseEdge extends EdgeKind, TCaseEdge {
7781 else result = "Case[" + minValue + ".." + maxValue + "]"
7882 }
7983
80- string getMinValue ( ) { result = minValue }
84+ /**
85+ * Gets the smallest value of the switch expression for which control will flow along this edge.
86+ */
87+ final string getMinValue ( ) { result = minValue }
8188
82- string getMaxValue ( ) { result = maxValue }
89+ /**
90+ * Gets the largest value of the switch expression for which control will flow along this edge.
91+ */
92+ final string getMaxValue ( ) { result = maxValue }
8393}
8494
8595/**
Original file line number Diff line number Diff line change 1+ /**
2+ * Provides classes that specify the conditions under which control flows along a given edge.
3+ */
4+
15private import internal.EdgeKindInternal
26
37private newtype TEdgeKind =
@@ -77,9 +81,15 @@ class CaseEdge extends EdgeKind, TCaseEdge {
7781 else result = "Case[" + minValue + ".." + maxValue + "]"
7882 }
7983
80- string getMinValue ( ) { result = minValue }
84+ /**
85+ * Gets the smallest value of the switch expression for which control will flow along this edge.
86+ */
87+ final string getMinValue ( ) { result = minValue }
8188
82- string getMaxValue ( ) { result = maxValue }
89+ /**
90+ * Gets the largest value of the switch expression for which control will flow along this edge.
91+ */
92+ final string getMaxValue ( ) { result = maxValue }
8393}
8494
8595/**
You can’t perform that action at this time.
0 commit comments