Lines Matching refs:parse_flag
1348 kind: ast::FlagsItemKind::Flag(self.parse_flag()?), in parse_flags()
1378 fn parse_flag(&self) -> Result<ast::Flag> { in parse_flag() method
4113 fn parse_flag() { in parse_flag() function
4114 assert_eq!(parser("i").parse_flag(), Ok(ast::Flag::CaseInsensitive)); in parse_flag()
4115 assert_eq!(parser("m").parse_flag(), Ok(ast::Flag::MultiLine)); in parse_flag()
4116 assert_eq!(parser("s").parse_flag(), Ok(ast::Flag::DotMatchesNewLine)); in parse_flag()
4117 assert_eq!(parser("U").parse_flag(), Ok(ast::Flag::SwapGreed)); in parse_flag()
4118 assert_eq!(parser("u").parse_flag(), Ok(ast::Flag::Unicode)); in parse_flag()
4119 assert_eq!(parser("x").parse_flag(), Ok(ast::Flag::IgnoreWhitespace)); in parse_flag()
4122 parser("a").parse_flag().unwrap_err(), in parse_flag()
4129 parser("☃").parse_flag().unwrap_err(), in parse_flag()