1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Assign infix constructor identifiers

This commit is contained in:
Rick Winfrey 2018-06-20 14:31:38 -07:00
parent 7e9847489c
commit aad0bd3210
2 changed files with 5 additions and 0 deletions

View File

@ -307,6 +307,7 @@ expressionChoices = [
, implicitParameterIdentifier
, importAlias
, importDeclaration
, infixConstructorIdentifier
, infixOperatorApp
, infixOperatorPattern
, infixVariableIdentifier
@ -498,6 +499,9 @@ importSpec = symbol ImportSpec *> children (manyTerm import')
inClause :: Assignment
inClause = symbol InClause *> children expressions
infixConstructorIdentifier :: Assignment
infixConstructorIdentifier = makeTerm <$> symbol InfixConstructorIdentifier <*> children (Syntax.InfixConstructorIdentifier . Name.name <$> source)
infixOperatorApp :: Assignment
infixOperatorApp = makeTerm <$> symbol InfixOperatorApplication <*> children (Syntax.InfixOperatorApp <$> expression <*> (typeApp <|> emptyTerm) <*> expression <*> (expression <|> emptyTerm))

View File

@ -353,6 +353,7 @@ data EntityIdentifier a = TypeVariableIdentifier Name
| ModuleIdentifier Name
| ConstructorIdentifier Name
| ImplicitParameterIdentifier Name
| InfixConstructorIdentifier Name
| InfixVariableIdentifier Name
| TypeClassIdentifier Name
| VariableIdentifier Name