Skip to content

feat!: add support for namespaced functions#343

Merged
martinohmann merged 8 commits intomainfrom
namespaced-functions
May 16, 2024
Merged

feat!: add support for namespaced functions#343
martinohmann merged 8 commits intomainfrom
namespaced-functions

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
@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