diff options
author | Araq <rumpf_a@web.de> | 2012-08-05 19:38:11 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-08-05 19:38:11 +0200 |
commit | 5cd933a44d37b46dd3a1f349777efca6eaaf11e2 (patch) | |
tree | 9515468fc51d96c2cac829dc42d41d6778922ee7 | |
parent | c0b444890407a52f1b812485ea9b89fc7c985e5f (diff) | |
download | Nim-5cd933a44d37b46dd3a1f349777efca6eaaf11e2.tar.gz |
make idetools output full paths
-rwxr-xr-x | compiler/procfind.nim | 7 | ||||
-rwxr-xr-x | compiler/suggest.nim | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/compiler/procfind.nim b/compiler/procfind.nim index f0a2d9f2e..34a3482f8 100755 --- a/compiler/procfind.nim +++ b/compiler/procfind.nim @@ -84,3 +84,10 @@ proc SearchForBorrowProc(c: PContext, fn: PSym, tos: int): PSym = fn.ast.sons[genericParamsPos]): if paramsFitBorrow(fn.typ.n, result.typ.n): return result = NextIdentIter(it, c.tab.stack[scope]) + +proc SearchForBorrowProc2(c: PContext, fn: PSym, tos: int): PSym = + # Searchs for the fn in the symbol table. If the parameter lists are suitable + # for borrowing the sym in the symbol table is returned, else nil. + # New approach: generate fn(x, y, z) where x, y, z have the proper types + # and use the overloading resolution mechanism: + nil diff --git a/compiler/suggest.nim b/compiler/suggest.nim index bdd3cfb34..9ca02689e 100755 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -32,7 +32,7 @@ proc SymToStr(s: PSym, isLocal: bool, section: string, li: TLineInfo): string = if s.typ != nil: result.add(typeToString(s.typ)) result.add(sep) - result.add(toFilename(li)) + result.add(toFullPath(li)) result.add(sep) result.add($ToLinenumber(li)) result.add(sep) |