[refactoring] compiler: simplified markUsed
This commit is contained in:
parent
04708742e7
commit
81ddc67785
9 changed files with 50 additions and 50 deletions
|
|
@ -812,7 +812,7 @@ proc handleCaseStmtMacro(c: PContext; n: PNode): PNode =
|
|||
errors, false)
|
||||
if r.state == csMatch:
|
||||
var match = r.calleeSym
|
||||
markUsed(c, n[0].info, match, c.graph.usageSym)
|
||||
markUsed(c, n[0].info, match)
|
||||
onUse(n[0].info, match)
|
||||
|
||||
# but pass 'n' to the 'match' macro, not 'n[0]':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue