typst-0.9: test/typ/compiler/return-02.out
--- parse tree ---
[ Comment
, SoftBreak
, Comment
, ParBreak
, Code
"typ/compiler/return-02.typ"
( line 4 , column 2 )
(LetFunc
(Identifier "f")
[ NormalParam (Identifier "text")
, DefaultParam (Identifier "caption") (Literal None)
]
(Block
(CodeBlock
[ Ident (Identifier "text")
, If
[ ( Equals (Ident (Identifier "caption")) (Literal None)
, Block
(Content
[ Text "."
, Code
"typ/compiler/return-02.typ"
( line 6 , column 26 )
(Return Nothing)
])
)
]
, Block (Content [ Text "," , Space ])
, FuncCall
(Ident (Identifier "emph"))
[ NormalArg (Ident (Identifier "caption")) ]
, Block (Content [ Text "." ])
])))
, ParBreak
, Code
"typ/compiler/return-02.typ"
( line 12 , column 2 )
(FuncCall
(Ident (Identifier "f"))
[ KeyValArg
(Identifier "caption")
(Block (Content [ Text "with" , Space , Text "caption" ]))
, BlockArg [ Text "My" , Space , Text "figure" ]
])
, ParBreak
, Code
"typ/compiler/return-02.typ"
( line 14 , column 2 )
(FuncCall
(Ident (Identifier "f"))
[ BlockArg
[ Text "My" , Space , Text "other" , Space , Text "figure" ]
])
, ParBreak
]
"typ/compiler/return-02.typ" (line 12, column 2):
unexpected end of input
text is not an element function