resolveStaticCoordinates method

void resolveStaticCoordinates(
  1. Iterable<SAstNode> declarations
)

Run the static lexical resolver over declarations (perf plan_3 ยง9). The resolver writes slot coordinates directly onto the mirror SSimpleIdentifier nodes (SSimpleIdentifier.resolvedSlot) and slot carriers onto blocks/declarations, so they also survive serialization for the analyzer-free Flutter precompute target. Bundles produced via tom_ast_generator already carry these coordinates; this execute-time pass covers hand-built / deserialized units and is idempotent (it recomputes identical coordinates). S3c consumes SSimpleIdentifier.resolvedSlot directly on the read path in visitSimpleIdentifier (current-frame Environment.getSlot).

Implementation

void resolveStaticCoordinates(Iterable<SAstNode> declarations) {
  StaticResolver().resolve(declarations);
}