mirror of https://github.com/status-im/NimYAML.git
Revert "Actual fix for #40" because it's shit
This reverts commit 15f8995ae2
.
This commit is contained in:
parent
bdbdcc074b
commit
0caebe2618
|
@ -74,9 +74,7 @@ type
|
||||||
macro typeHintStateMachine(c: untyped, content: varargs[untyped]): typed =
|
macro typeHintStateMachine(c: untyped, content: varargs[untyped]): typed =
|
||||||
yAssert content.kind == nnkArgList
|
yAssert content.kind == nnkArgList
|
||||||
result = newNimNode(nnkCaseStmt, content).add(copyNimNode(c))
|
result = newNimNode(nnkCaseStmt, content).add(copyNimNode(c))
|
||||||
for branchStmt in content:
|
for branch in content.children:
|
||||||
let branch = branchStmt[0]
|
|
||||||
echo $branch.kind
|
|
||||||
yAssert branch.kind == nnkOfBranch
|
yAssert branch.kind == nnkOfBranch
|
||||||
var
|
var
|
||||||
charBranch = newNimNode(nnkOfBranch, branch)
|
charBranch = newNimNode(nnkOfBranch, branch)
|
||||||
|
|
Loading…
Reference in New Issue