fn isObjectKeyExpected(self: *const Stringify) ?bool self: *const Stringify202
203
204
205
206
207
208
209fn isObjectKeyExpected(self: *const Stringify) ?bool {
switch (safety_checks) {
.checked_to_fixed_depth => return self.indent_level > 0 and
BitStack.peekWithState(&self.nesting_stack, self.indent_level) == @backingInt(IndentationMode.object) and
self.next_punctuation != .colon,
.assumed_correct => return null,
}
}
Only when safety is enabled: