Skip to content

Commit

Permalink
complete doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
saem authored Sep 6, 2024
1 parent 85714b5 commit ea2e101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/ast/ast_query.nim
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ iterator genericParamsInMacroCall*(macroSym: PSym, call: PNode): (PSym, PNode) =

proc endsInNoReturn*(n: PNode): bool =
## checks if expression `n` ends in an unstructured exit (raise, return,
## etc), calls of noreturn proc, or
## etc) or calls of noreturn proc. This is meant to be called on an semmed `n`.
var it = n
while it.kind in {nkStmtList, nkStmtListExpr} and it.len > 0:
it = it.lastSon
Expand Down

0 comments on commit ea2e101

Please sign in to comment.