Lines Matching defs:element
212 FailureOr<FormatElement *> element = parseElement(TopLevelContext);
213 if (failed(element))
215 elements.push_back(*element);
260 // The parsed literal is a space element (`` or ` `) or a newline.
333 FailureOr<FormatElement *> element = parseElement(TopLevelContext);
334 if (failed(element))
340 "only one element can be marked as the anchor of an "
343 anchor = *element;
346 elements.push_back(*element);
374 return emitError(loc, "optional group has no anchor element");
381 // Get the first parsable element. It must be an element that can be
383 auto isWhitespace = [](FormatElement *element) {
384 return isa<WhitespaceElement>(element);
392 return emitError(loc, "first parsable element of an optional group must be "