summary refs log tree commit diff stats
path: root/compiler/semdata.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-01-30 01:56:03 +0100
committerAraq <rumpf_a@web.de>2015-01-30 03:04:45 +0100
commitfe30ec83e22f14ee65f1a5225152e01a3713b2c4 (patch)
treebce984e85865ec2ddf442ffe8e48d07c13ac2fd6 /compiler/semdata.nim
parenta9706dcfa2402c17aefc710e9ac925fcac8873ae (diff)
downloadNim-fe30ec83e22f14ee65f1a5225152e01a3713b2c4.tar.gz
nimsuggest improvements
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r--compiler/semdata.nim3
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)