Lines Matching refs:Piece

482 struct Piece {  struct
484 Piece(PieceKind Kind) : ClassKind(Kind) {} in Piece() argument
485 Piece(Piece const &O) = delete;
486 Piece &operator=(Piece const &) = delete;
487 virtual ~Piece() {} in ~Piece() argument
490 static bool classof(const Piece *) { return true; } in classof() argument
496 struct MultiPiece : Piece {
497 MultiPiece() : Piece(MultiPieceClass) {} in MultiPiece()
498 MultiPiece(std::vector<Piece *> Pieces) in MultiPiece()
499 : Piece(MultiPieceClass), Pieces(std::move(Pieces)) {} in MultiPiece()
501 std::vector<Piece *> Pieces;
503 static bool classof(const Piece *P) { in classof()
508 struct TextPiece : Piece {
512 : Piece(TextPieceClass), Role(Role), Text(Text.str()) {} in TextPiece()
514 static bool classof(const Piece *P) { in classof()
519 struct PlaceholderPiece : Piece {
523 : Piece(PlaceholderPieceClass), Kind(Kind), Index(Index) {} in PlaceholderPiece()
525 static bool classof(const Piece *P) { in classof()
530 struct SelectPiece : Piece {
533 : Piece(Kind), ModKind(ModKind) {} in SelectPiece()
539 std::vector<Piece *> Options;
542 static bool classof(const Piece *P) { in classof()
551 std::vector<Piece *> OptionPrefixes;
554 static bool classof(const Piece *P) { in classof()
559 struct DiffPiece : Piece {
560 DiffPiece() : Piece(DiffPieceClass) {} in DiffPiece()
562 Piece *Parts[4] = {};
565 static bool classof(const Piece *P) { in classof()
570 struct SubstitutionPiece : Piece {
571 SubstitutionPiece() : Piece(SubstitutionPieceClass) {} in SubstitutionPiece()
576 static bool classof(const Piece *P) { in classof()
612 Piece *getSubstitution(SubstitutionPiece *S) const { in getSubstitution()
627 std::vector<Piece *> AllocatedPieces;
628 Piece *Root = nullptr;
631 static_assert(std::is_base_of<Piece, T>::value, "must be piece"); in New()
649 Piece *parseDiagText(StringRef &Text, StopAt Stop);
660 for (Piece *P : AllocatedPieces) in ~DiagText()
715 Piece *Substitution;
721 void Visit(Piece *P) { in Visit()
725 return getDerived().Visit##T(static_cast<T##Piece *>(P)) in Visit()
799 Piece *OrigP, const ModifierMappingsType &CurrentMappings, in gatherNodes()
800 std::vector<std::pair<Piece *, ModifierMappingsType>> &Pieces) const { in gatherNodes()
807 for (Piece *Node : MD->Pieces) in gatherNodes()
825 std::vector<std::pair<Piece *, ModifierMappingsType>> Pieces; in VisitMulti()
831 for (const std::pair<Piece *, ModifierMappingsType> &NodePair : Pieces) { in VisitMulti()
1016 Piece *DiagnosticTextBuilder::DiagText::parseDiagText(StringRef &Text, in parseDiagText()
1018 std::vector<Piece *> Parsed; in parseDiagText()