Files
kotlin-fork/libraries/tools/kotlin-stdlib-gen
Ilya Gorbunov dccae6c3ff Introduce annotation InlineExposed to indicate internal members effectively public due to usage in inlined functions.
Currently, doesn't affect anything.

Make collectionSizeOrDefault and collectionSizeOrNull internal, but expose them via inlining together with mapCapacity.

Make Regex(Pattern) constructor exposed by inlined Pattern.toRegex
2016-02-01 22:20:27 +03:00
..
2015-10-08 17:48:37 +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.