parse_str

Function parse_str 

Source
pub fn parse_str(source: &str) -> Result<Program, ParseError>
Expand description

Parses the provided source string with a default CodeMap and DiagnosticsHandler.

This is primarily provided for use in tests, you should generally prefer parse