(string, attributes)
| 16 | } |
| 17 | |
| 18 | static textForStringWithAttributes(string, attributes) { |
| 19 | const piece = new StringPiece(string, attributes) |
| 20 | return new this([ piece ]) |
| 21 | } |
| 22 | |
| 23 | static fromJSON(textJSON) { |
| 24 | const pieces = Array.from(textJSON).map((pieceJSON) => Piece.fromJSON(pieceJSON)) |
no outgoing calls
no test coverage detected