I am creating some macro libraries that reads some information from annotation on the enclosing
method.
@info(foo(bar, baz))
def enclosing() = {
myMacro()
}
These information are encoded as foo(bar, baz)
in a StaticAnnotation
@info
.
foo(bar, baz)
contains information myMacro
need, however, foo(bar, baz)
is not able to type-check at the position @info
, and cause compiler error when type-checking foo(bar, baz)
.
I wonder if I can create a macro dontTypecheck
that prevent foo(bar, baz)
being type checked. So that I can create something like:
@info(dontTypecheck {
foo(bar, baz)
})
def enclosing() = {
myMacro()
}
The dontTypecheck
macro should produce a Tree
that contains untype-checked foo(bar, baz)
.
How to create the dontTypecheck
macro?