From 691030332a83649aa573551a53af3f43dcf458eb Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 28 Oct 2015 17:28:58 -0400 Subject: [PATCH] Correct how names and categories are found. --- prototype/doubt-difftool/main.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prototype/doubt-difftool/main.swift b/prototype/doubt-difftool/main.swift index a2d370a86..db8d96f8a 100644 --- a/prototype/doubt-difftool/main.swift +++ b/prototype/doubt-difftool/main.swift @@ -81,16 +81,16 @@ func termWithInput(string: String) -> Term? { switch category { case .Pair: return try .Fixed(node.namedChildren.map { - ($0, try node.category(document)) + ($0, try $0.category(document)) }) case .Object: return try .Keyed(Dictionary(elements: node.namedChildren.map { // fixme: this should return the key in the pair. - try (node.name(document), ($0, node.category(document))) + try ($0.name(document), ($0, $0.category(document))) })) default: return try .Indexed(node.namedChildren.map { - ($0, try node.category(document)) + ($0, try $0.category(document)) }) } } (root, Info.Category.Program)