Macros
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Macros.type
Members list
Value members
Concrete methods
Call a method given by its symbol.
Call a method given by its symbol.
E.g.
assuming:
def foo(x: Int, y: String)(z: Int)
val argss: List[List[Any]] = ???
then:
call(
will expand to:
foo(argss(0)(0), argss(0)(1))(argss(1)(0))
Attributes
Check that decorator inner and outer return types match.
Check that decorator inner and outer return types match.
This replicates EndpointMetadata.seqify, but in a macro where error positions can be controlled.
Attributes
Convert a result to an HTTP response
Convert a result to an HTTP response
Note: essentially, all this method does is summon a cask.internal.Conversion
and provide a helpful error message if it cannot be found. In this case,
one could wonder why we do the implicit summoning in this macro, rather than
emit "regular" code which does the summoning. The reason is to provide
helpful error messages with correct positions. We can control the position
in the macro, but if the error were to come from the expanded code the position
would be completely off.
Attributes
The type of paramters displayed in error messages
The type of paramters displayed in error messages
Attributes
Lookup default values for a method's parameters.
Lookup default values for a method's parameters.
Attributes
Summon the reader for a parameter.
Summon the reader for a parameter.