File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
csharp/ql/lib/semmle/code/csharp/controlflow/internal
ruby/ql/lib/codeql/ruby/controlflow/internal Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -988,4 +988,14 @@ module Consistency {
988
988
not node instanceof TExitNode and
989
989
not exists ( getASuccessor ( node , _) )
990
990
}
991
+
992
+ query predicate nonUniqueSplitKind ( SplitImpl split , SplitKind sk ) {
993
+ sk = split .getKind ( ) and
994
+ strictcount ( split .getKind ( ) ) > 1
995
+ }
996
+
997
+ query predicate nonUniqueListOrder ( SplitKind sk , int ord ) {
998
+ ord = sk .getListOrder ( ) and
999
+ strictcount ( sk .getListOrder ( ) ) > 1
1000
+ }
991
1001
}
Original file line number Diff line number Diff line change @@ -988,4 +988,14 @@ module Consistency {
988
988
not node instanceof TExitNode and
989
989
not exists ( getASuccessor ( node , _) )
990
990
}
991
+
992
+ query predicate nonUniqueSplitKind ( SplitImpl split , SplitKind sk ) {
993
+ sk = split .getKind ( ) and
994
+ strictcount ( split .getKind ( ) ) > 1
995
+ }
996
+
997
+ query predicate nonUniqueListOrder ( SplitKind sk , int ord ) {
998
+ ord = sk .getListOrder ( ) and
999
+ strictcount ( sk .getListOrder ( ) ) > 1
1000
+ }
991
1001
}
You can’t perform that action at this time.
0 commit comments