Function syntax::parse::new_parser_from_file[src]
pub fn new_parser_from_file<'a>(sess: &'a ParseSess, cfg: CrateConfig, path: &Path) -> Parser<'a>
Create a new parser, handling errors as appropriate if the file doesn't exist
pub fn new_parser_from_file<'a>(sess: &'a ParseSess, cfg: CrateConfig, path: &Path) -> Parser<'a>
Create a new parser, handling errors as appropriate if the file doesn't exist
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).