1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 17:32:05 +03:00

Rename precisePythonParser to pythonParserPrecise.

This commit is contained in:
Rob Rix 2019-10-02 14:10:59 -04:00
parent 1a1cdc9acb
commit ecd283ac43
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -170,8 +170,8 @@ markdownParser :: Parser Markdown.Term
markdownParser = AssignmentParser MarkdownParser Markdown.assignment
precisePythonParser :: Parser (Py.Term Loc)
precisePythonParser = UnmarshalParser tree_sitter_python
pythonParserPrecise :: Parser (Py.Term Loc)
pythonParserPrecise = UnmarshalParser tree_sitter_python
-- | A parser for producing specialized (tree-sitter) ASTs.
@ -228,12 +228,12 @@ pythonParserALaCarte' :: c (Term (Sum Python.Syntax)) => (Language, SomeParser c
pythonParserALaCarte' = (Python, SomeParser pythonParser)
pythonParserPrecise' :: c Py.Term => (Language, SomeParser c Loc)
pythonParserPrecise' = (Python, SomeParser precisePythonParser)
pythonParserPrecise' = (Python, SomeParser pythonParserPrecise)
pythonParser' :: (c (Term (Sum Python.Syntax)), c Py.Term) => PerLanguageModes -> (Language, SomeParser c Loc)
pythonParser' modes = case pythonMode modes of
ALaCarte -> (Python, SomeParser pythonParser)
Precise -> (Python, SomeParser precisePythonParser)
Precise -> (Python, SomeParser pythonParserPrecise)
rubyParser' :: c (Term (Sum Ruby.Syntax)) => (Language, SomeParser c Loc)
rubyParser' = (Ruby, SomeParser rubyParser)