source-code
source-code
ru.primetalk.source.text
Block
Inline
Show
Text
source-code
/
ru.primetalk.source.text
ru.primetalk.source.text
package
ru.primetalk.source.text
Type members
Value members
Extensions
Type members
Classlikes
case
class
Block
(
lines:
List
[
Text
])
extends
Text
case
class
Inline
(
parts:
List
[
String
])
extends
Text
trait
Show
[
T
]
sealed
trait
Text
Representation of source code.
Representation of source code.
Value members
Concrete methods
def
concat
(
a:
Text
,
b:
Text
):
Text
def
concatList
(
lst:
Text
*):
Text
def
lift
(
s:
String
):
Inline
def
lines
(
t:
Text
,
indent:
Int
,
indentStep:
Int
):
List
[
String
]
def
render
[
T
](
t:
T
,
indent:
Int
)(
using
s:
Show
[
T
]):
String
def
showText
(
t:
Text
,
indentStep:
Int
):
String
Extensions
Extensions
extension
(s:
String
)
def
asText
:
Inline
extension
(t:
Text
)
def
+
(
other:
Text
):
Text
def
+
(
other:
String
):
Text