add more APIs to compiler/debugutils; re-export it (#18243)

This commit is contained in:
Timothee Cour
2021-06-18 06:52:08 -07:00
committed by GitHub
parent a250481dcd
commit 87cd9b24a3
4 changed files with 85 additions and 0 deletions

View File

@@ -2716,6 +2716,13 @@ proc getNilType(c: PContext): PType =
proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
when defined(nimCompilerStacktraceHints):
setFrameMsg c.config$n.info & " " & $n.kind
when false: # see `tdebugutils`
if isCompilerDebug():
echo (">", c.config$n.info, n, flags, n.kind)
defer:
if isCompilerDebug():
echo ("<", c.config$n.info, n, ?.result.typ)
result = n
if c.config.cmd == cmdIdeTools: suggestExpr(c, n)
if nfSem in n.flags: return