packages feed

typst-0.7: test/typ/compiler/return-02.out

--- parse tree ---
[ Code
    "typ/compiler/return-02.typ"
    ( line 1 , column 2 )
    (Let
       (BasicBind (Just (Identifier "test")))
       (FuncExpr
          [ NormalParam (Identifier "x") , NormalParam (Identifier "y") ]
          (Block
             (CodeBlock
                [ If
                    [ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y"))
                      , Block (Content [ Text "\9989" ])
                      )
                    , ( Literal (Boolean True)
                      , Block
                          (Content
                             [ Text "\10060"
                             , Text "("
                             , Code
                                 "typ/compiler/return-02.typ"
                                 ( line 1 , column 47 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "x")) ])
                             , Space
                             , Text "/"
                             , Text "="
                             , Space
                             , Code
                                 "typ/compiler/return-02.typ"
                                 ( line 1 , column 59 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "y")) ])
                             , Text ")"
                             ])
                      )
                    ]
                ]))))
, SoftBreak
, Comment
, Comment
, SoftBreak
, Code
    "typ/compiler/return-02.typ"
    ( line 5 , 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 7 , 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 13 , 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 15 , column 2 )
    (FuncCall
       (Ident (Identifier "f"))
       [ BlockArg
           [ Text "My" , Space , Text "other" , Space , Text "figure" ]
       ])
, ParBreak
]
"typ/compiler/return-02.typ" (line 13, column 2):
unexpected end of input
text is not an element function