Description
There is a signature mismatch between the declaration and definition of Luau::prettyPrint.
In Ast/include/Luau/PrettyPrinter.h, the function is declared as accepting a single argument:
std::string prettyPrint(AstStatBlock& ast);
However, in Ast/src/PrettyPrinter.cpp, the definition requires two arguments:
std::string prettyPrint(AstStatBlock& block, const CstNodeMap& cstNodeMap)
{
// ... implementation
}
Expected behavior
The header declaration should match the source definition, preferably allowing cstNodeMap to be optional via a default argument or function overloading.
Description
There is a signature mismatch between the declaration and definition of
Luau::prettyPrint.In
Ast/include/Luau/PrettyPrinter.h, the function is declared as accepting a single argument:std::string prettyPrint(AstStatBlock& ast);However, in
Ast/src/PrettyPrinter.cpp, the definition requires two arguments:Expected behavior
The header declaration should match the source definition, preferably allowing
cstNodeMapto be optional via a default argument or function overloading.