Skip to content

Commit

Permalink
deploy: dda486c
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Dec 24, 2023
1 parent ea53289 commit b6d56e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Binary file modified bin/windows/contrib/4.3/StanEstimators_0.0.0.9000.zip
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions inst/include/rapidjson/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ class GenericReader {
const typename TargetEncoding::Ch* const str = stackStream.Pop();
Rcpp::Rcout << "f423.9.5.6.1.9" << std::endl;
Rcpp::Rcout << isKey << std::endl;
Rcpp::Rcout << length << std::endl;
success = (isKey ? handler.Key(str, length, true) : handler.String(str, length, true));
Rcpp::Rcout << "f423.9.5.6.1.10" << std::endl;
}
Expand Down
5 changes: 5 additions & 0 deletions inst/include/stan/io/json/json_data_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,13 +457,17 @@ class json_data_handler : public stan::json::json_handler {
* but we still need to track the number of tuple slots.
*/
void key(const std::string& key) {
Rcpp::Rcout << "f423.9.5.6.1.9.1" << std::endl;
if (event != meta_event::OBJ_OPEN) {
Rcpp::Rcout << "f423.9.5.6.1.9.2" << std::endl;
save_key_value_pair();
}
Rcpp::Rcout << "f423.9.5.6.1.9.3" << std::endl;
event = meta_event::KEY;
reset_values();
std::string outer = key_str();
key_stack.push_back(key);
Rcpp::Rcout << "f423.9.5.6.1.9.4" << std::endl;
if (key_stack.size() == 1) {
not_stan_var = !valid_varname(key);
}
Expand All @@ -481,6 +485,7 @@ class json_data_handler : public stan::json::json_handler {
tuple_slots_map[outer].slots_acc++;
}
}
Rcpp::Rcout << "f423.9.5.6.1.9.5" << std::endl;
std::string vname = key_str();
if (slot_types_map.count(vname) == 0) {
slot_types_map[vname] = meta_type::SCALAR;
Expand Down

0 comments on commit b6d56e1

Please sign in to comment.