Scope

amyc.analyzer.Scope
See theScope companion object
sealed case class Scope

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object EmptyScope.type

Members list

Value members

Concrete methods

def isLocal(name: String): Boolean

Attributes

def isParam(name: String): Boolean

Attributes

def resolve(name: String): Option[Symbol]

Resolve a new in the current Scope The Search is recursive !!

Resolve a new in the current Scope The Search is recursive !!

Attributes

def resolveInScope(name: String): Option[Symbol]

Resolve a new in the current Scope The Search is not recursive !!

Resolve a new in the current Scope The Search is not recursive !!

Attributes

final def withLocal(name: String, id: Symbol): Scope

Create a new Scope with the mapping (name -> id) in locals The parent of the new Scope is the caller

Create a new Scope with the mapping (name -> id) in locals The parent of the new Scope is the caller

Value parameters

id

(Identifier) -

str

(name) -

Attributes

final def withLocals(locals: Bag): Scope

Attributes

final def withParam(name: String, id: Symbol): Scope

Create a new Scope with the mapping (name -> id) in params The parent of the new Scope is the caller

Create a new Scope with the mapping (name -> id) in params The parent of the new Scope is the caller

Attributes

final def withParams(params: Bag): Scope

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product