(self: DocStream.DocStream<A>)
| 385 | } |
| 386 | |
| 387 | const getInitialIndentation = <A>(self: DocStream.DocStream<A>): Option.Option<number> => { |
| 388 | let stream: DocStream.DocStream<A> = self |
| 389 | while ( |
| 390 | stream._tag === "LineStream" || |
| 391 | stream._tag === "PushAnnotationStream" || |
| 392 | stream._tag === "PopAnnotationStream" |
| 393 | ) { |
| 394 | if (stream._tag === "LineStream") { |
| 395 | return Option.some(stream.indentation) |
| 396 | } |
| 397 | stream = stream.stream |
| 398 | } |
| 399 | return Option.none() |
| 400 | } |
| 401 | |
| 402 | // ----------------------------------------------------------------------------- |
| 403 | // unbounded |
no outgoing calls
no test coverage detected
searching dependent graphs…