make idetools output full paths
This commit is contained in:
parent
c0b4448904
commit
5cd933a44d
2 changed files with 8 additions and 1 deletions
|
|
@ -84,3 +84,10 @@ proc SearchForBorrowProc(c: PContext, fn: PSym, tos: int): PSym =
|
||||||
fn.ast.sons[genericParamsPos]):
|
fn.ast.sons[genericParamsPos]):
|
||||||
if paramsFitBorrow(fn.typ.n, result.typ.n): return
|
if paramsFitBorrow(fn.typ.n, result.typ.n): return
|
||||||
result = NextIdentIter(it, c.tab.stack[scope])
|
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
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ proc SymToStr(s: PSym, isLocal: bool, section: string, li: TLineInfo): string =
|
||||||
if s.typ != nil:
|
if s.typ != nil:
|
||||||
result.add(typeToString(s.typ))
|
result.add(typeToString(s.typ))
|
||||||
result.add(sep)
|
result.add(sep)
|
||||||
result.add(toFilename(li))
|
result.add(toFullPath(li))
|
||||||
result.add(sep)
|
result.add(sep)
|
||||||
result.add($ToLinenumber(li))
|
result.add($ToLinenumber(li))
|
||||||
result.add(sep)
|
result.add(sep)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue