crates.sage_ir.modules.parse.dependencies

The parse query depends only on parse inputs. Parsing one module may read its source, scope, edition, compilation configuration, and generated parse source, but never resolved names, checked interfaces, bodies of other items, or trait results.

Read in specification context · design/crates/sage_ir/modules.sage

Implementation

Implemented crates/sage-ir/src/local_syms/mods.rs:67–72

sage_ir::local_syms::mods · lib:sage_ir

#![allow(unused)]
fn main() {
    // {anchor}`crates.sage_ir.modules.parse.dependencies`
    pub fn unexpanded_items(self, db: &'db dyn Db) -> &'db [LocalModItemSym<'db>] {
        unexpanded_items(db, self)
    }
}


}

See more source ↗

Implemented crates/sage-ir/src/parse/attrs.rs:1–6

sage_ir::parse::attrs · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
// {anchor}`crates.sage_test_harness.compile_tests.project_isolation`
// {anchor}`crates.sage_test_harness.compile_tests.fixtures`
use sage_stash::{Slice, Stash};

use crate::cst::attrs::{AttrCst, AttrCstKind};

}

See more source ↗

Implemented crates/sage-ir/src/parse/exprs.rs:1–6

sage_ir::parse::exprs · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
// {anchor}`crates.sage_test_harness.compile_tests.production_execution`
use sage_stash::{Ptr, Stash};

use crate::cst::Mutability;
use crate::cst::expr::*;

}

See more source ↗

Implemented crates/sage-ir/src/parse/generics.rs:1–6

sage_ir::parse::generics · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
use sage_stash::{Slice, Stash};

use crate::cst::generics::{GenericParamCst, TypeBoundCst};
use crate::cst::where_clause::WhereClauseCst;
use crate::name::Name;

}

See more source ↗

Implemented crates/sage-ir/src/parse/items.rs:2–7

sage_ir::parse::items · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
// {anchor}`crates.sage_test_harness.compile_tests.fixtures`
// {anchor}`crates.sage_test_harness.compile_tests.checking_scope`
use sage_stash::{Ptr, Stash, Stashed};

use crate::cst::consts::{ConstCst, ConstCstData};

}

See more source ↗

Implemented crates/sage-ir/src/parse/paths.rs:1–6

sage_ir::parse::paths · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
use sage_stash::{Ptr, Slice, Stash};

use crate::cst::paths::{Path, PathAnchor, PathAnchorKind, PathSegment};
use crate::cst::ty::TypeCst;
use crate::name::Name;

}

See more source ↗

Implemented crates/sage-ir/src/parse/types.rs:1–6

sage_ir::parse::types · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
use sage_stash::{Ptr, Stash};

use crate::cst::Mutability;
use crate::cst::ty::{TypeCst, TypeCstKind};
use crate::span::RelativeSpan;

}

See more source ↗

Implemented crates/sage-ir/src/parse/util.rs:1–6

sage_ir::parse::util · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
use crate::Db;
use crate::name::Name;
use crate::span::{AbsoluteSpan, ParseSource, RelativeSpan};

pub(super) fn node_field_text<'a>(

}

See more source ↗

Implemented crates/sage-ir/src/parse/mod.rs:29–34

sage_ir::parse · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_ir.modules.parse.dependencies`
// {anchor}`crates.sage_ir.modules.expand.direct_members`
pub fn parse_str_to_cst<'db>(
    db: &'db dyn Db,
    source: ParseSource<'db>,
    text: &str,

}

See more source ↗

Tests and review

Indexed tests and the implementation-completeness and test-adequacy review; no test run is implied.

TODO sage_meta::todo::modules_parse_dependencies

crates/sage-meta/tests/semantic_spec.rs · test:semantic_spec

#![allow(unused)]
fn main() {
#[test]
    #[sage::test(crates.sage_ir.modules.parse.dependencies)]
    fn modules_parse_dependencies() {
        // TODO: Complete the claim-specific verification matrix:
        // A cold parse trace names only those inputs, an unchanged warm request executes no parse work,
        // and edits to semantic facts that do not change parse inputs leave the parse result reusable.
    }
}

See more source ↗

Review: Accepted · Codex /root/macro_fix_expand_deps.

Reviewed the complete parse.dependencies claim, all nine implementation entries, and the complete associated test set. Allowed dependencies are source, scope, edition, compilation configuration and generated parse source. Forbidden dependencies are resolved names, checked interfaces, other items' bodies and trait results. The changed local_syms/mods.rs still has a narrow unexpanded_items query: file-backed modules read SourceFile text and scope and call parse_str_to_cst; inline modules receive their parsed children through specify. Expansion/completeness and the now-public symbol_local_item helper share this source file but are not demanded by this parsing path.

parse/mod.rs constructs a Parser from db/source/text/scope and dispatches tree-sitter syntax children. parse/items.rs constructs item identities and CST, reads edition through the owning scope, and consults registered source paths for child modules. Inline child parsing uses the same source with a child scope. These are permitted parse inputs; no resolver or signature query is invoked. Syntax parsing of a function body here is parsing the current module's source, not reading a checked body or another item's semantic body result. parse/attrs.rs reads only syntax plus Configuration.cfgs to evaluate cfg and static inert-attribute classifications. parse/exprs.rs constructs expression/pattern CST and interns literal/name spellings; parse/generics.rs constructs generic bounds/default/where syntax; parse/paths.rs stores path segments/anchors/type arguments without resolution; parse/types.rs constructs type syntax and explicit unsupported/error nodes without lowering semantic types; parse/util.rs interns names and computes relative/absolute source spans. Searches of database/scope call sites and semantic-query calls in these captured parser files found no name resolution, checked signature/body or trait solver demand.

Captured extra dependencies establish that ScopeSymbol lookup walks ownership/edition fields, Name is a text interner, SourceFile is a text/path input, macro token extraction helpers only slice syntax text, and inert attribute helpers use fixed string classification. The Db interface and Database implementation show cfgs as an input and source_file as lookup of registered SourceFile handles. Thus those helper calls do not conceal semantic demand. Macro definitions/invocations are parsed as tokens/paths; selected expansion text is a supplied parse input, not resolved by the parser.

The only associated test is todo::modules_parse_dependencies. Its body explicitly defers a cold input trace, a warm unchanged request with no parse execution, and semantic-only edits preserving parse reuse. It contains no executable assertions, and this report does not call it coverage. Those guarantees require incremental request/edit fixtures and query-event assertions; source inspection alone cannot prove non-execution/backdating across revisions. Retaining this explicit TODO is justified and preserves the verification gap. There are no N/A entries or other associated tests. This review ran review start/read commands only, not behavioral tests, and made no production changes. All current claim aspects are accounted for by inspected implementation plus the visible deferred trace matrix; no new violation or requested edit was found.

Browse crates anchors

139 anchors

Specification anchors and declared coverage
AnchorImplementationTests
crates (139)114 Implemented37 TODO2 N/A74 Implemented107 TODO
crates.sage_inspector (15)13 Implemented1 TODO2 N/A3 Implemented15 TODO
crates.sage_inspector.inspection (15)13 Implemented1 TODO2 N/A3 Implemented15 TODO
balanced_tracesImplementedTODO
canonical_ownershipImplementedImplementedTODO
derive_reflectionImplementedImplementedTODO
detail_free_indexImplementedTODO
deterministic_traceImplementedTODO
durable_navigationN/ATODO
generic_browserN/ATODO
owned_reflectionImplementedImplementedTODO
product_availabilityImplementedTODO
revision_and_demandImplementedTODO
semantic_phase_boundaryImplementedTODO
source_evidenceImplementedTODO
typed_serviceImplementedTODO
unknown_workImplementedTODOTODO
workspace_actorImplementedTODO
crates.sage_ir (90)67 Implemented34 TODO40 Implemented88 TODO
crates.sage_ir.checking (12)12 Implemented3 TODO5 Implemented12 TODO
crates.sage_ir.checking.body (5)5 Implemented2 TODO3 Implemented5 TODO
elaborationImplementedImplementedTODO
expected_typesImplementedTODOTODO
interface_dependenciesImplementedImplementedTODO
isolated_completionImplementedImplementedTODO
operator_callsImplementedTODOTODO
identity_mintingImplementedTODO
owned_productsImplementedImplementedTODO
crates.sage_ir.checking.signature (4)4 Implemented1 TODO1 Implemented4 TODO
body_independenceImplementedTODO
narrow_detailImplementedTODOTODO
owner_binderImplementedImplementedTODO
storageImplementedTODO
symbol_keyed_interfacesImplementedTODO
crates.sage_ir.crate (9)9 TODO9 TODO
explicit_restrictionsTODOTODO
identity_before_detailTODOTODO
incremental_evidenceTODOTODO
narrow_demandsTODOTODO
reexecution_and_invalidationTODOTODO
represented_completenessTODOTODO
restrictions_and_gapsTODOTODO
semantic_query_boundariesTODOTODO
terminal_incompletenessTODOTODO
crates.sage_ir.inference (8)8 Implemented6 Implemented8 TODO
atomic_checkingImplementedImplementedTODO
body_local_quiescenceImplementedImplementedTODO
canonical_boundaryImplementedImplementedTODO
completed_body_boundaryImplementedTODO
numeric_domainsImplementedImplementedTODO
subtyping_and_coercionImplementedImplementedTODO
terminal_obligationsImplementedTODO
transaction_isolationImplementedImplementedTODO
crates.sage_ir.metadata (4)4 Implemented1 TODO4 TODO
explicit_incompletenessImplementedTODO
keyed_reuseImplementedTODOTODO
product_boundariesImplementedTODO
provider_authorityImplementedTODO
crates.sage_ir.modules (8)7 Implemented1 TODO4 Implemented8 TODO
crates.sage_ir.modules.expand (4)4 Implemented2 Implemented4 TODO
completenessImplementedImplementedTODO
dependenciesImplementedTODO
direct_membersImplementedTODO
recursion_and_fixpointImplementedImplementedTODO
crates.sage_ir.modules.parse (4)3 Implemented1 TODO2 Implemented4 TODO
dependenciesImplementedTODO
detail_firewallImplementedImplementedTODO
recovery_completenessTODOTODO
syntax_identitiesImplementedImplementedTODO
crates.sage_ir.resolution (5)5 Implemented1 TODO3 Implemented4 TODO
crates.sage_ir.resolution.lookup (5)5 Implemented1 TODO3 Implemented4 TODO
completenessImplementedTODOImplementedTODO
dependenciesImplementedTODO
expansion_import_ambiguityImplementedImplemented
identity_onlyImplementedTODO
precedenceImplementedImplementedTODO
crates.sage_ir.solver (9)7 Implemented7 TODO5 Implemented9 TODO
alternative_isolationImplementedTODOImplementedTODO
bounded_completenessImplementedTODOTODO
candidate_completenessImplementedTODO
canonical_cyclesTODOTODO
canonical_outputsImplementedImplementedTODO
local_index_firewallTODOTODO
normalization_demandImplementedTODOImplementedTODO
schedule_independenceImplementedTODOImplementedTODO
shared_final_resultImplementedTODOImplementedTODO
crates.sage_ir.symbols (8)8 Implemented4 Implemented7 TODO
associated_identityImplementedImplemented
associated_interfacesImplementedTODO
body_interfacesImplementedImplementedTODO
definition_identityImplementedTODO
external_fact_queriesImplementedTODO
external_identityImplementedTODO
kind_wrappersImplementedImplementedTODO
local_identityImplementedImplementedTODO
crates.sage_ir.types (27)16 Implemented12 TODO13 Implemented27 TODO
crates.sage_ir.types.aliases (2)1 Implemented1 TODO1 Implemented2 TODO
identityImplementedImplementedTODO
revelationTODOTODO
crates.sage_ir.types.binder (1)1 Implemented1 TODO1 Implemented1 TODO
owner_parametersImplementedTODOImplementedTODO
crates.sage_ir.types.body (13)4 Implemented9 TODO3 Implemented13 TODO
awaitTODOTODO
closuresTODOTODO
conditional_patternsTODOTODO
coroutinesTODOTODO
diagnosed_recoveryImplementedImplementedTODO
elaboratedTODOImplementedTODO
for_iterationTODOTODO
indexingTODOTODO
macro_expansionTODOTODO
no_inferenceImplementedImplementedTODO
resolved_referencesImplementedTODO
try_residualTODOTODO
typed_provenanceImplementedTODO
crates.sage_ir.types.calls (2)1 Implemented1 TODO1 Implemented2 TODO
dispatch_familiesTODOTODO
selected_semanticsImplementedImplementedTODO
crates.sage_ir.types.lifetimes (2)2 Implemented2 Implemented2 TODO
dummyImplementedImplementedTODO
unchecked_borrowsImplementedImplementedTODO
crates.sage_ir.types.operators (2)2 Implemented1 Implemented2 TODO
lazy_control_flowImplementedTODO
trait_callsImplementedImplementedTODO
scoped_identitiesImplementedTODO
crates.sage_ir.types.spans (4)4 Implemented4 Implemented4 TODO
generated_identityImplementedImplementedTODO
item_originImplementedImplementedTODO
offset_reuseImplementedImplementedTODO
relative_compositionImplementedImplementedTODO
crates.sage_oracle_harness (4)4 Implemented2 TODO1 Implemented4 TODO
crates.sage_oracle_harness.crate (4)4 Implemented2 TODO1 Implemented4 TODO
deterministic_emissionImplementedTODO
exact_comparisonImplementedTODOImplementedTODO
fixed_projectionImplementedTODO
independent_coverageImplementedTODOTODO
crates.sage_stash (5)5 Implemented5 Implemented
crates.sage_stash.storage (5)5 Implemented5 Implemented
handle_ownershipImplementedImplemented
immutable_entriesImplementedImplemented
query_valueImplementedImplemented
rooted_equalityImplementedImplemented
typed_interningImplementedImplemented
crates.sage_test_harness (25)25 Implemented25 Implemented
crates.sage_test_harness.compile_tests (25)25 Implemented25 Implemented
annotation_validationImplementedImplemented
blessing_gateImplementedImplemented
callsite_updatesImplementedImplemented
checking_scopeImplementedImplemented
compiler_conditionsImplementedImplemented
completed_typesImplementedImplemented
coordinatesImplementedImplemented
dependenciesImplementedImplemented
diagnostic_countsImplementedImplemented
diagnostic_locationsImplementedImplemented
editionImplementedImplemented
fixturesImplementedImplemented
grouped_observationsImplementedImplemented
invocationImplementedImplemented
production_executionImplementedImplemented
project_isolationImplementedImplemented
query_captureImplementedImplemented
query_projectionImplementedImplemented
renderingImplementedImplemented
resolved_symbolsImplementedImplemented
review_visibilityImplementedImplemented
rustc_executionImplementedImplemented
rustc_lintsImplementedImplemented
starting_expressionsImplementedImplemented
target_lineImplementedImplemented