Verbatim relocation of the 52-method declaration cluster (lowerRoot, scanDecls, entry-point checks, const/global registration, forward-alias resolution, declareFunction + qualified registration, visibility, lazy/deferred function lowering, same-name author selection) plus four nested types (BareCallee, SelectedFunc, TypeHeadResolution, VisibleStructAuthor) and the file-scope isExportedEntryName (all callers moved with it) into src/ir/lower/decl.zig. 52 fn aliases + 3 type aliases on Lowering keep all call sites (incl. calls.zig facade) unchanged. Method pub-flips: assertInstanceMapsCoincide, emitDefaultContextGlobal, headFnLeak, initializerDescription, instantiateTypeFunction, lookupObjcDefinedClassForMethod, lowerObjcDefinedClassMethods, registerForeignClassDecl, registerGenericStructAlias, registerNamespacedForeignClasses, reserveShadowSlot, resolveTypeCallWithBindings, selectGenericStructHead, synthesizeJniMainStubs, typeResolver, hasComptimeParams, isPlainFreeFn, topLevelTypeDecl, isPackFn. Nested-type exposure: FnBodyReentry (+ enter/restore), ShadowTypeDecl.key/name/isGeneric. Gate: zig build OK; zig build test 426/426; run_examples 541/0; zero expected/ snapshot churn.
125 KiB
125 KiB