typst-0.9: test/typ/compiler/show-selector-00.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compiler/show-selector-00.typ"
( line 2 , column 2 )
(Show
(Just
(FuncCall
(FieldAccess
(Ident (Identifier "where")) (Ident (Identifier "raw")))
[ KeyValArg (Identifier "block") (Literal (Boolean False)) ]))
(FuncCall
(FieldAccess
(Ident (Identifier "with")) (Ident (Identifier "box")))
[ KeyValArg (Identifier "radius") (Literal (Numeric 2.0 Pt))
, KeyValArg
(Identifier "outset")
(Dict
[ Reg ( Ident (Identifier "y") , Literal (Numeric 2.5 Pt) ) ])
, KeyValArg
(Identifier "inset")
(Dict
[ Reg ( Ident (Identifier "x") , Literal (Numeric 3.0 Pt) )
, Reg ( Ident (Identifier "y") , Literal (Numeric 0.0 Pt) )
])
, KeyValArg
(Identifier "fill")
(FuncCall
(Ident (Identifier "luma")) [ NormalArg (Literal (Int 230)) ])
]))
, ParBreak
, Comment
, SoftBreak
, Code
"typ/compiler/show-selector-00.typ"
( line 10 , column 2 )
(Show
(Just
(FuncCall
(FieldAccess
(Ident (Identifier "where")) (Ident (Identifier "raw")))
[ KeyValArg (Identifier "block") (Literal (Boolean True)) ]))
(FuncCall
(FieldAccess
(Ident (Identifier "with")) (Ident (Identifier "block")))
[ KeyValArg
(Identifier "outset") (Negated (Literal (Numeric 3.0 Pt)))
, KeyValArg (Identifier "inset") (Literal (Numeric 11.0 Pt))
, KeyValArg
(Identifier "fill")
(FuncCall
(Ident (Identifier "luma")) [ NormalArg (Literal (Int 230)) ])
, KeyValArg
(Identifier "stroke")
(Dict
[ Reg
( Ident (Identifier "left")
, Plus
(Literal (Numeric 1.5 Pt))
(FuncCall
(Ident (Identifier "luma")) [ NormalArg (Literal (Int 180)) ])
)
])
]))
, ParBreak
, Code
"typ/compiler/show-selector-00.typ"
( line 17 , column 2 )
(Set
(Ident (Identifier "page"))
[ KeyValArg
(Identifier "margin")
(Dict
[ Reg ( Ident (Identifier "top") , Literal (Numeric 12.0 Pt) ) ])
])
, SoftBreak
, Code
"typ/compiler/show-selector-00.typ"
( line 18 , column 2 )
(Set
(Ident (Identifier "par"))
[ KeyValArg (Identifier "justify") (Literal (Boolean True)) ])
, ParBreak
, Text "This"
, Space
, Text "code"
, Space
, Text "tests"
, Space
, RawInline "code"
, SoftBreak
, Text "with"
, Space
, Text "selectors"
, Space
, Text "and"
, Space
, Text "justification"
, Text "."
, ParBreak
, RawBlock "rs" "code!(\"it\");"
, ParBreak
, Text "You"
, Space
, Text "can"
, Space
, Text "use"
, Space
, Text "the"
, Space
, RawBlock "rs" "*const T"
, Space
, Text "pointer"
, Space
, Text "or"
, SoftBreak
, Text "the"
, Space
, RawBlock "rs" "&mut T"
, Space
, Text "reference"
, Text "."
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
parbreak(),
text(body: [
]),
parbreak(),
text(body: [
]),
parbreak(),
text(body: [This code tests ]),
box(body: raw(block: false,
lang: none,
text: "code"),
fill: luma(23000%),
inset: (x: 3.0pt, y: 0.0pt),
outset: (y: 2.5pt),
radius: 2.0pt),
text(body: [
with selectors and justification.]),
parbreak(),
block(body: raw(block: true,
lang: "rs",
text: "code!(\"it\");"),
fill: luma(23000%),
inset: 11.0pt,
outset: -3.0pt,
stroke: (left: (thickness: 1.5pt,
color: luma(18000%)))),
parbreak(),
text(body: [You can use the ]),
block(body: raw(block: true,
lang: "rs",
text: "*const T"),
fill: luma(23000%),
inset: 11.0pt,
outset: -3.0pt,
stroke: (left: (thickness: 1.5pt,
color: luma(18000%)))),
text(body: [ pointer or
the ]),
block(body: raw(block: true,
lang: "rs",
text: "&mut T"),
fill: luma(23000%),
inset: 11.0pt,
outset: -3.0pt,
stroke: (left: (thickness: 1.5pt,
color: luma(18000%)))),
text(body: [ reference.]),
parbreak() })