diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-04-16 12:20:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 12:20:43 +0200 |
commit | 606288974f5a424d4c5063bc6ce9c1b5cdc0a7bc (patch) | |
tree | 1923c8aa5bbba787c73f35cfc77934f49ba73efa /compiler | |
parent | 8161b02897a75c4b30593dbcc189cbd49d3832ea (diff) | |
download | Nim-606288974f5a424d4c5063bc6ce9c1b5cdc0a7bc.tar.gz |
ic navigator tests (#17735)
* IC navigator: first basic test
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ic/ic.nim | 3 | ||||
-rw-r--r-- | compiler/ic/navigator.nim | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/ic/ic.nim b/compiler/ic/ic.nim index 1cd03ecfa..1f2d502ae 100644 --- a/compiler/ic/ic.nim +++ b/compiler/ic/ic.nim @@ -494,7 +494,8 @@ proc loadError(err: RodFileError; filename: AbsoluteFile; config: ConfigRef;) = of includeFileChanged: rawMessage(config, warnFileChanged, filename.string) else: - echo "Error: ", $err, " loading file: ", filename.string + rawMessage(config, warnCannotOpenFile, filename.string & " reason: " & $err) + #echo "Error: ", $err, " loading file: ", filename.string proc loadRodFile*(filename: AbsoluteFile; m: var PackedModule; config: ConfigRef; ignoreConfig = false): RodFileError = diff --git a/compiler/ic/navigator.nim b/compiler/ic/navigator.nim index ad2b29f42..b09275220 100644 --- a/compiler/ic/navigator.nim +++ b/compiler/ic/navigator.nim @@ -79,7 +79,7 @@ proc usage(c: var NavContext; info: PackedLineInfo; isDecl: bool) = file = os.extractFilename file toLocation(m, file, info.line.int, info.col.int + ColOffset) if not c.alreadyEmitted.containsOrIncl(m): - echo (if isDecl: "def" else: "usage"), c.outputSep, m + msgWriteln c.g.config, (if isDecl: "def" else: "usage") & c.outputSep & m proc list(c: var NavContext; tree: PackedTree; sym: ItemId) = for i in 0..high(tree.nodes): |