[Chapel Merge] next: Add VarLikeDecl as a parent class of Formals

Branch: refs/heads/master
Revision: 4893c18
Author: dlongnecke-cray
Log Message:

Merge pull request #17799 from dlongnecke-cray/next-reorganize-variables

next: Add VarLikeDecl as a parent class of Formals and Variables

This PR adds an abstract AST node called VarLikeDecl that is the
parent class of anything that is "variable-like", such as formals,
fields, or variables.

Reviewed by @e-kayrakli. Thanks!

TESTING:

  • [x] All compiler/next tests pass

Signed-off-by: David Longnecker dlongnecke-cray@users.noreply.github.com

Modified Files:
A compiler/next/include/chpl/uast/VarLikeDecl.h

A compiler/next/lib/uast/VarLikeDecl.cpp
M compiler/next/include/chpl/uast/ASTClassesList.h
M compiler/next/include/chpl/uast/Formal.h
M compiler/next/include/chpl/uast/Variable.h
M compiler/next/lib/uast/CMakeLists.txt
M compiler/next/lib/uast/Formal.cpp
M compiler/next/lib/uast/Variable.cpp

Compare: https://github.com/chapel-lang/chapel/compare/7ae792c400fc...4893c18e9d0c