vampire methods
TRANSCRIPT
Local CatMatcher
http://stackoverflow.com/questions/18480707/method-cannot-be-accessed-in-macro-generated-class
Don’t forg
et the {}!
Yo, I heard you like macros
Annotation code
// @fieldMatcherBody(expected => cat.age must_== expected)
// val expected = 6
// cat.age must_== expected
Transformers
// 6
// `prefix` represents an equivalent of // `this` for normal instance methods
// body:// CatMatcher.this.addMatcher((_:Cat).age must_== arg)