mirror of
https://github.com/github/semantic.git
synced 2024-12-19 12:51:52 +03:00
construct Go terms with its termConstructor
This commit is contained in:
parent
c4182ae85c
commit
9d81396317
@ -7,6 +7,7 @@ import Data.Record
|
|||||||
import Language
|
import Language
|
||||||
import qualified Language.JavaScript as JS
|
import qualified Language.JavaScript as JS
|
||||||
import qualified Language.C as C
|
import qualified Language.C as C
|
||||||
|
import qualified Language.Go as Go
|
||||||
import Parser
|
import Parser
|
||||||
import Range
|
import Range
|
||||||
import Source
|
import Source
|
||||||
@ -57,5 +58,6 @@ documentToTerm language document SourceBlob{..} = alloca $ \ root -> do
|
|||||||
termConstructor = case language of
|
termConstructor = case language of
|
||||||
JavaScript -> JS.termConstructor
|
JavaScript -> JS.termConstructor
|
||||||
C -> C.termConstructor
|
C -> C.termConstructor
|
||||||
|
Go -> Go.termConstructor
|
||||||
_ -> Language.termConstructor
|
_ -> Language.termConstructor
|
||||||
isNonEmpty child = category (extract child) /= Empty
|
isNonEmpty child = category (extract child) /= Empty
|
||||||
|
Loading…
Reference in New Issue
Block a user