Try

tastyquery.Trees.Try
final case class Try(expr: TermTree, cases: List[CaseDef], finalizer: Option[TermTree])(pos: SourcePosition) extends TermTree

try block catch cases finally finalizer

Attributes

Graph
Supertypes
trait Serializable
class TermTree
class TopLevelTree
class Tree
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

final override def withPos(pos: SourcePosition): Try

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
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def showBasic: String

Attributes

Inherited from:
Tree
final def showMultiline: String

Attributes

Inherited from:
Tree
final def tpe(using Context): TermType

The term type of this tree.

The term type of this tree.

Attributes

Inherited from:
TermTree