From 97a7a105d27caf995a8d8534fd6266d701e1aa15 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Tue, 27 Oct 2015 18:13:49 -0400 Subject: [PATCH] Map to source ranges. --- prototype/doubt-difftool/main.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prototype/doubt-difftool/main.swift b/prototype/doubt-difftool/main.swift index 72d2ac533..c7e17b2b2 100644 --- a/prototype/doubt-difftool/main.swift +++ b/prototype/doubt-difftool/main.swift @@ -40,7 +40,7 @@ if let a = arguments[1] { ts_document_parse(document) let root = ts_document_root_node(document) - let term = Cofree + let term: Cofree> = Cofree .ana { node in let count = ts_node_child_count(node) guard count > 0 else { @@ -48,6 +48,10 @@ if let a = arguments[1] { } return .Indexed((0..