Restore support for parsing Variant::NIL and handling related cases in VariantParser#1276
Restore support for parsing Variant::NIL and handling related cases in VariantParser#1276Arctis-Fireblight wants to merge 1 commit into
Variant::NIL and handling related cases in VariantParser#1276Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Walkthrough
ChangesVariant::NIL parsing support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| Error err = get_token(p_stream, token, line, r_err_str); | ||
| if (err) { | ||
| return err; | ||
| } |
There was a problem hiding this comment.
It's moments like this that make me wish for or_return in C and C++
There was a problem hiding this comment.
That would be really nice ;-;
Variant::NIL and handling related cases in VariantParserVariant::NIL and handling related cases in VariantParser
…`VariantParser` - Implemented parsing logic for `Variant::NIL` and error handling for invalid constants. - Added tests to validate `Variant::NIL`, `null`, and `nil` parsing, including regression cases. - Improved security gating for object parsing with `p_allow_objects`. - Enhanced `str_to_var` to support `Variant::NIL`.
d98b24c to
aadd319
Compare
Fixes #1275
Variant::NILand error handling for invalid constants.Variant::NIL,null, andnilparsing, including regression cases.p_allow_objects.str_to_varto supportVariant::NIL.Summary by CodeRabbit
Variant::NILusingVariant::NILsyntax.nullandnil) as valid inputs.Variant::NILparsing still succeeds even when object parsing is disabled.Variant::...expressions.Variant::NILparsing and expected failure scenarios, plus a regression check via string-to-variant conversion.