MCPcopy Create free account
hub / github.com/Glyphack/enderpy / parse_group_pattern

Method parse_group_pattern

parser/src/parser/parser.rs:959–964  ·  view source on GitHub ↗

TODO: This has precedence over sequence pattern but I'm not sure what is the right way to use it.

(&mut self)

Source from the content-addressed store, hash-verified

957 // TODO: This has precedence over sequence pattern but I'm not sure
958 // what is the right way to use it.
959 fn parse_group_pattern(&mut self) -> Result<MatchPattern, ParsingError> {
960 self.expect(Kind::LeftParen)?;
961 let pattern = self.parse_pattern()?;
962 self.expect(Kind::RightParen)?;
963 Ok(pattern)
964 }
965
966 fn parse_mapping_pattern(&mut self) -> Result<MatchPattern, ParsingError> {
967 let node = self.start_node();

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parse_patternMethod · 0.80

Tested by

no test coverage detected