mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
Renamed -d:nimCompilerStackraceHints to -d:nimCompilerStacktraceHints. (#18283)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user