Skip to content

Commit fcd875d

Browse files
authored
Merge pull request #129 from microsoft/dilan/powershell-splitting-fix
commenting out problematic powershell qll code
2 parents 490957a + 4ff362f commit fcd875d

File tree

1 file changed

+28
-28
lines changed
  • powershell/ql/lib/semmle/code/powershell/controlflow/internal

1 file changed

+28
-28
lines changed

powershell/ql/lib/semmle/code/powershell/controlflow/internal/Splitting.qll

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -39,46 +39,46 @@ private module ConditionalCompletionSplitting {
3939
override string toString() { result = completion.toString() }
4040
}
4141

42-
private class ConditionalCompletionSplitKind extends SplitKind, TConditionalCompletionSplitKind {
43-
override int getListOrder() { result = 0 }
42+
// private class ConditionalCompletionSplitKind extends SplitKind, TConditionalCompletionSplitKind {
43+
// override int getListOrder() { result = 0 }
4444

45-
override predicate isEnabled(Ast n) { this.appliesTo(n) }
45+
// override predicate isEnabled(Ast n) { this.appliesTo(n) }
4646

47-
override string toString() { result = "ConditionalCompletion" }
48-
}
47+
// override string toString() { result = "ConditionalCompletion" }
48+
// }
4949

5050
int getNextListOrder() { result = 1 }
5151

52-
private class ConditionalCompletionSplitImpl extends SplitImpl instanceof ConditionalCompletionSplit
53-
{
54-
ConditionalCompletion completion;
52+
// private class ConditionalCompletionSplitImpl extends SplitImpl instanceof ConditionalCompletionSplit
53+
// {
54+
// ConditionalCompletion completion;
5555

56-
ConditionalCompletionSplitImpl() { this = TConditionalCompletionSplit(completion) }
56+
// ConditionalCompletionSplitImpl() { this = TConditionalCompletionSplit(completion) }
5757

58-
override ConditionalCompletionSplitKind getKind() { any() }
58+
// override ConditionalCompletionSplitKind getKind() { any() }
5959

60-
override predicate hasEntry(Ast pred, Ast succ, Completion c) {
61-
succ(pred, succ, c) and
62-
last(succ, _, completion) and
63-
none() // TODO
64-
}
60+
// override predicate hasEntry(Ast pred, Ast succ, Completion c) {
61+
// succ(pred, succ, c) and
62+
// last(succ, _, completion) and
63+
// none() // TODO
64+
// }
6565

66-
override predicate hasEntryScope(Cfg::CfgScope scope, Ast succ) { none() }
66+
// override predicate hasEntryScope(Cfg::CfgScope scope, Ast succ) { none() }
6767

68-
override predicate hasExit(Ast pred, Ast succ, Completion c) {
69-
this.appliesTo(pred) and
70-
succ(pred, succ, c) and
71-
if c instanceof ConditionalCompletion then completion = c else any()
72-
}
68+
// override predicate hasExit(Ast pred, Ast succ, Completion c) {
69+
// this.appliesTo(pred) and
70+
// succ(pred, succ, c) and
71+
// if c instanceof ConditionalCompletion then completion = c else any()
72+
// }
7373

74-
override predicate hasExitScope(Cfg::CfgScope scope, Ast last, Completion c) {
75-
this.appliesTo(last) and
76-
succExit(scope, last, c) and
77-
if c instanceof ConditionalCompletion then completion = c else any()
78-
}
74+
// override predicate hasExitScope(Cfg::CfgScope scope, Ast last, Completion c) {
75+
// this.appliesTo(last) and
76+
// succExit(scope, last, c) and
77+
// if c instanceof ConditionalCompletion then completion = c else any()
78+
// }
7979

80-
override predicate hasSuccessor(Ast pred, Ast succ, Completion c) { none() }
81-
}
80+
// override predicate hasSuccessor(Ast pred, Ast succ, Completion c) { none() }
81+
// }
8282
}
8383

8484
class ConditionalCompletionSplit = ConditionalCompletionSplitting::ConditionalCompletionSplit;

0 commit comments

Comments
 (0)