fixes #4803
This commit is contained in:
parent
cd27b7710d
commit
9b810b17a2
2 changed files with 5 additions and 1 deletions
|
|
@ -1408,6 +1408,7 @@ proc copyNode*(src: PNode): PNode =
|
||||||
result.info = src.info
|
result.info = src.info
|
||||||
result.typ = src.typ
|
result.typ = src.typ
|
||||||
result.flags = src.flags * PersistentNodeFlags
|
result.flags = src.flags * PersistentNodeFlags
|
||||||
|
result.comment = src.comment
|
||||||
when defined(useNodeIds):
|
when defined(useNodeIds):
|
||||||
if result.id == nodeIdToDebug:
|
if result.id == nodeIdToDebug:
|
||||||
echo "COMES FROM ", src.id
|
echo "COMES FROM ", src.id
|
||||||
|
|
@ -1426,6 +1427,7 @@ proc shallowCopy*(src: PNode): PNode =
|
||||||
result.info = src.info
|
result.info = src.info
|
||||||
result.typ = src.typ
|
result.typ = src.typ
|
||||||
result.flags = src.flags * PersistentNodeFlags
|
result.flags = src.flags * PersistentNodeFlags
|
||||||
|
result.comment = src.comment
|
||||||
when defined(useNodeIds):
|
when defined(useNodeIds):
|
||||||
if result.id == nodeIdToDebug:
|
if result.id == nodeIdToDebug:
|
||||||
echo "COMES FROM ", src.id
|
echo "COMES FROM ", src.id
|
||||||
|
|
@ -1445,6 +1447,7 @@ proc copyTree*(src: PNode): PNode =
|
||||||
result.info = src.info
|
result.info = src.info
|
||||||
result.typ = src.typ
|
result.typ = src.typ
|
||||||
result.flags = src.flags * PersistentNodeFlags
|
result.flags = src.flags * PersistentNodeFlags
|
||||||
|
result.comment = src.comment
|
||||||
when defined(useNodeIds):
|
when defined(useNodeIds):
|
||||||
if result.id == nodeIdToDebug:
|
if result.id == nodeIdToDebug:
|
||||||
echo "COMES FROM ", src.id
|
echo "COMES FROM ", src.id
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,7 @@ proc copyValue(src: PNode): PNode =
|
||||||
result.info = src.info
|
result.info = src.info
|
||||||
result.typ = src.typ
|
result.typ = src.typ
|
||||||
result.flags = src.flags * PersistentNodeFlags
|
result.flags = src.flags * PersistentNodeFlags
|
||||||
|
result.comment = src.comment
|
||||||
when defined(useNodeIds):
|
when defined(useNodeIds):
|
||||||
if result.id == nodeIdToDebug:
|
if result.id == nodeIdToDebug:
|
||||||
echo "COMES FROM ", src.id
|
echo "COMES FROM ", src.id
|
||||||
|
|
@ -1071,7 +1072,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
||||||
of opcRepr:
|
of opcRepr:
|
||||||
decodeB(rkNode)
|
decodeB(rkNode)
|
||||||
createStr regs[ra]
|
createStr regs[ra]
|
||||||
regs[ra].node.strVal = renderTree(regs[rb].regToNode, {renderNoComments})
|
regs[ra].node.strVal = renderTree(regs[rb].regToNode, {renderNoComments, renderDocComments})
|
||||||
of opcQuit:
|
of opcQuit:
|
||||||
if c.mode in {emRepl, emStaticExpr, emStaticStmt}:
|
if c.mode in {emRepl, emStaticExpr, emStaticStmt}:
|
||||||
message(c.debug[pc], hintQuitCalled)
|
message(c.debug[pc], hintQuitCalled)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue