From 9d813963170c2cfe027ef0e8f5f6845d07e87bf1 Mon Sep 17 00:00:00 2001 From: joshvera Date: Mon, 17 Oct 2016 15:51:53 -0400 Subject: [PATCH] construct Go terms with its termConstructor --- src/TreeSitter.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index d749f38ea..850fd9e6f 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -7,6 +7,7 @@ import Data.Record import Language import qualified Language.JavaScript as JS import qualified Language.C as C +import qualified Language.Go as Go import Parser import Range import Source @@ -57,5 +58,6 @@ documentToTerm language document SourceBlob{..} = alloca $ \ root -> do termConstructor = case language of JavaScript -> JS.termConstructor C -> C.termConstructor + Go -> Go.termConstructor _ -> Language.termConstructor isNonEmpty child = category (extract child) /= Empty