codegen

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Convert to multi-project build in preparation to adding new modules

See #304

  1. … 260 more files in changeset.
Polish

- Normalise placement of `private`, `protected`, `internal` and

`inline` modifiers

  1. … 42 more files in changeset.
Improve logging behaviour

- Make compiler messages format closer to Kotlin's

- Format messages only if the will be logged

  1. … 6 more files in changeset.
Handle `HasImplicitReceiver` annotation via Kotlin compiler plugin

See #155

  1. … 13 more files in changeset.
Polish top-level definitions, parameter lists and exceptions

* Separate top-level definitions by two lines

* Segregate visibility modifier of top-level definition to

its own line

* Prefer starting long parameter lists at the next line (more

sustainable in face of method renames)

* Remove unnecessary `Exception` suffix from class names

* Remove unnecessary prefixes from field names

* Use better name for exception variables

  1. … 28 more files in changeset.
Emit extensions with explicit type arguments in member invocation

To avoid any ambiguities in Kotlin's type inference.

  1. … 1 more file in changeset.
Don't generate extensions for fully qualified builtin plugin ids

Until we take a decision on what to do about remote plugins (#185).

See #168

Include link to the user guide in builtin plugin extensions

See #168

Keep builtin plugin extensions at the PluginDependenciesSpec level

See #168

  1. … 3 more files in changeset.
Polish comment

Generate builtin plugin id extensions

See #168

    • -0
    • +96
    ./PluginIdExtensions.kt
  1. … 6 more files in changeset.
Make types internal so they don't show up in content assist

During script editing where they shouldn't be used.

  1. … 1 more file in changeset.
Revert back to using method references after upgrade

The compiler errors were just a side-effect of using the dev version of

the compiler with the 1.1-M01 runtime.

  1. … 3 more files in changeset.
Upgrade to Kotlin 1.1-M02 :tada:

Resolves #164

  1. … 7 more files in changeset.
Import java.lang exceptions for compatibility with Kotlin plugin

Version 1.1.0-dev-3687

  1. … 5 more files in changeset.
Fix remaining Windows test failures

  1. … 4 more files in changeset.
Report API jar generation progress

Resolves #116

  1. … 9 more files in changeset.
Add notice to each generated extension

See: #117

  1. … 4 more files in changeset.
Include documentation in generated API extensions

See: #117

  1. … 5 more files in changeset.
Extract `ApiJar` and `ApiExtensionsJar` modules

See: #117

    • -0
    • +59
    ./ApiExtensionsJar.kt
  1. … 6 more files in changeset.
Support navigating to generated extensions sources

See #117

  1. … 4 more files in changeset.
Generate Action<T> extensions at runtime

This ensures the generated extensions match the Gradle API being used by

the build script.

See: #117

    • -71
    • +0
    ./tasks/GenerateActionExtensions.kt
  1. … 10 more files in changeset.
Move codegen code to main source set

Mainly to work around a loader constraint violation that appeared when

updating to the latest snapshot.

In the long run it makes sense to have the code available in the

distribution for when we implement code generation at the project site.

Temporarily disable Kotlin API generation until the Action extensions

can be generated again.

Temporarily disable checking the `copy` sample until the Action

extensions are available.

    • -0
    • +152
    ./ActionExtensionWriter.kt
    • -0
    • +35
    ./MethodDescriptor.kt
    • -0
    • +178
    ./MethodSignature.kt
    • -0
    • +45
    ./ZipInputStreamEntry.kt
    • -0
    • +71
    ./tasks/GenerateActionExtensions.kt
  1. … 17 more files in changeset.