feat: Implement Rego else block compilation

- teach the Rego compiler to compile else chains correctly
- test suite

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2025-12-05 12:26:26 -06:00
parent a232b13e50
commit 9fa8036ce4
3 changed files with 154 additions and 15 deletions
+1 -2
View File
@@ -26,7 +26,6 @@ const OPA_TODO_FOLDERS: &[&str] = &[
"baseandvirtualdocs",
"dataderef",
"defaultkeyword",
"elsekeyword",
"every",
"fix1863",
"functions",
@@ -34,7 +33,7 @@ const OPA_TODO_FOLDERS: &[&str] = &[
"partialobjectdoc",
"planner-ir",
"refheads",
"virtualdocs",
"type",
"walkbuiltin",
// RVM Compiler does not support 'with' keyword yet.
"withkeyword",