Skip to content

Commit

Permalink
Rust: address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars committed Oct 11, 2024
1 parent 5f45402 commit fc298b2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ class IfExprTree extends PostOrderTree instanceof IfExpr {
}
}

class FormatArgsExprTree extends StandardPostOrderTree instanceof FormatArgsExpr {
class FormatArgsExprTree extends StandardPostOrderTree, FormatArgsExpr {
override AstNode getChildNode(int i) {
i = -1 and result = super.getTemplate()
i = -1 and result = this.getTemplate()
or
result = super.getArg(i).getExpr()
result = this.getArg(i).getExpr()
}
}

Expand Down Expand Up @@ -441,14 +441,14 @@ class MacroCallTree extends ControlFlowTree, MacroCall {
override predicate last(AstNode last, Completion c) {
last(this.getExpanded(), last, c)
or
not exists(super.getExpanded()) and
not exists(this.getExpanded()) and
last = this and
completionIsValidFor(c, last)
}

override predicate succ(AstNode pred, AstNode succ, Completion c) { none() }

override predicate propagatesAbnormal(AstNode child) { none() }
override predicate propagatesAbnormal(AstNode child) { child = this.getExpanded() }
}

class MacroExprTree extends StandardPostOrderTree, MacroExpr {
Expand Down

0 comments on commit fc298b2

Please sign in to comment.