Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion misc/codegen/templates/ql_parent.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ none()
{{#classes}}
{{#final}}
or
result = getImmediateChildOf{{name}}(e, index, partialAccessor)
index = min(int i | result = getImmediateChildOf{{name}}(e, i, partialAccessor) | i)
{{/final}}
{{/classes}}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Element extends @element {
string toString() { none() }
}

query predicate new_item_attribute_macro_expansions(Element id, Element attribute_macro_expansion) {
expandable_item_attribute_macro_expansions(id, attribute_macro_expansion) and id instanceof @item
}
Loading
Loading