better error handling for better idetools support
This commit is contained in:
parent
feaf6509bd
commit
b595fc8347
13 changed files with 378 additions and 268 deletions
|
|
@ -18,7 +18,7 @@ proc expectIntLit(c: PContext, n: PNode): int =
|
|||
let x = c.semConstExpr(c, n)
|
||||
case x.kind
|
||||
of nkIntLit..nkInt64Lit: result = int(x.intVal)
|
||||
else: GlobalError(n.info, errIntLiteralExpected)
|
||||
else: LocalError(n.info, errIntLiteralExpected)
|
||||
|
||||
proc semInstantiationInfo(c: PContext, n: PNode): PNode =
|
||||
result = newNodeIT(nkPar, n.info, n.typ)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue