diff options
author | Araq <rumpf_a@web.de> | 2011-02-16 02:24:12 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-02-16 02:24:12 +0100 |
commit | f7b2d7179052a11947cd538f140d428f43e4f20a (patch) | |
tree | 0232dd9a60968c6627130ca00c29e5758dbfbd17 /rod/procfind.nim | |
parent | 5c7e3efbc3bfe489d3233309449a43a0fdf51195 (diff) | |
download | Nim-f7b2d7179052a11947cd538f140d428f43e4f20a.tar.gz |
first implementation of suggest
Diffstat (limited to 'rod/procfind.nim')
-rwxr-xr-x | rod/procfind.nim | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/rod/procfind.nim b/rod/procfind.nim index 2bfa27494..30455c4c6 100755 --- a/rod/procfind.nim +++ b/rod/procfind.nim @@ -57,15 +57,12 @@ proc SearchForProc(c: PContext, fn: PSym, tos: int): PSym = result = NextIdentIter(it, c.tab.stack[tos]) proc paramsFitBorrow(a, b: PNode): bool = - var - length: int - m, n: PSym - length = sonsLen(a) + var length = sonsLen(a) result = false if length == sonsLen(b): for i in countup(1, length - 1): - m = a.sons[i].sym - n = b.sons[i].sym + var m = a.sons[i].sym + var n = b.sons[i].sym assert((m.kind == skParam) and (n.kind == skParam)) if not equalOrDistinctOf(m.typ, n.typ): return if not equalOrDistinctOf(a.sons[0].typ, b.sons[0].typ): return |