Skip to content

Commit

Permalink
Add verbose/debug block variants.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Oct 1, 2024
1 parent c7d60ce commit 429672f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ui.toit
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,20 @@ class Ui:
emit --debug/bool object/any:
emit --kind=DEBUG --structured=: object

/** Variant of $(emit --debug object) that only calls the given $generator when needed. */
emit --debug/bool [generator] -> none:
emit --kind=DEBUG --structured=generator

/** Variant of $emit using the $VERBOSE kind. */
// TODO(florian): change the bool type to 'True'.
emit --verbose/bool object/any:
emit --kind=VERBOSE --structured=: object

/** Variant of $(emit --verbose object) that only calls the given $generator when needed. */
// TODO(florian): change the bool type to 'True'.
emit --verbose/bool [generator]:
emit --kind=VERBOSE --structured=generator

/** Variant of $emit using the $WARNING kind. */
// TODO(florian): change the bool type to 'True'.
emit --warning/bool object/any:
Expand Down

0 comments on commit 429672f

Please sign in to comment.