the .deprecated pragma for procs now supports a user-definable deprecation message
This commit is contained in:
parent
1b22a3b346
commit
212457f5e0
5 changed files with 27 additions and 4 deletions
|
|
@ -118,7 +118,7 @@ proc isRange*(n: PNode): bool {.inline.} =
|
|||
result = true
|
||||
|
||||
proc whichPragma*(n: PNode): TSpecialWord =
|
||||
let key = if n.kind == nkExprColonExpr: n.sons[0] else: n
|
||||
let key = if n.kind in nkPragmaCallKinds and n.len > 0: n.sons[0] else: n
|
||||
if key.kind == nkIdent: result = whichKeyword(key.ident)
|
||||
|
||||
proc unnestStmts(n, result: PNode) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue