Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class TranslatedDeclStmt extends TranslatedStmt {

override TranslatedElement getLastChild() { result = this.getChild(this.getChildCount() - 1) }

private int getChildCount() { result = count(this.getDeclarationEntry(_)) }
private int getChildCount() { result = count(int i | exists(this.getDeclarationEntry(i))) }

IRDeclarationEntry getIRDeclarationEntry(int index) {
result.hasIndex(index) and
Expand Down
Loading