continued work on html/xmlparser
This commit is contained in:
parent
16c0beb27c
commit
40a5d6c3b9
747 changed files with 440 additions and 192 deletions
3
rod/lookups.nim
Executable file → Normal file
3
rod/lookups.nim
Executable file → Normal file
|
|
@ -71,10 +71,9 @@ proc addDeclAt(c: PContext, sym: PSym, at: Natural) =
|
|||
liMessage(sym.info, errAttemptToRedefine, sym.Name.s)
|
||||
|
||||
proc addOverloadableSymAt(c: PContext, fn: PSym, at: Natural) =
|
||||
var check: PSym
|
||||
if not (fn.kind in OverloadableSyms):
|
||||
InternalError(fn.info, "addOverloadableSymAt")
|
||||
check = StrTableGet(c.tab.stack[at], fn.name)
|
||||
var check = StrTableGet(c.tab.stack[at], fn.name)
|
||||
if (check != nil) and not (check.Kind in OverloadableSyms):
|
||||
liMessage(fn.info, errAttemptToRedefine, fn.Name.s)
|
||||
SymTabAddAt(c.tab, fn, at)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue