PackageClauseModule

scala.quoted.Quotes.reflectModule.PackageClauseModule

Methods of the module object val PackageClause.

Attributes

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

Members list

Value members

Abstract methods

def apply(pid: Quotes.this.reflectModule.this.Ref, stats: List[Quotes.this.reflectModule.this.Tree]): Quotes.this.reflectModule.this.PackageClause

Creates a package clause package pid { stats }.

Creates a package clause package pid { stats }.

Value parameters

pid

the package name reference

stats

the definitions, imports, or exports within the package

Attributes

Source
Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(pid: Quotes.this.reflectModule.this.Ref, stats: List[Quotes.this.reflectModule.this.Tree]): Quotes.this.reflectModule.this.PackageClause

Copies a package clause package pid { stats }.

Copies a package clause package pid { stats }.

Value parameters

original

the original tree being copied

pid

the package name reference

stats

the definitions, imports, or exports within the package

Attributes

Source
Quotes.scala

Matches a package clause package pid { stats } and extracts the pid and stats.

Matches a package clause package pid { stats } and extracts the pid and stats.

Value parameters

tree

the package clause tree to match against

Attributes

Source
Quotes.scala