Files
kotlin-fork/libraries/tools/kotlin-stdlib-gen
Alexander Udalov 8f33830f29 Suppress UNCHECKED_CAST instead of CAST_NEVER_SUCCEEDS in several places
This is related to KT-6611 being fixed recently. Note that not all cases of
incorrect "cast never succeeds" were fixed
2016-07-13 13:42:42 +03:00
..

Code Generation for Standard Library

Some of the code in the standard library is created by code generation based on templates. For example, many Array methods need to be implemented separately for Array, ByteArray, ShortArray, IntArray, etc.

To run the code generator from a kotlin checkout

cd libraries/tools/kotlin-stdlib-gen
mvn compile exec:java

This then runs the GenerateStandardLib.kt script to create the source from the files for java.lang.Iterable and java.util.Collection etc.