carloea2 opened a new pull request, #8324:
URL: https://github.com/apache/texera/pull/8324

   ### What changes were proposed in this PR?
   
   Add lexical-scope indexing and structured control-flow traversal for 
complete Python statements. The analysis derives deterministic control routes 
for branching, loops, exceptions, context managers, and nested lexical scopes 
while keeping rendering concerns outside the analysis layer.
   
   This draft is stacked on #8323. Review this PR's control/scope commit after 
the preceding drafts; its branch will be rebased as the stack lands.
   
   ### Any related issues, documentation, discussions?
   
   Related to #8319, #8322, #8323, and discussion #8160.
   
   ### How was this PR tested?
   
   ```powershell
   python -m pytest 
py2udf/src/test/python/python_to_workflow/mosaic/test_controlwalk.py -q
   python -m ruff check 
py2udf/src/main/python/python_to_workflow/mosaic/analysis 
py2udf/src/test/python/python_to_workflow/mosaic/test_controlwalk.py
   python -m ruff format --check 
py2udf/src/main/python/python_to_workflow/mosaic/analysis 
py2udf/src/test/python/python_to_workflow/mosaic/test_controlwalk.py
   ```
   
   Result: 2 tests passed; Ruff checks passed.
   
   The parameterized cases cover nested branching, loops, exceptions, context 
managers, abrupt completion, and lexical-scope boundaries.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-5)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to