mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
More OPA conformant semantics (#62)
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
8a73b4bef9
commit
73ee18f002
@@ -569,12 +569,14 @@ fn match_rule(r: &Rule, v: &Value) -> Result<()> {
|
||||
Rule::Default {
|
||||
span,
|
||||
refr,
|
||||
args,
|
||||
op,
|
||||
value,
|
||||
} => {
|
||||
let obj = &v["default"];
|
||||
match_span_opt(span, &obj["span"])?;
|
||||
match_expr(refr, &obj["refr"])?;
|
||||
match_vec(span /*dummy*/, args, &obj["args"])?;
|
||||
match_assign_op(span, op, &obj["op"])?;
|
||||
match_expr(value, &obj["value"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user