Skip to main content

Module checking

Module checking 

Source
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§

AdamCheckingEnvironment
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.