Identifier ('import')
WHITE_SPACE (' ')
{ ('{')
WHITE_SPACE (' ')
Identifier ('Button')
WHITE_SPACE (' ')
Identifier ('as')
WHITE_SPACE (' ')
Identifier ('MyButton')
WHITE_SPACE (' ')
, (',')
WHITE_SPACE (' ')
Identifier ('VerticalBox')
WHITE_SPACE (' ')
} ('}')
WHITE_SPACE (' ')
Identifier ('from')
WHITE_SPACE (' ')
StringLiteral ('"std-widgets.slint"')
; (';')
WHITE_SPACE ('\n')
Identifier ('export')
WHITE_SPACE (' ')
Identifier ('component')
WHITE_SPACE (' ')
Identifier ('App')
WHITE_SPACE (' ')
Identifier ('inherits')
WHITE_SPACE (' ')
Identifier ('Window')
WHITE_SPACE (' ')
{ ('{')
WHITE_SPACE ('\n    ')
Identifier ('in-out')
WHITE_SPACE (' ')
Identifier ('property')
< ('<')
Identifier ('int')
> ('>')
WHITE_SPACE (' ')
Identifier ('component')
: (':')
WHITE_SPACE (' ')
NumberLiteral ('42')
; (';')
WHITE_SPACE ('\n    ')
Identifier ('callback')
WHITE_SPACE (' ')
Identifier ('request-increase-value')
( ('(')
) (')')
; (';')
WHITE_SPACE ('\n    ')
Identifier ('VerticalBox')
WHITE_SPACE (' ')
{ ('{')
WHITE_SPACE ('\n        ')
Identifier ('Text')
WHITE_SPACE (' ')
{ ('{')
WHITE_SPACE ('\n            ')
Identifier ('text')
: (':')
WHITE_SPACE (' ')
StringLiteral ('"Counter: \{root.component}"')
; (';')
WHITE_SPACE ('\n        ')
} ('}')
WHITE_SPACE ('\n        ')
Identifier ('MyButton')
WHITE_SPACE (' ')
{ ('{')
WHITE_SPACE ('\n            ')
Identifier ('text')
: (':')
WHITE_SPACE (' ')
StringLiteral ('"Increase value、"')
; (';')
WHITE_SPACE ('\n            ')
Identifier ('clicked')
WHITE_SPACE (' ')
=> ('=>')
WHITE_SPACE (' ')
{ ('{')
WHITE_SPACE ('\n            ')
LineComment ('//root.request-increase-value();')
WHITE_SPACE ('\n            ')
} ('}')
WHITE_SPACE ('\n        ')
} ('}')
WHITE_SPACE ('\n    ')
} ('}')
WHITE_SPACE ('\n')
} ('}')
