Lines Matching full:output

480 //  Output
483 Output::Output(raw_ostream &yout, void *context, int WrapColumn)
486 Output::~Output() = default;
488 bool Output::outputting() const {
492 void Output::beginMapping() {
498 bool Output::mapTag(StringRef Tag, bool Use) {
511 output(" ");
513 output(Tag);
529 void Output::endMapping() {
534 output("{}");
540 std::vector<StringRef> Output::keys() {
544 bool Output::preflightKey(const char *Key, bool Required, bool SameAsDefault,
561 void Output::postflightKey(void *) {
571 void Output::beginFlowMapping() {
575 output("{ ");
578 void Output::endFlowMapping() {
583 void Output::beginDocuments() {
587 bool Output::preflightDocument(unsigned index) {
593 void Output::postflightDocument() {
596 void Output::endDocuments() {
597 output("\n...\n");
600 unsigned Output::beginSequence() {
607 void Output::endSequence() {
612 output("[]");
618 bool Output::preflightElement(unsigned, void *&SaveInfo) {
623 void Output::postflightElement(void *) {
633 unsigned Output::beginFlowSequence() {
637 output("[ ");
642 void Output::endFlowSequence() {
647 bool Output::preflightFlowElement(unsigned, void *&SaveInfo) {
649 output(", ");
651 output("\n");
653 output(" ");
655 output(" ");
661 void Output::postflightFlowElement(void *) {
665 void Output::beginEnumScalar() {
669 bool Output::matchEnumScalar(const char *Str, bool Match) {
678 bool Output::matchEnumFallback() {
685 void Output::endEnumScalar() {
690 bool Output::beginBitSetScalar(bool &DoClear) {
692 output("[ ");
698 bool Output::bitSetMatch(const char *Str, bool Matches) {
701 output(", ");
702 output(Str);
708 void Output::endBitSetScalar() {
712 void Output::scalarString(StringRef &S, QuotingType MustQuote) {
720 output(S, MustQuote);
724 void Output::blockScalarString(StringRef &S) {
727 output(" |");
735 output(" ");
737 output(*Lines);
742 void Output::scalarTag(std::string &Tag) {
746 output(Tag);
747 output(" ");
750 void Output::setError(const Twine &message) {
753 std::error_code Output::error() { return {}; }
755 bool Output::canElideEmptySequence() {
768 void Output::output(StringRef s) {
773 void Output::output(StringRef S, QuotingType MustQuote) {
776 output(S);
782 output(Quote); // Starting quote.
789 output(yaml::escape(S, /* EscapePrintable= */ false));
790 output(Quote);
803 output(StringRef(&Base[i], j - i)); // "flush".
804 output(StringLiteral("''")); // Print it as ''
809 output(StringRef(&Base[i], j - i));
810 output(Quote); // Ending quote.
813 void Output::outputUpToEndOfLine(StringRef s) {
814 output(s);
820 void Output::outputNewLine() {
829 void Output::newLineCheck(bool EmptySequence) {
831 output(Padding);
872 output(" ");
875 output("- ");
878 void Output::paddedKey(StringRef key) {
879 output(key, needsQuotes(key, false));
880 output(":");
888 void Output::flowKey(StringRef Key) {
890 output(", ");
892 output("\n");
894 output(" ");
896 output(" ");
898 output(Key, needsQuotes(Key, false));
899 output(": ");
902 NodeKind Output::getNodeKind() { report_fatal_error("invalid call"); }
904 bool Output::inSeqAnyElement(InState State) {
908 bool Output::inFlowSeqAnyElement(InState State) {
912 bool Output::inMapAnyKey(InState State) {
916 bool Output::inFlowMapAnyKey(InState State) {
924 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) {
936 void ScalarTraits<StringRef>::output(const StringRef &Val, void *,
947 void ScalarTraits<std::string>::output(const std::string &Val, void *,
958 void ScalarTraits<uint8_t>::output(const uint8_t &Val, void *,
975 void ScalarTraits<uint16_t>::output(const uint16_t &Val, void *,
991 void ScalarTraits<uint32_t>::output(const uint32_t &Val, void *,
1007 void ScalarTraits<uint64_t>::output(const uint64_t &Val, void *,
1021 void ScalarTraits<int8_t>::output(const int8_t &Val, void *, raw_ostream &Out) {
1037 void ScalarTraits<int16_t>::output(const int16_t &Val, void *,
1052 void ScalarTraits<int32_t>::output(const int32_t &Val, void *,
1067 void ScalarTraits<int64_t>::output(const int64_t &Val, void *,
1080 void ScalarTraits<double>::output(const double &Val, void *, raw_ostream &Out) {
1090 void ScalarTraits<float>::output(const float &Val, void *, raw_ostream &Out) {
1100 void ScalarTraits<Hex8>::output(const Hex8 &Val, void *, raw_ostream &Out) {
1114 void ScalarTraits<Hex16>::output(const Hex16 &Val, void *, raw_ostream &Out) {
1128 void ScalarTraits<Hex32>::output(const Hex32 &Val, void *, raw_ostream &Out) {
1142 void ScalarTraits<Hex64>::output(const Hex64 &Val, void *, raw_ostream &Out) {
1154 void ScalarTraits<VersionTuple>::output(const VersionTuple &Val, void *,