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