Check Array Paramter #38

Merged
Christoph merged 2 commits from #150 into main 2026-09-10 08:29:23 +00:00
Owner

Now you get the hints for the paramter from the array

Now you get the hints for the paramter from the array
Christoph added 2 commits 2026-09-10 07:13:09 +00:00
The generated event handler snippet now declares the proc with an args block.
This enables parameters to be referenced within the handler body.
The change makes the snippet compatible with events that pass arguments.

- Include an args block in the proc declaration for event handlers.
This adds tooling to statically extract Tcl variable names from syntax
trees without evaluating substitutions, enabling better completions
for array elements and plain variables. The new helpers are wired
into the completion and navigation flows and are supported by tests
covering array keys and substitutions.

- Introduce variable_names.py with variable_name() and array_key_parts()
- Wire static name extraction into completion and symbol indexing
- Add tests for array key completion with substitutions
Christoph merged commit 91c8c4aff3 into main 2026-09-10 08:29:23 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Christoph/nx_post_support#38