1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Add a default publicVisibility rule to PHP assignment

This commit is contained in:
Rick Winfrey 2018-12-17 18:25:01 -08:00
parent dd33a2c379
commit 542eeac0c3

View File

@ -445,8 +445,8 @@ classMemberDeclaration = choice [
]
-- TODO: What should the `location` be for implicit `public` visibility modifier?
publicVisibility = Assignment Term
publicVisibility = makeTerm <$> location <*> pure Declaration.Public
publicVisibility :: Assignment Term
publicVisibility = makeTerm <$> location <*> (Declaration.Public <$> emptyTerm)
methodDeclaration :: Assignment Term
methodDeclaration = (makeTerm <$> symbol MethodDeclaration <*> children (makeMethod1 <$> (visibilityModifier <|> publicVisibility) <*> manyTerm methodModifier <*> emptyTerm <*> functionDefinitionParts))