1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Bypass serialize and call into the s-expression serialization code directly.

This commit is contained in:
Rob Rix 2019-10-03 12:45:16 -04:00
parent 867a65c575
commit e1a18eeb05
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -33,6 +33,7 @@ import Semantic.Proto.SemanticPB hiding (Blob)
import Semantic.Task
import Serializing.Format hiding (JSON)
import qualified Serializing.Format as Format
import qualified Serializing.SExpression as SExpr
import Source.Loc
import qualified Language.Java as Java
@ -109,7 +110,7 @@ class SExprTerm term where
sexprTerm :: (Carrier sig m, Member (Reader Config) sig) => term Loc -> m Builder
instance (ConstructorName syntax, Foldable syntax, Functor syntax) => SExprTerm (Term syntax) where
sexprTerm = serialize (SExpression ByConstructorName)
sexprTerm = pure . SExpr.serializeSExpression ByConstructorName
dotGraphTermParsers :: Map Language (SomeParser DOTGraphTerm Loc)