Skip to main content

parse_value

Function parse_value 

Source
pub fn parse_value(
    path: &RelPath,
    source: &str,
    value: &AstValue,
    value_type: ValueType,
) -> Result<Value, String>
Expand description

Parses a script value as value_type. source must have the same byte offsets as the file named by path, so spans point at the original text.