Skip to content

Commit 5fd5544

Browse files
committed
Remove preserveConcreteSyntax parameter from Prism translate
this was intended as a temporary placeholder and has been superceded by an instance variable
1 parent 1276be9 commit 5fd5544

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parser/prism/Translator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ unique_ptr<parser::Node> Translator::translateSendAssignment(pm_node_t *node, co
878878
move(lhs));
879879
}
880880

881-
unique_ptr<parser::Node> Translator::translate(pm_node_t *node, bool preserveConcreteSyntax) {
881+
unique_ptr<parser::Node> Translator::translate(pm_node_t *node) {
882882
if (node == nullptr)
883883
return nullptr;
884884

parser/prism/Translator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Translator final {
6060
desugarUniqueCounter(this->desugarUniqueCounterStorage) {}
6161

6262
// Translates the given AST from Prism's node types into the equivalent AST in Sorbet's legacy parser node types.
63-
std::unique_ptr<parser::Node> translate(pm_node_t *node, bool preserveConcreteSyntax = false);
63+
std::unique_ptr<parser::Node> translate(pm_node_t *node);
6464

6565
private:
6666
// This private constructor is used for creating child translators with modified context.

0 commit comments

Comments
 (0)