Skip to main content

function_entries

Function function_entries 

Source
pub fn function_entries() -> Vec<FunctionEntry>
Expand description

Every function this engine has, sorted by name and then by how many arguments it takes.

Sorted rather than left in whatever order the two tables behind it are written in, because a client reading this table is looking a name up and an unsorted catalog makes that a scan of the whole thing. Upstream’s own order is not reproduced: it is the order its catalog registered the functions in, the two corpus records that read the table both say order by, and there is nothing in it that is a fact about the language.