Renamed -d:nimCompilerStackraceHints to -d:nimCompilerStacktraceHints. (#18283)

This commit is contained in:
Timothee Cour
2021-06-17 00:17:46 -07:00
committed by GitHub
parent 99411674a6
commit c83ac16671
4 changed files with 7 additions and 6 deletions

View File

@@ -88,6 +88,7 @@
The downside is that these defines now have custom logic that doesn't apply for
other defines.
- Renamed `-d:nimCompilerStackraceHints` to `-d:nimCompilerStacktraceHints`.
## Standard library additions and changes

View File

@@ -9,7 +9,7 @@
# included from cgen.nim
when defined(nimCompilerStackraceHints):
when defined(nimCompilerStacktraceHints):
import std/stackframes
proc getNullValueAuxT(p: BProc; orig, t: PType; obj, constOrNil: PNode,
@@ -2694,7 +2694,7 @@ proc genConstStmt(p: BProc, n: PNode) =
genConstDefinition(m, p, sym)
proc expr(p: BProc, n: PNode, d: var TLoc) =
when defined(nimCompilerStackraceHints):
when defined(nimCompilerStacktraceHints):
setFrameMsg p.config$n.info & " " & $n.kind
p.currLineInfo = n.info

View File

@@ -10,7 +10,7 @@
# this module does the semantic checking for expressions
# included from sem.nim
when defined(nimCompilerStackraceHints):
when defined(nimCompilerStacktraceHints):
import std/stackframes
const
@@ -2714,7 +2714,7 @@ proc getNilType(c: PContext): PType =
c.nilTypeCache = result
proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
when defined(nimCompilerStackraceHints):
when defined(nimCompilerStacktraceHints):
setFrameMsg c.config$n.info & " " & $n.kind
result = n
if c.config.cmd == cmdIdeTools: suggestExpr(c, n)

View File

@@ -35,7 +35,7 @@ import
from modulegraphs import getBody
when defined(nimCompilerStackraceHints):
when defined(nimCompilerStacktraceHints):
import std/stackframes
const
@@ -2003,7 +2003,7 @@ proc procIsCallback(c: PCtx; s: PSym): bool =
dec i
proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
when defined(nimCompilerStackraceHints):
when defined(nimCompilerStacktraceHints):
setFrameMsg c.config$n.info & " " & $n.kind & " " & $flags
case n.kind
of nkSym: