Commit Graph

44574 Commits

Author SHA1 Message Date
Ilya Gorbunov 6955cabbba Improve KPropertyN documentation
Provide missing documentation for Getter and Setter of KProperty1/2.
Fix the link to the 'getExtensionDelegate' extension.
2018-03-12 23:17:38 +03:00
Sergey Igushkin 07b811460a Deal with unnamed Gradle inputs/outputs
Fix the only unnamed input added to a Gradle task at runtime.
Add a test that checks for unnamed task inputs.

Issue #KT-23085 Fixed
2018-03-12 21:54:03 +03:00
Alexey Tsvetkov 97700316f5 Replace compileOnly with testCompileOnly in :generators
In Gradle testCompileOnly configuration does not extend compileOnly.

Since :generators project does not have main source set,
compileOnly dependencies have never worked.

Instead "kotlin-reflect" was resolved transitevely trough
:compiler:frontend.script module (a runtime dependency becomes
a compile transitive dependency).

In ccd6263787 I replaced `runtime` dependency
on "kotlin-reflect" with `runtimeOnly` breaking `:generators:compileTestKotlin`.
2018-03-12 20:07:31 +03:00
Sergey Igushkin 32df9c00ee Update literals in the grammar reference
Add missing long literal suffix
Add binary integer literals
Introduce IntegerLiteral lexer rule, which is closer to the actual lexer

Issue #KT-22713 Fixed
2018-03-12 18:02:22 +03:00
Sergey Igushkin 41044cd277 Fix the rule for valueArguments 2018-03-12 18:02:08 +03:00
Alexey Belkov 4b5b9b40e7 Grammar: Fix "object" rule (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov d98c454806 Grammar: Fix "LabelName" rule (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov 4ffd4f8060 Grammar: Fix "labelDefinition" rule in precedence table (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov 2b9f26a0da Grammar: Fix "functionType" rule (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov d0f3001fd5 Grammar: Fix "optionalProjection" rule (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov d6496814b2 Grammar: Fix "enumEntry" rule (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov 8f88bc0a3c Grammar: Fix broken link (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov 3cb952df5d Grammar: Add terminating semicolons (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov 6fa87f98ca Grammar: Improve wording (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Belkov c0866e7ba2 Grammar: Fix rule headings in section "Lexical structure" (KT-22676) 2018-03-12 18:02:08 +03:00
Alexey Tsvetkov e8f8488d54 Add diagnostic task to print all shadow jars in compile classpaths 2018-03-12 17:31:11 +03:00
Alexey Tsvetkov ccd6263787 Use runtimeOnly dependency in kotlin-reflect
"kotlin-reflect" is a shadow jar which breaks incremental compilation
to avoid non-incremental builds, project should add
* `compileOnly` dependency on ":kotlin-reflect-api"
* `runtimeOnly` dependency on ":kotlin-reflect"
* `runtime` dependency is not recommended because it leaks into compile
* classpath
through transitive dependencies
2018-03-12 16:09:04 +03:00
Pavel V. Talanov dc27a3f6d0 Minor: lightClassUtils, less specific return type 2018-03-12 12:05:08 +01:00
Pavel V. Talanov 32516a3f33 Refactor: split *LightClassGenerationSupport into separate files
Move cli binding trace implementation to top level
2018-03-12 12:05:05 +01:00
Pavel V. Talanov f421181e16 Split LightClassGenerationSupport into separate entities
LightClassGenerationSupport:
    Includes utilities related to generating light classes
    Primary client of this service are KtLight* implementation classes
KotlinAsJavaSupport:
    Provides APIs to transform kotlin code into Psi* entities
    Primary client of this service is JavaElementFinder
2018-03-12 12:04:59 +01:00
Ilya Gorbunov 62d409a9ba Use dex-method-list:3.0 from maven central
Update changed API usages and reformat code according to code style.
2018-03-09 19:39:42 +03:00
Mikhael Bogdanov 95a7e6c2d5 Minor.Reformat 2018-03-08 11:50:09 +01:00
Mikhael Bogdanov c1c8660e55 Don't try to transform sam wrappers in same module
#KT-22304 Fixed
2018-03-08 11:50:08 +01:00
Mikhail Glukhikh 2a6f1d7731 Regenerate tests 2018-03-07 19:24:56 +03:00
Mikhail Glukhikh cc5821382c Compilation fix 2018-03-07 19:15:17 +03:00
Mikhail Glukhikh 71a6827b1c MPP wizard step refactoring: use UI layout DSL 2018-03-07 19:07:56 +03:00
Mikhail Glukhikh ea4b04780c MPP wizard fix: remove non-existing modules from settings.gradle 2018-03-07 19:07:56 +03:00
Mikhail Glukhikh 1d0c5413de MPP wizard: add combobox selecting common module position + extra checks
So #KT-23097 Fixed
2018-03-07 19:07:55 +03:00
Mikhail Glukhikh 879779ec0d MPP wizard: take default JDK from default project template
Related to KT-23097
2018-03-07 19:07:55 +03:00
Mikhail Glukhikh 4f2701385d MPP wizard: set sourceCompatibility / jvmTarget for JVM module
Related to KT-23097
2018-03-07 19:07:55 +03:00
Alexey Sedunov d9aa1796cd MPP: Support multiple 'expectedBy' dependencies for single module
#KT-22865 Fixed
2018-03-07 18:34:03 +03:00
Toshiaki Kameyama e3a69d118f Disable "Add labeled return" for suspend lambdas #KT-23126 Fixed 2018-03-07 16:10:44 +03:00
Toshiaki Kameyama 5d1f5d9bca "Remove redundant 'if'" now works correctly with labeled return
So #KT-23109 Fixed
2018-03-07 16:01:38 +03:00
Toshiaki Kameyama 733cb42ced Make implicit this inspection work for lambda invocation #KT-22970 Fixed 2018-03-07 15:58:23 +03:00
Toshiaki Kameyama a87f652591 Reformat intentions/Utils 2018-03-07 15:41:39 +03:00
Toshiaki Kameyama dd4ceb8c0f Move getCallableDescriptor function declaration to Utils 2018-03-07 15:41:07 +03:00
Toshiaki Kameyama f48eacfbd4 Add inspection (INFORMATION) to convert Pair constructor into to call
So #KT-22933 Fixed
2018-03-07 15:40:19 +03:00
Toshiaki Kameyama 963e430b42 Make "Add annotation target" available on use-site annotation
So #KT-22861 Fixed
So #KT-22862 Fixed
2018-03-07 15:33:28 +03:00
Mikhail Glukhikh 442a89bc6c ModuleDescriptor now sees internals of its expected by #KT-15739 Fixed 2018-03-07 13:58:31 +03:00
Mikhail Glukhikh 0c4c9251d6 Sort modifiers: process visibility & modality after others
Related to KT-22954
2018-03-07 13:57:16 +03:00
Toshiaki Kameyama b9e7e8fca3 Sort modifiers: process final modifier correctly #KT-22954 fixed 2018-03-07 13:34:25 +03:00
Felix Guo e88d5b2a76 Fix typo in README (#1547)
`qualify` -> `quality`
2018-03-07 10:37:40 +01:00
Dmitry Jemerov 81adbcb7e6 Support for implicit package prefixes
Now, if all Kotlin files directly under a source root have the same
package statement, it's used as an implicit package prefix for that
source root. It's honored by the package name/directory name mismatch
inspection and by new file creation actions;
support in refactorings is TODO.

 #KT-17306 Fixed
2018-03-07 10:31:57 +01:00
Yan Zhulanow 753319a89d Pill: Rewrite existing "idea.home.path" option if already set 2018-03-06 22:27:55 +03:00
Yan Zhulanow 799c0f28b7 Pill: Fix platform home directory (this fixes IDE tests) 2018-03-06 22:27:55 +03:00
Yan Zhulanow d1a4acb81f Pill: Add "IDEA (No ProcessCancelledException)" run configuration 2018-03-06 22:27:54 +03:00
Yan Zhulanow 8e2ef6bedd J2K: Script Codegen (step 2) 2018-03-06 22:27:53 +03:00
Yan Zhulanow 7711624308 J2K: Script Codegen (step 1) 2018-03-06 22:27:51 +03:00
Yan Zhulanow fa8a3b55f3 REPL, Refactoring: A number of trivial renames/moves 2018-03-06 22:27:51 +03:00
Yan Zhulanow 82c72f228a REPL, Refactoring, Minor: Lower property visibility 2018-03-06 22:27:50 +03:00