sway_lsp::core::session

Function parse_lexed_program

Source
pub fn parse_lexed_program(
    lexed_program: &LexedProgram,
    ctx: &ParseContext<'_>,
    modified_file: &Option<PathBuf>,
    f: impl Fn(&Annotated<ItemKind>, &ParseContext<'_>) + Sync,
)
Expand description

Parse the LexedProgram to populate the TokenMap with lexed nodes.