fixed compiling in swift 3

This commit is contained in:
Ilya Puchka
2017-11-29 23:18:48 +01:00
parent 93c07e22b1
commit 1e6846867e

View File

@@ -4,7 +4,10 @@ class BlockContext {
var blocks: [String: [BlockNode]]
init(blocks: [String: BlockNode]) {
self.blocks = blocks.mapValues({ [$0] })
self.blocks = [:]
blocks.forEach { (key, value) in
self.blocks[key] = [value]
}
}
func push(_ block: BlockNode, forKey blockName: String) {