Lines Matching defs:Rewrite
75 /// The parser is currently within a Rewrite, which disallows calls to
77 Rewrite,
224 /// non-global context, such as within a Pattern/Rewrite/etc.
734 if (parserContext != ParserContext::Rewrite) {
1231 ParserContext::Rewrite, "rewrite", isInline);
1262 "expected `Rewrite` lambda body to contain a single expression "
1287 if (failed(validateUserConstraintOrRewriteReturn("Rewrite", body, bodyIt,
1504 "`Constraint` or `Rewrite` body");
2040 bool allowEmptyName = parserContext != ParserContext::Rewrite;
2063 if (parserContext != ParserContext::Rewrite) {
2139 } else if (parserContext != ParserContext::Rewrite) {
2394 llvm::SaveAndRestore saveCtx(parserContext, ParserContext::Rewrite);
2461 llvm::SaveAndRestore saveCtx(parserContext, ParserContext::Rewrite);
2472 "`Constraint` or `Rewrite` body");
2694 "`Constraint` or `Rewrite`, but got: `{0}`",
2697 if (parserContext == ParserContext::Rewrite) {
2702 return emitError(loc, "unable to negate a Rewrite");
2706 "unable to invoke `Rewrite` within a match section");
2976 if (parserContext != ParserContext::Rewrite)