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:
parent
dd33a2c379
commit
542eeac0c3
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user