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:
parent
8cd964b30a
commit
4fbc601617
@ -52,5 +52,6 @@ library
|
||||
exposed-modules:
|
||||
Language.Go
|
||||
Language.Go.AST
|
||||
Language.Go.Grammar
|
||||
Language.Go.Tags
|
||||
hs-source-dirs: src
|
||||
|
@ -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 }
|
||||
|
@ -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"
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user