Parse the entire `text` into a list of functions. Any test commands or target declarations are ignored.
(text: &str)
| 88 | /// |
| 89 | /// Any test commands or target declarations are ignored. |
| 90 | pub fn parse_functions(text: &str) -> ParseResult<Vec<Function>> { |
| 91 | let _tt = timing::parse_text(); |
| 92 | parse_test(text, ParseOptions::default()) |
| 93 | .map(|file| file.functions.into_iter().map(|(func, _)| func).collect()) |
| 94 | } |
| 95 | |
| 96 | /// Options for configuring the parsing of filetests. |
| 97 | pub struct ParseOptions<'a> { |