Skip to content

Scope.read

Dokka 2.2.0 generates this reference of the Kotlin spec builder during each site build from the Kotlin sources, and its summary lists every class and function. The guide shows the builder in use, the Java builder's reference covers the handles, types and expressions it shares, and the extensions read the data.

fun read(name: String, type: IntType): IntField<I>

name: type, an integer at this block's depth.


fun read(name: String, type: FloatType): FloatField<F>

name: type, a float at this block's depth.


fun read(name: String, type: NumType): NumField<N>

name: type, an integer or float at this block's depth.


fun read(name: String, type: StringType): StringField<S>

name: type, a string at this block's depth.


fun read(target: Field<*>, type: Type<*>): DynField

x: type through a handle, for a type with dimensions or a name defined elsewhere, as Iris.read.

Return

the handle of the name as this definition leaves it


fun read(target: Discard, type: Type<*>)

_: type, which reads a value and keeps nothing.