Scope

scala.quoted.runtime.impl.Scope
trait Scope

A scope uniquely identifies the context for evaluating a splice

A nested splice gets a new scope with the enclosing scope as its outer. This also applies for recursive splices.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NoScope.type

Members list

Concise view

Value members

Concrete methods

def atSameLocation(scope: Scope): Boolean

If the two scopes correspond to the same splice in source.

If the two scopes correspond to the same splice in source.

Attributes

def isOuterScopeOf(scope: Scope): Boolean

Is this is a outer scope of the given scope

Is this is a outer scope of the given scope

Attributes

Outer scope that was used to create the quote containing this splice. NoScope otherwise.

Outer scope that was used to create the quote containing this splice. NoScope otherwise.

Attributes

def root: Scope

Scope of the top level splice or staging run

Scope of the top level splice or staging run

Attributes

def stack: List[String]

Stack of locations where scopes where evaluated

Stack of locations where scopes where evaluated

Attributes