made compiler more robust for idetools support
This commit is contained in:
parent
735c005375
commit
b0c11d3efb
11 changed files with 94 additions and 53 deletions
|
|
@ -88,7 +88,7 @@ proc getOpSym*(op: PNode): PSym =
|
|||
result = nil
|
||||
else:
|
||||
if (sonsLen(op) <= 0): InternalError(op.info, "getOpSym")
|
||||
if op.sons[0].Kind == nkSym: result = op.sons[0].sym
|
||||
elif op.sons[0].Kind == nkSym: result = op.sons[0].sym
|
||||
else: result = nil
|
||||
|
||||
proc getMagic*(op: PNode): TMagic =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue