File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -118,17 +118,6 @@ ExpressionPtr takeDesugaredExprOrEmptyTree(const std::unique_ptr<parser::Node> &
118118 return node->takeDesugaredExpr ();
119119}
120120
121- // Helper template to convert nodes to any store type with takeDesugaredExpr or EmptyTree for nulls.
122- // This is used to convert a NodeVec to the store type argument for nodes including `Send`, `InsSeq`.
123- template <typename StoreType> StoreType nodeVecToStore (const sorbet::parser::NodeVec &nodes) {
124- StoreType store;
125- store.reserve (nodes.size ());
126- for (const auto &node : nodes) {
127- store.emplace_back (takeDesugaredExprOrEmptyTree (node));
128- }
129- return store;
130- }
131-
132121// Helper template to convert a pm_node_list to any store type.
133122// This is used to convert prism node lists to store types like ast::Array::ENTRY_store,
134123// ast::Send::ARGS_store, ast::InsSeq::STATS_store, etc.
You can’t perform that action at this time.
0 commit comments