[Chapel Merge] dyno: more fixes to convert-uast for scope resolut

Branch: refs/heads/main
Revision: afc0e10
Author: benharsh
Link: Unavailable
Log Message:

Merge pull request #20750 from benharsh/misc-scope-resolve-2

dyno: more fixes to convert-uast for scope resolution

This PR includes several fixes for various --dyno failures:

  • Update scope-queries to recognize that sync-statements create a scope
  • Fix symbol conversion for task-variables that don't alias an existing variable
  • Fix for while-vars
  • Fix to avoid an internal error for with-clauses on foreach loops
  • For methods declared inside aggregates, use the aggregate's scope resolution map as the parent map

[reviewed-by @DanilaFe]

Modified Files:
M compiler/dyno/lib/resolution/scope-queries.cpp

M compiler/passes/convert-uast.cpp

Compare: https://github.com/chapel-lang/chapel/compare/6b99f96042c8...afc0e10f5900