Skip to content

Instantly share code, notes, and snippets.

@joseoliv
Created June 11, 2019 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseoliv/2f9e7be82fe9c93a3b7e005c021b8543 to your computer and use it in GitHub Desktop.
Save joseoliv/2f9e7be82fe9c93a3b7e005c021b8543 to your computer and use it in GitHub Desktop.
codeAfter
package metaobjectTest
@doc{*
Annotation 'codeAfter' adds the code attached to the
annotation after a local variable declaration.
*}
object CodeAfter
func run {
@codeAfter{*
sum = 1;
*}
var Int sum = 0;
assert sum == 1;
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment