Skip to content

Commit 8d68bdf

Browse files
committed
Codegen: Fix return type of getResolveStep and resolve
1 parent 2cafa3c commit 8d68bdf

File tree

5 files changed

+388
-382
lines changed

5 files changed

+388
-382
lines changed

misc/codegen/templates/ql_class.mustache

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ private import {{import_prefix}}.Raw
99
{{#imports}}
1010
import {{.}}
1111
{{/imports}}
12-
12+
{{#root}}
13+
private class {{name}}Alias = {{name}};
14+
{{/root}}
1315
/**
1416
* INTERNAL: This module contains the fully generated definition of `{{name}}` and should not
1517
* be referenced directly.
@@ -49,13 +51,13 @@ module Generated {
4951
* Classes can override this to indicate this node should be in the "hidden" AST, mostly reserved
5052
* for conversions and syntactic sugar nodes like parentheses.
5153
*/
52-
{{name}} getResolveStep() { none() } // overridden by subclasses
54+
{{name}}Alias getResolveStep() { none() } // overridden by subclasses
5355

5456
/**
5557
* Gets the element that should substitute this element in the explicit AST, applying `getResolveStep`
5658
* transitively.
5759
*/
58-
final {{name}} resolve() {
60+
final {{name}}Alias resolve() {
5961
not exists(this.getResolveStep()) and result = this
6062
or
6163
result = this.getResolveStep().resolve()

0 commit comments

Comments
 (0)