1
1
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:
Ayman Nadeem 2020-04-29 13:56:05 -04:00
parent f98b7e3b89
commit d7c5c587b4

View File

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