remove {.compileTime.} for procs with NimNode: redundant because of tfTriggersCompileTime (#17463)
This commit is contained in:
parent
c719d79d23
commit
c27cd83265
6 changed files with 106 additions and 112 deletions
|
|
@ -398,7 +398,7 @@ proc `%`*(o: enum): JsonNode =
|
|||
## string. Creates a new `JString JsonNode`.
|
||||
result = %($o)
|
||||
|
||||
proc toJsonImpl(x: NimNode): NimNode {.compileTime.} =
|
||||
proc toJsonImpl(x: NimNode): NimNode =
|
||||
case x.kind
|
||||
of nnkBracket: # array
|
||||
if x.len == 0: return newCall(bindSym"newJArray")
|
||||
|
|
@ -1169,7 +1169,7 @@ when defined(nimFixedForwardGeneric):
|
|||
if typeExpr.kind == nnkTupleConstr:
|
||||
error("Use a named tuple instead of: " & typeExpr.repr, lineinfoNode)
|
||||
|
||||
proc foldObjectBody(dst, typeNode, tmpSym, jsonNode, jsonPath, originalJsonPathLen: NimNode): void {.compileTime.} =
|
||||
proc foldObjectBody(dst, typeNode, tmpSym, jsonNode, jsonPath, originalJsonPathLen: NimNode) =
|
||||
case typeNode.kind
|
||||
of nnkEmpty:
|
||||
discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue