1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00

Depend on Language.Go.Grammar instead of TreeSitter.Go

This commit is contained in:
Ayman Nadeem 2020-01-29 12:09:22 -05:00
parent 8cd964b30a
commit 4fbc601617
5 changed files with 6 additions and 5 deletions

View File

@ -52,5 +52,6 @@ library
exposed-modules:
Language.Go
Language.Go.AST
Language.Go.Grammar
Language.Go.Tags
hs-source-dirs: src

View File

@ -1,7 +1,7 @@
-- | Semantic functionality for Go programs.
module Language.Go
( Term(..)
, TreeSitter.Go.tree_sitter_go
, Language.Go.Grammar.tree_sitter_go
) where
@ -9,7 +9,7 @@ import Data.Proxy
import qualified Language.Go.AST as Go
import qualified Language.Go.Tags as GoTags
import qualified Tags.Tagging.Precise as Tags
import qualified TreeSitter.Go (tree_sitter_go)
import qualified Language.Go.Grammar (tree_sitter_go)
import qualified AST.Unmarshal as TS
newtype Term a = Term { getTerm :: Go.SourceFile a }

View File

@ -16,6 +16,6 @@ module Language.Go.AST
import Prelude hiding (False, Float, Integer, Rational, String, True)
import AST.GenerateSyntax
import qualified TreeSitter.Go as Grammar
import qualified Language.Go.Grammar as Grammar
astDeclarationsForLanguage Grammar.tree_sitter_go "../../../vendor/tree-sitter-go/src/node-types.json"

View File

@ -26,7 +26,7 @@ import Language.Go.Syntax as Go.Syntax hiding (runeLiteral, labelName)
import Language.Go.Term as Go
import Language.Go.Type as Go.Type
import Data.ImportPath (importPath, defaultAlias)
import TreeSitter.Go as Grammar
import Language.Go.Grammar as Grammar
type Assignment = Assignment.Assignment [] Grammar

View File

@ -61,7 +61,7 @@ import qualified Language.TypeScript as TypeScriptPrecise
import qualified Language.TypeScript.Assignment as TypeScriptALaCarte
import Prelude hiding (fail)
import Prologue
import TreeSitter.Go
import Language.Go.Grammar
import qualified TreeSitter.Language as TS (Language, Symbol)
import TreeSitter.PHP
import Language.Python.Grammar