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
+
1
5
private import internal.EdgeKindInternal
2
6
3
7
private newtype TEdgeKind =
@@ -77,9 +81,15 @@ class CaseEdge extends EdgeKind, TCaseEdge {
77
81
else result = "Case[" + minValue + ".." + maxValue + "]"
78
82
}
79
83
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 }
81
88
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 }
83
93
}
84
94
85
95
/**
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
+
1
5
private import internal.EdgeKindInternal
2
6
3
7
private newtype TEdgeKind =
@@ -77,9 +81,15 @@ class CaseEdge extends EdgeKind, TCaseEdge {
77
81
else result = "Case[" + minValue + ".." + maxValue + "]"
78
82
}
79
83
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 }
81
88
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 }
83
93
}
84
94
85
95
/**
You can’t perform that action at this time.
0 commit comments