Skip to content

Commit 5718ef4

Browse files
committed
Codegen: fix parent-child in case of diamond inheritance
1 parent 1f4b562 commit 5718ef4

File tree

5 files changed

+563
-423
lines changed

5 files changed

+563
-423
lines changed

misc/codegen/templates/ql_parent.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ none()
6363
{{#classes}}
6464
{{#final}}
6565
or
66-
result = getImmediateChildOf{{name}}(e, index, partialAccessor)
66+
index = min(int i | result = getImmediateChildOf{{name}}(e, i, partialAccessor) | i)
6767
{{/final}}
6868
{{/classes}}
6969
}

rust/ql/.generated.list

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)