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

feat!: add support for namespaced functions #343

Merged
merged 8 commits into from
May 16, 2024
Merged

Conversation

martinohmann
Copy link
Owner

Closes #335

This adds support for namespaced HCL function calls. The PR includes updates to the HCL parser (hcl-edit), formatter (hcl-rs), evaluation context (hcl-rs), encoder (hcl-edit) and visitors (hcl-edit).

BREAKING CHANGE: The ident field of hcl_edit::expr::FuncCall was renamed to name. Its type changed from Decorated<Ident> to FuncName. The type of hcl::expr::FuncCall's name field changed from Identifier to FuncName. Various other places in the codebase that previously used bare identifiers as type now use FuncName to accommodate the change.

@martinohmann martinohmann merged commit 9a46a4c into main May 16, 2024
5 checks passed
@martinohmann martinohmann deleted the namespaced-functions branch May 16, 2024 14:44
@github-actions github-actions bot mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Namespaced functions
1 participant