Add builtin prelude for List/Array/Map #75
Loading…
Reference in a new issue
No description provided.
Delete branch "us72/map-list-array-builtins"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #72.
fn_declonly ever searched the checked file's ownScope::source, so usingList/Array/Maprequired redeclaring them in every file - no way to use the container-literal sugar without that boilerplate.crates/twill-check/prelude/prelude.tw, a real.twsource with theList/Array/Mapdeclarations,include_str!'d in.prelude_source(queries.rs): a zero-argument#[salsa::tracked]query so the sameSourceFile(and its memoizedlower/fn_declresults) is reused across calls in a revision.resolve_fn_decl(ty.rs): triesscope.sourcefirst, falls back toprelude_source(db).evaluate_generic_call's singlefn_declcall site now goes through this instead.check_map_literaltests that previously assertedNonefor an undeclaredMap- now correctly resolve via the prelude.