   public static func docBlockComment(_ text: String) -> Trivia {
     return [.docBlockComment(text)]
   }
+
+  /// Return a piece of trivia for any garbage text.
+  public static func garbageText(_ text: String) -> Trivia {
+    return [.garbageText(text)]
+  }
 }
 
 /// Conformance for Trivia to the Collection protocol.

    case "DocBlockComment":
      let value = try container.decode(String.self, forKey: .value)
      self = .docLineComment(value)
    default:
      let context =
        DecodingError.Context(codingPath: [CodingKeys.kind],

    case let .lineComment(text),
         let .blockComment(text),
         let .docLineComment(text),
         let .docBlockComment(text),
         let .garbageText(text):
      target.write(text)
    }
  }
