Skip to content

Commit ce2186f

Browse files
authored
Apply suggestions from code review
Fix compilation. Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
1 parent d50233e commit ce2186f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

shared/controlflow/codeql/controlflow/AstConsistency.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
overlay[local?]
55
module;
66

7+
private import codeql.util.Location
78
private import ControlFlowGraph
89

910
module MakeAstConsistency<LocationSig Location, AstSig<Location> Ast> {
@@ -95,7 +96,9 @@ module MakeAstConsistency<LocationSig Location, AstSig<Location> Ast> {
9596
parent.(PatternMatchExpr).getPattern() = child and member = "PatternMatchExpr.getPattern"
9697
}
9798

98-
private class StructuredAstNode extends AstNode {
99+
final private class FinalAstNode = AstNode;
100+
101+
private class StructuredAstNode extends FinalAstNode {
99102
StructuredAstNode() {
100103
this instanceof Callable or
101104
this instanceof Parameter or

0 commit comments

Comments
 (0)