We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b76a3 commit 22d321aCopy full SHA for 22d321a
compiler/ast.nim
@@ -744,6 +744,9 @@ type
744
module*: int32
745
item*: int32
746
747
+proc `$`*(x: ItemId): string =
748
+ "(module: " & $x.module & ", item: " & $x.item & ")"
749
+
750
proc `==`*(a, b: ItemId): bool {.inline.} =
751
a.item == b.item and a.module == b.module
752
compiler/passaux.nim
@@ -22,6 +22,8 @@ proc verboseOpen(graph: ModuleGraph; s: PSym; idgen: IdGenerator): PPassContext
22
# xxx consider either removing this or keeping for documentation for how to add a pass
23
result = VerboseRef(config: graph.config, idgen: idgen)
24
25
+import std/objectdollar
26
27
proc verboseProcess(context: PPassContext, n: PNode): PNode =
28
# called from `process` in `processTopLevelStmt`.
29
result = n
0 commit comments