ImportModule

scala.quoted.Quotes.reflectModule.ImportModule
trait ImportModule

Methods of the module object val Import.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Quotes.this.reflectModule.this.Import.type

Members list

Value members

Abstract methods

def apply(expr: Quotes.this.reflectModule.this.Term, selectors: List[Quotes.this.reflectModule.this.Selector]): Quotes.this.reflectModule.this.Import

Creates an Import with the given qualifier and selectors.

Creates an Import with the given qualifier and selectors.

Value parameters

expr

the qualifier term being imported from

selectors

the list of import selectors

Attributes

Source
Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(expr: Quotes.this.reflectModule.this.Term, selectors: List[Quotes.this.reflectModule.this.Selector]): Quotes.this.reflectModule.this.Import

Copies an Import with the given qualifier and selectors.

Copies an Import with the given qualifier and selectors.

Value parameters

expr

the qualifier term being imported from

original

the original tree being copied

selectors

the list of import selectors

Attributes

Source
Quotes.scala
def unapply(tree: Quotes.this.reflectModule.this.Import): (Quotes.this.reflectModule.this.Term, List[Quotes.this.reflectModule.this.Selector])

Matches an Import and extracts the qualifier and selectors.

Matches an Import and extracts the qualifier and selectors.

Value parameters

tree

the import tree to match against

Attributes

Source
Quotes.scala