Expand description
Checks Adam syntax with a callback-free CEL environment.
use adam_lang::{AdamAstParser, TypeRegistry, checking_environment, check_sheet_with_environment};
use cel_parser::checking::MetadataAvailability;
let environment = checking_environment(&TypeRegistry::new(), &cel_parser::OpLookup::new())?;
let sheet = AdamAstParser::new().parse_str("sheet app { cell x: i32; }")?;
let report = check_sheet_with_environment(&sheet, &environment, MetadataAvailability::Complete);
assert!(report.diagnostics.is_empty() && report.incomplete.is_empty());Modules§
- metadata
- Exports and imports an application’s whole, callback-free checking environment.
Structs§
- Adam
Checking Environment - Owns CEL checking facts and explicit Adam-registered storage leaves.
Functions§
- check_
sheet_ with_ environment - Checks every authored body and guard dependency without lowering executable code.
- checking_
environment - Projects the effective runtime registrations without invoking application callbacks.
- checking_
environment_ with_ binding - Projects the effective registrations together with an explicit native catalog binding.