[−][src]Function syntax::ext::tt::macro_parser::parse
pub fn parse(
sess: &ParseSess,
tts: TokenStream,
ms: &[TokenTree],
directory: Option<Directory>,
recurse_into_modules: bool
) -> NamedParseResult
Use the given sequence of token trees (ms) as a matcher. Match the given token stream tts
against it and return the match.
Parameters
sess: The session into which errors are emittedtts: The tokenstream we are matching against the patternmsms: A sequence of token trees representing a pattern against which we are matchingdirectory: Information about the file locations (needed for the black-box parser)recurse_into_modules: Whether or not to recurse into modules (needed for the black-box parser)