i have broken down this PR into two commits, which each add a subset of the grammar. The first adds capability lists to functions, lambdas, anonymous functions and function types. The next adds constant context variables to classes and interfaces.
Requirements (place an x in each [ ])
[x] I've added tests for any new code and ran npm run test-corpus to make sure all tests pass.
[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
Summary
fixes #47 See https://docs.hhvm.com/hack/contexts-and-capabilities/context-constants for more information.
i have broken down this PR into two commits, which each add a subset of the grammar. The first adds capability lists to functions, lambdas, anonymous functions and function types. The next adds constant context variables to classes and interfaces.
Requirements (place an
x
in each[ ]
)npm run test-corpus
to make sure all tests pass.