[Chapel Merge] compiler/next: avoid public fields in *IdsWithName

Branch: refs/heads/main
Revision: 12d438e
Author: mppf
Log Message:

Merge pull request #18531 from mppf/next-pub-fields-3

compiler/next: avoid public fields in *IdsWithName and Scope
Following #18516 and #18528, this PR continues updates to the
compiler/next source code to avoid using public fields in types that form
part of the public API.

This PR adjusts OwnedIdsWithName, BorrowedIdsWithName, and Scope to avoid
public fields.

Reviewed by @dlongnecke-cray - thanks!

  • [x] full local testing

    Modified Files:
    A compiler/next/lib/resolution/scope-help.h
    M compiler/next/include/chpl/resolution/scope-types.h
    M compiler/next/lib/resolution/resolution-queries.cpp
    M compiler/next/lib/resolution/scope-queries.cpp
    M compiler/next/lib/resolution/scope-types.cpp
    M compiler/next/test/resolution/testScopeResolve.cpp

    Compare: Comparing ee28a82312c9...12d438e7eb63 · chapel-lang/chapel · GitHub