Say you have a method
class Foo {
//%block="create a Foo"
//%blockSetVariable=foo
static Foo create() {
return new Foo()
}
}
this will produce a block which calls the method and stores the result. Inside the block, will be a capsule-shaped block which represents just the result of the method.
If instead, you define this:
class Foo {
//%block="create a Foo"
static Foo create() {
return new Foo()
}
}
You get just the capsule shaped ‘value’ block.
How do you use the %block annotations to have both of these things? Is it necessary to create a separate little function just in order to have two different sets of %block annotations?