Skip to main content

rewrite_doc_on_ids

Function rewrite_doc_on_ids 

Source
fn rewrite_doc_on_ids(
    stmt: &mut Statement<Raw>,
    lookup: impl FnMut(&UnresolvedItemName) -> Option<String>,
)
Expand description

Replaces every bare DOC ON reference in stmt for which lookup returns an id with the [id AS name] form. None leaves the reference as a name.