Function syntax::parse::parse_item_from_source_str
[−]
[src]
pub fn parse_item_from_source_str(
name: FileName,
source: String,
sess: &ParseSess
) -> PResult<Option<P<Item>>>
Parses an item.
Returns Ok(Some(item))
when successful, Ok(None)
when no item was found, and Err
when a syntax error occurred.