Skip to main content

parse_file_content

Function parse_file_content 

Source
pub fn parse_file_content<'arena>(
    arena: &'arena Bump,
    file_id: FileId,
    content: &str,
) -> &'arena Program<'arena>
Expand description

Parses the given file content and returns the program AST.

§Parameters

  • arena: The memory arena for allocations.
  • file_id: The ID of the file being parsed.
  • content: The content to parse.

§Returns

The parsed Program AST.