From 76a67a7d8e7eadb661c1c9e63707964148bca158 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Tue, 27 Oct 2015 18:10:17 -0400 Subject: [PATCH] Reformat. --- prototype/doubt-difftool/main.swift | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/prototype/doubt-difftool/main.swift b/prototype/doubt-difftool/main.swift index 55fd7b304..72d2ac533 100644 --- a/prototype/doubt-difftool/main.swift +++ b/prototype/doubt-difftool/main.swift @@ -40,13 +40,16 @@ if let a = arguments[1] { ts_document_parse(document) let root = ts_document_root_node(document) - print(Cofree.ana { node in - let count = ts_node_child_count(node) - guard count > 0 else { - return String.fromCString(ts_node_name(node, document)).map(Syntax.Leaf)! - } - return .Indexed((0.. + .ana { node in + let count = ts_node_child_count(node) + guard count > 0 else { + return String.fromCString(ts_node_name(node, document)).map(Syntax.Leaf)! + } + return .Indexed((0..