Lambda
tastyquery.Trees.Lambda
final case class Lambda(meth: TermReferenceTree, tpt: Option[TypeTree])(pos: SourcePosition) extends TermTree
Value parameters
- meth
-
A reference to the method.
- tpt
-
Defined only if the lambda's type is a SAMtype rather than a function type.
Attributes
- Graph
-
- Supertypes
-
trait Serializableclass TermTreeclass StatementTreeclass TopLevelTreeclass Treetrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
The class symbol of the SAM type of this lambda.
The class symbol of the SAM type of this lambda.
A Lambda can be considered as an anonymous class of the form new tpt { ... }. Given that observation, samClassSymbol represents the parentClasses.head of that hypothetical anonymous class.
When tpt is None, samClassSymbol will be one of the scala.FunctionN classes.
Attributes
Attributes
- Definition Classes
Inherited methods
Compute the prefix represented by this tree.
Compute the prefix represented by this tree.
The default implementation throws an InvalidProgramStructureException to indicate that this term tree is not a valid type prefix.
Attributes
- Inherited from:
- TermTree
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article