RenameImport

zio.blocks.codegen.ir.Import.RenameImport
final case class RenameImport(path: String, from: String, to: String) extends Import

A rename import that imports a name under an alias.

Value parameters

from

The original name (e.g., "Foo")

path

The package path (e.g., "com.example")

to

The alias name (e.g., "Bar")

Attributes

Example
val imp = RenameImport("com.example", "Foo", "Bar")
// Represents: import com.example.{Foo => Bar} (Scala 2) or import com.example.{Foo as Bar} (Scala 3)
Source
Import.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Import
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala