MCPcopy Create free account
hub / github.com/davidblewett/rure-python / parse_with_comments

Method parse_with_comments

regex/regex-syntax/src/ast/parse.rs:350–355  ·  view source on GitHub ↗

Parse the regular expression and return an abstract syntax tree with all of the comments found in the pattern.

(
        &mut self,
        pattern: &str,
    )

Source from the content-addressed store, hash-verified

348 /// Parse the regular expression and return an abstract syntax tree with
349 /// all of the comments found in the pattern.
350 pub fn parse_with_comments(
351 &mut self,
352 pattern: &str,
353 ) -> Result<ast::WithComments> {
354 ParserI::new(self, pattern).parse_with_comments()
355 }
356
357 /// Reset the internal state of a parser.
358 ///

Callers 2

parseMethod · 0.80
parse_commentsFunction · 0.80

Calls 15

resetMethod · 0.80
parserMethod · 0.80
bump_spaceMethod · 0.80
push_groupMethod · 0.80
pop_groupMethod · 0.80
push_alternateMethod · 0.80
parse_set_classMethod · 0.80
parse_primitiveMethod · 0.80
pop_group_endMethod · 0.80
checkMethod · 0.80

Tested by 1

parse_commentsFunction · 0.64