1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 12:21:57 +03:00

construct Go terms with its termConstructor

This commit is contained in:
joshvera 2016-10-17 15:51:53 -04:00
parent c4182ae85c
commit 9d81396317

View File

@ -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