1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Fix up trait use clauses

This commit is contained in:
joshvera 2018-01-30 16:52:08 -05:00
parent 099ebb600a
commit d70544c3a1

View File

@ -664,10 +664,10 @@ traitSelectAndAliasClause :: Assignment
traitSelectAndAliasClause = traitSelectInsteadOfClause <|> traitAliasAsClause
traitSelectInsteadOfClause :: Assignment
traitSelectInsteadOfClause = makeTerm <$> symbol TraitSelectInsteadOfClause <*> children (Syntax.InsteadOf <$> term name <*> term name)
traitSelectInsteadOfClause = makeTerm <$> symbol TraitSelectInsteadOfClause <*> children (Syntax.InsteadOf <$> term (classConstantAccessExpression <|> name) <*> term name)
traitAliasAsClause :: Assignment
traitAliasAsClause = makeTerm <$> symbol TraitAliasAsClause <*> children (Syntax.AliasAs <$> term name <*> (term visibilityModifier <|> emptyTerm) <*> (term name <|> emptyTerm))
traitAliasAsClause = makeTerm <$> symbol TraitAliasAsClause <*> children (Syntax.AliasAs <$> term (classConstantAccessExpression <|> name) <*> (term visibilityModifier <|> emptyTerm) <*> (term name <|> emptyTerm))
namespaceDefinition :: Assignment
namespaceDefinition = makeTerm <$> symbol NamespaceDefinition <*> children (Syntax.Namespace <$> (term name <|> emptyTerm) <*> (term compoundStatement <|> emptyTerm))