mirror of
https://github.com/github/semantic.git
synced 2024-11-23 16:37:50 +03:00
parameterize PHP program with Err
This commit is contained in:
parent
f98b7e3b89
commit
d7c5c587b4
@ -4,6 +4,7 @@ module Language.PHP
|
||||
, TreeSitter.PHP.tree_sitter_php
|
||||
) where
|
||||
|
||||
import qualified AST.Parse as Parse
|
||||
import qualified AST.Unmarshal as TS
|
||||
import Data.Proxy
|
||||
import qualified Language.PHP.AST as PHP
|
||||
@ -11,7 +12,7 @@ import qualified Language.PHP.Tags as PHPTags
|
||||
import qualified Tags.Tagging.Precise as Tags
|
||||
import qualified TreeSitter.PHP (tree_sitter_php)
|
||||
|
||||
newtype Term a = Term { getTerm :: PHP.Program a }
|
||||
newtype Term a = Term { getTerm :: PHP.Program Err a }
|
||||
|
||||
instance TS.SymbolMatching Term where
|
||||
matchedSymbols _ = TS.matchedSymbols (Proxy :: Proxy PHP.Program)
|
||||
|
Loading…
Reference in New Issue
Block a user