/** * Resolving a call: which signature it means, whether what was written fits it, * and what comes back. * * The arguments have already been checked as expressions by the time this runs, * so everything here reads their recorded types and warmups. That is what keeps * this file out of a cycle with the expression pass, and it is also the order * a reader expects: the inner expressions are wrong or they are not, before * anything asks whether they fit the call. * * Overload resolution is by arity and then by argument type, which is the whole * of `stdlib.md` 2.2. It happens once, here, and there is no run-time dispatch. */ import type { Argument, Call } from '../ast/index.js'; import { arityText, signatureText } from './arguments.js'; import type { Checker, Placement } from './checker.js'; import type { CheckedCall } from './checked.js'; import type { LibraryEntry } from './library.js'; import type { Type } from './types.js'; /** Every argument against the parameter it filled: type, value set, range, constancy. */ export declare function validateArguments(checker: Checker, entry: LibraryEntry, filled: readonly (Argument | undefined)[], bound: ReadonlyMap): void; /** * A call to a name the library holds. * * The result is recorded whether or not anything was reported about it, because * every stage above this one asks the same two questions of a call site, and a * hole in the map would make each of them invent an answer of its own. */ export declare function resolveLibraryCall(checker: Checker, call: Call, name: string, placement: Placement): CheckedCall; export declare function unresolved(call: Call, name: string): CheckedCall; export declare function remember(checker: Checker, checked: CheckedCall): void; export { arityText, signatureText }; //# sourceMappingURL=calls.d.ts.map