1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00

Generalize renderPreciseToSymbols.

This commit is contained in:
Rob Rix 2019-09-27 19:42:37 -04:00
parent 9585226bb7
commit f03000a6fb
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -16,7 +16,6 @@ import Data.Term
import qualified Data.Text as T
import qualified Data.Vector as V
import Data.Text (pack)
import qualified Language.Python as Py
import Parsing.Parser
import Prologue
import Semantic.Api.Bridge
@ -83,7 +82,7 @@ parseSymbols blobs = do
renderToSymbols :: IsTaggable f => Term f Loc -> File
renderToSymbols term = tagsToFile (runTagging blob symbolsToSummarize term)
renderPreciseToSymbols :: Py.Term Loc -> File
renderPreciseToSymbols :: Precise.ToTags t => t Loc -> File
renderPreciseToSymbols term = tagsToFile (Precise.tags blobSource term)
tagsToFile :: [Tag] -> File