styleCheck: Fix error for sugar and std/with (#16176)
With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: #16174
This commit is contained in:
parent
139075e965
commit
629b22e3d5
3 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ proc underscoredCall(n, arg0: NimNode): NimNode =
|
|||
result.add arg0
|
||||
|
||||
proc underscoredCalls*(result, calls, arg0: NimNode) =
|
||||
expectKind calls, {nnkArgList, nnkStmtList, nnkStmtListExpr}
|
||||
expectKind calls, {nnkArglist, nnkStmtList, nnkStmtListExpr}
|
||||
|
||||
for call in calls:
|
||||
if call.kind in {nnkStmtList, nnkStmtListExpr}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue