pub fn compile(expr: &Expr, context: &dyn StaticContext) -> Result<CompiledExpr>Expand description
Compiles an expression in a static context.
ยงErrors
XPST0008 for a variable not in scope, XPST0017 for an unknown function or arity,
XTDE1390 for an invalid system-property name, ErrorCode::Unsupported for a
function of the specifications that is not implemented or a literal out of range.