Branch: refs/heads/main
Revision: 3410e57
Author: arezaii
Link: Stringify refactor by arezaii · Pull Request #18877 · chapel-lang/chapel · GitHub
Log Message:
Merge pull request #18877 from arezaii/stringify-refactor
Stringify refactor
This PR refactors the majority of stringify
template specializations into
methods, also called stringify
, that replace the toString
and dump
methods. The purpose of this change is to improve
the traceability and debugging output of the new parser.
The work is described in Cray/chapel-private#2861, which
should be satisfied when this work is merged.
TESTING:
- [x] full paratest
- [x]
make libchplcomp
- [x]
make test-libchplcomp
Reviewed by @mppf, thanks!
Signed-off-by: arezaii ahmad.rezaii@hpe.com
Modified Files:
M compiler/AST/expr.cpp
M compiler/next/include/chpl/parsing/FileContents.h
M compiler/next/include/chpl/queries/Context-detail.h
M compiler/next/include/chpl/queries/ID.h
M compiler/next/include/chpl/queries/Location.h
M compiler/next/include/chpl/queries/UniqueString-detail.h
M compiler/next/include/chpl/queries/UniqueString.h
M compiler/next/include/chpl/queries/stringify-functions.h
M compiler/next/include/chpl/resolution/resolution-types.h
M compiler/next/include/chpl/resolution/scope-types.h
M compiler/next/include/chpl/types/BasicClassType.h
M compiler/next/include/chpl/types/ClassType.h
M compiler/next/include/chpl/types/ClassTypeDecorator.h
M compiler/next/include/chpl/types/CompositeType.h
M compiler/next/include/chpl/types/Param.h
M compiler/next/include/chpl/types/PrimitiveType.h
M compiler/next/include/chpl/types/QualifiedType.h
M compiler/next/include/chpl/types/RecordType.h
M compiler/next/include/chpl/types/TupleType.h
M compiler/next/include/chpl/types/Type.h
M compiler/next/include/chpl/types/UnionType.h
M compiler/next/include/chpl/uast/ASTNode.h
M compiler/next/include/chpl/uast/ASTTag.h
M compiler/next/include/chpl/uast/BuilderResult.h
M compiler/next/include/chpl/uast/Expression.h
M compiler/next/include/chpl/uast/Function.h
M compiler/next/lib/immediates/num.h
M compiler/next/lib/queries/ID.cpp
M compiler/next/lib/queries/UniqueString.cpp
M compiler/next/lib/resolution/resolution-types.cpp
M compiler/next/lib/types/ClassType.cpp
M compiler/next/lib/types/CompositeType.cpp
M compiler/next/lib/types/Param.cpp
M compiler/next/lib/types/PrimitiveType.cpp
M compiler/next/lib/types/QualifiedType.cpp
M compiler/next/lib/types/Type.cpp
M compiler/next/lib/uast/ASTNode.cpp
M compiler/next/test/parsing/testParseStringBytesLiterals.cpp
M compiler/next/test/parsing/testParsingQueries.cpp
M compiler/next/test/resolution/testInteractive.cpp
M compiler/next/test/resolution/testLocation.cpp
M compiler/next/test/resolution/testResolve.cpp
M compiler/next/test/uast/testVisit.cpp
M compiler/next/tools/chpldoc/chpldoc.cpp
M compiler/passes/convert-uast.cpp
M compiler/resolution/preFold.cpp
M doc/rst/meta/compiler-internals-doxygen/base.rst
Compare: https://github.com/chapel-lang/chapel/compare/1a96114d5502...3410e576ad9e