Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for internal visibility modifier #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andryak
Copy link
Contributor

@andryak andryak commented Mar 21, 2024

Summary

Modern Hacklang introduced modules and the internal visibility modifier to mark methods and functions as only accessible from within the current module.

The Hacklang treesitter grammar doesn't support the internal visibility modifier yet. This diff addresses it.


Grammar tests pass:

tree-sitter generate
tree-sitter test

Requirements (place an x in each [ ])

  • I've added tests for any new code and ran npm run test-corpus to make sure all tests pass.
  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.

Summary:
Modern Hacklang introduced modules and the internal visibility modifier
to mark methods and functions as only accessible from within the current
module.

The Hacklang treesitter grammar doesn't support the internal visibility
modifier yet. This diff addresses it.

Test Plan:

Grammar tests pass:
```
tree-sitter generate
tree-sitter test
```

Reviewers:

Subscribers:

Tasks:

Tags:
@andryak andryak force-pushed the internal_visibility_modifier branch from c7a78c7 to 0ee82f6 Compare March 21, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant