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

Reformat the AssignmentParser constructor.

This commit is contained in:
Rob Rix 2017-05-19 13:44:35 -04:00
parent 55bcf68ba1
commit 933512afcf

View File

@ -24,7 +24,10 @@ import TreeSitter
data Parser term where data Parser term where
ASTParser :: (Bounded grammar, Enum grammar) => Ptr TS.Language -> Parser (AST grammar) ASTParser :: (Bounded grammar, Enum grammar) => Ptr TS.Language -> Parser (AST grammar)
AssignmentParser :: (Bounded grammar, Enum grammar, Eq grammar, Symbol grammar, Functor (Union fs)) => Parser (AST grammar) -> Assignment (Node grammar) (Term (Union fs) Location) -> Parser (Term (Union (Syntax.Error [Error grammar] ': fs)) Location) AssignmentParser :: (Bounded grammar, Enum grammar, Eq grammar, Symbol grammar, Functor (Union fs))
=> Parser (AST grammar)
-> Assignment (Node grammar) (Term (Union fs) Location)
-> Parser (Term (Union (Syntax.Error [Error grammar] ': fs)) Location)
CParser :: Parser (SyntaxTerm Text DefaultFields) CParser :: Parser (SyntaxTerm Text DefaultFields)
GoParser :: Parser (SyntaxTerm Text DefaultFields) GoParser :: Parser (SyntaxTerm Text DefaultFields)
MarkdownParser :: Parser (SyntaxTerm Text DefaultFields) MarkdownParser :: Parser (SyntaxTerm Text DefaultFields)