diff options
author | Araq <rumpf_a@web.de> | 2015-01-30 01:56:03 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-01-30 03:04:45 +0100 |
commit | fe30ec83e22f14ee65f1a5225152e01a3713b2c4 (patch) | |
tree | bce984e85865ec2ddf442ffe8e48d07c13ac2fd6 /compiler/semdata.nim | |
parent | a9706dcfa2402c17aefc710e9ac925fcac8873ae (diff) | |
download | Nim-fe30ec83e22f14ee65f1a5225152e01a3713b2c4.tar.gz |
nimsuggest improvements
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r-- | compiler/semdata.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim index bb82db292..157761591 100644 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -307,6 +307,9 @@ proc markIndirect*(c: PContext, s: PSym) {.inline.} = proc illFormedAst*(n: PNode) = globalError(n.info, errIllFormedAstX, renderTree(n, {renderNoComments})) +proc illFormedAstLocal*(n: PNode) = + localError(n.info, errIllFormedAstX, renderTree(n, {renderNoComments})) + proc checkSonsLen*(n: PNode, length: int) = if sonsLen(n) != length: illFormedAst(n) |