File tree 3 files changed +7
-23
lines changed
3 files changed +7
-23
lines changed Original file line number Diff line number Diff line change @@ -1027,9 +1027,6 @@ class parser {
1027
1027
really_inline error_code on_error (error_code new_error_code) noexcept ; // /< @private
1028
1028
really_inline error_code on_success (error_code success_code) noexcept ; // /< @private
1029
1029
// TODO we're not checking this bool
1030
- really_inline bool on_end_document (uint32_t start_tape_index) noexcept ; // /< @private
1031
- really_inline bool on_end_object (uint32_t start_tape_index) noexcept ; // /< @private
1032
- really_inline bool on_end_array (uint32_t start_tape_index) noexcept ; // /< @private
1033
1030
really_inline bool on_true_atom () noexcept ; // /< @private
1034
1031
really_inline bool on_false_atom () noexcept ; // /< @private
1035
1032
really_inline bool on_null_atom () noexcept ; // /< @private
Original file line number Diff line number Diff line change @@ -27,23 +27,6 @@ really_inline error_code parser::on_success(error_code success_code) noexcept {
27
27
return success_code;
28
28
}
29
29
30
- // TODO we're not checking this bool
31
- really_inline bool parser::on_end_document (uint32_t start_tape_index) noexcept {
32
- // write our doc.tape location to the header scope
33
- // The root scope gets written *at* the previous location.
34
- write_tape (start_tape_index, internal::tape_type::ROOT);
35
- return true ;
36
- }
37
- really_inline bool parser::on_end_object (uint32_t start_tape_index) noexcept {
38
- // write our doc.tape location to the header scope
39
- write_tape (start_tape_index, internal::tape_type::END_OBJECT);
40
- return true ;
41
- }
42
- really_inline bool parser::on_end_array (uint32_t start_tape_index) noexcept {
43
- // write our doc.tape location to the header scope
44
- write_tape (start_tape_index, internal::tape_type::END_ARRAY);
45
- return true ;
46
- }
47
30
48
31
really_inline bool parser::on_true_atom () noexcept {
49
32
write_tape (0 , internal::tape_type::TRUE_VALUE);
Original file line number Diff line number Diff line change @@ -165,19 +165,23 @@ struct structural_parser {
165
165
166
166
really_inline bool end_object () {
167
167
depth--;
168
- doc_parser.on_end_object (doc_parser.containing_scope [depth].tape_index );
168
+ // write our doc.tape location to the header scope
169
+ doc_parser.write_tape (doc_parser.containing_scope [depth].tape_index , internal::tape_type::END_OBJECT);
169
170
end_scope ();
170
171
return false ;
171
172
}
172
173
really_inline bool end_array () {
173
174
depth--;
174
- doc_parser.on_end_array (doc_parser.containing_scope [depth].tape_index );
175
+ // write our doc.tape location to the header scope
176
+ doc_parser.write_tape (doc_parser.containing_scope [depth].tape_index , internal::tape_type::END_ARRAY);
175
177
end_scope ();
176
178
return false ;
177
179
}
178
180
really_inline bool end_document () {
179
181
depth--;
180
- doc_parser.on_end_document (doc_parser.containing_scope [depth].tape_index );
182
+ // write our doc.tape location to the header scope
183
+ // The root scope gets written *at* the previous location.
184
+ doc_parser.write_tape (doc_parser.containing_scope [depth].tape_index , internal::tape_type::ROOT);
181
185
end_scope ();
182
186
return false ;
183
187
}
You can’t perform that action at this time.
0 commit comments