Skip to content

Commit

Permalink
Remove return and add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber committed Mar 8, 2024
1 parent a0f7ab6 commit 5a44f5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/ast/ast_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ type

const
nkUIntLiterals* = {nkCharLit, nkUIntLit..nkUInt64Lit}
## Unsigned int literals
nkSIntLiterals* = {nkIntLit..nkInt64Lit}
## Signed int literals
nkIntLiterals* = nkUIntLiterals + nkSIntLiterals
nkFloatLiterals* = {nkFloatLit..nkFloat64Lit}
nkStrLiterals* = {nkStrLit..nkTripleStrLit}
Expand Down
2 changes: 1 addition & 1 deletion compiler/ast/filters.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ proc invalidPragma(conf: ConfigRef; n: PNode) =
proc getArg(conf: ConfigRef; n: PNode, name: string, pos: int): PNode =
result = nil
case n.kind
of nkWithoutSons: return
of nkWithoutSons: discard # these can't have args
of nkWithSons:
for i in 1..<n.len:
if n[i].kind == nkExprEqExpr:
Expand Down

0 comments on commit 5a44f5c

Please sign in to comment.