Skip to content

Commit 7d18636

Browse files
committed
Fix the 'positional_components' auto fixing function to emit valid node types
1 parent c089bdb commit 7d18636

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lkql_checker/share/lkql/positional_components.lkql

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ fun add_component_names(agg, ctx) =
1010
assoc[2],
1111
AggregateAssoc.f_designators,
1212
new AlternativesList([
13-
new Identifier(
14-
match assoc[2].p_get_params()?[1]
15-
| null => assoc[1].img
16-
| name => name.text
17-
)
13+
match assoc[2].p_get_params()?[1]
14+
| null => new IntLiteral(assoc[1].img)
15+
| name => new Identifier(name.text)
1816
])
1917
),
2018
ctx

0 commit comments

Comments
 (0)