Skip to content

Commit ebf7de2

Browse files
committed
Merge branch 'topic/rules/fix_positional_components_autofix' into 'master'
Fix the "positional_components" auto fixing function to emit valid node types See merge request eng/libadalang/langkit-query-language!555
2 parents c089bdb + 7d18636 commit ebf7de2

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)