Natalia Selezneva
1f75eaed9a
Don't highlight gradle scripts during gradle import.
...
Show warning on the top panel for these files
2018-03-17 00:21:25 +03:00
Natalia Selezneva
5f1118e820
Don't highlight scripts if resolver returns Failure.
...
Note that we don't highlight script when ScriptDependenciesFileAttribute is not set.
2018-03-17 00:21:17 +03:00
Natalia Selezneva
4b4acfee2c
Scripts: display errors from external resolver in panel if text range is empty
2018-03-17 00:21:10 +03:00
Natalia Selezneva
26a4b67fa3
Introduce default ScriptTemplate for Gradle scripts
...
^KT-23228 Fixed
2018-03-17 00:21:02 +03:00
Natalia Selezneva
9f02664351
Minor: reformat
2018-03-17 00:20:55 +03:00
Vyacheslav Gerasimov
042873fa2c
Build: add maven.repository.mirror property
...
May be used to add additional repository to all projects
(cherry picked from commit d8407b9)
2018-03-16 20:07:31 +03:00
Nikolay Krasko
79d9ea6716
Check module is from given set of modules before passing it to callbacks
...
`module` variable is fetched from `moduleInfoByDescriptor`, and this map
is filled in `createModuleDescriptor`, witch is called in
`doGetDescriptorForModule` only for modules from the given set.
2018-03-16 18:19:52 +03:00
Nikolay Krasko
7f501e3a78
Minor: document fields usages in ResolverForProjectImpl
2018-03-16 18:03:21 +03:00
Nikolay Krasko
03459eb808
Protect resolverByModuleDescriptor collection with storageManager lock
...
Read access from isResolverFromModuleDescriptorComputed was exposed through
DelegatingPackageFragmentProvider.
2018-03-16 16:40:38 +03:00
Nikolay Krasko
9145470f79
Minor: remove "JVM" constant usages in multi target platform
2018-03-16 16:40:38 +03:00
Nikolay Krasko
34569c2541
Minor: hasTopLevelCallables rename
2018-03-16 16:40:37 +03:00
Nikolay Krasko
14a0434737
Remove reference to binding context from LazyLightClassDataHolder cache
...
The ultimate goal is to remove references to binding context and resolve
result from light classes. There still can be references from `diagnostics`
field, but `bindingContext` is unneeded and can be removed.
Relates to snapshots from IDEA-187395.
2018-03-16 16:40:37 +03:00
Nikolay Krasko
481a5bc28d
Update JUnit3RunnerWithInners.java for Gradle 4.6 (KT-23292)
...
Update after "Executer -> Executor" rename
https://github.com/gradle/gradle/commit/3f1487e8006d0c606e3be25267a238427468917a
#KT-23292 Fixed
2018-03-16 16:40:37 +03:00
Yan Zhulanow
e2ed77354f
Pill: Update module structure, add missing modules metadata and metadata.jvm
2018-03-16 16:31:55 +03:00
Ilmir Usmanov
826d667398
Remove redundant locals
...
Do not transform already transformed suspend lambdas
Ignore duplicates of continuation in local variable table during redundant locals elimination.
2018-03-16 16:26:14 +03:00
Ilmir Usmanov
81f3e39f29
Do not generate ACONST_NULL as continuation of crossinline suspend lambda
2018-03-16 16:26:13 +03:00
Ilmir Usmanov
6b7173ba13
Forbid default inline/crossinline suspend parameters
2018-03-16 16:26:12 +03:00
Ilmir Usmanov
7224b99928
Add intention to remove suspend from parameter on suspend inline function
2018-03-16 16:26:11 +03:00
Ilmir Usmanov
6854135077
Support crossinline suspend lambda as parameter of inline function
...
Use fake continuation instead of ALOAD 0 while inlining
Do not generate state machine for inner lambdas and inner objects,
which capture crossinline suspend lambda.
#KT-19159: Fixed
2018-03-16 16:26:11 +03:00
Ilmir Usmanov
042ca55be7
Do not generate suspension points for crossinline lambdas
2018-03-16 16:26:10 +03:00
Ilmir Usmanov
e6a353e590
Remove returns unit markers in suspend lambdas
2018-03-16 16:26:09 +03:00
Ilmir Usmanov
e169383f76
Fix problem with transforming suspend lambda instantiation by itself
...
#KT-21605: Fixed
2018-03-16 16:26:09 +03:00
Svyatoslav Scherbina
f3bc8d179c
Add one more IR text test case
2018-03-16 14:47:20 +03:00
Svyatoslav Scherbina
aac940415f
Fix psi2ir when type parameter bound goes after the type parameter
2018-03-16 14:47:18 +03:00
Simon Ogorodnik
c0b0f6d1ca
Extract PSI to separate module
2018-03-16 13:32:14 +03:00
Toshiaki Kameyama
55c93bc8b6
Fix NPE on conversion: run/apply with explicit signature -> let/also
...
So #KT-22949 Fixed
2018-03-16 12:17:24 +03:00
Toshiaki Kameyama
f93b21eaa2
Fix "Add function to supertype" braces #KT-23215 Fixed
2018-03-16 12:11:26 +03:00
Alexander Udalov
404bcc58e5
Update bootstrap to 1.2.40-dev-967
2018-03-15 20:47:35 +01:00
Alexander Udalov
4484335eac
Update light classes test data after d0ed0c4049
2018-03-15 18:23:16 +01:00
Alexander Udalov
a23af6306c
Update test data of log tag consistency test on lint
...
The reason is that UastUtils.tryResolveNamed (in
LogDetector.checkTagConsistent) started to refer to the field of the
property in the companion after d0ed0c4049 instead of its getter
2018-03-15 18:19:43 +01:00
Denis Zharkov
21932b5824
Use mockJDK as a bootClasspath for AbstractCompileKotlinAgainstJavaTest
...
Otherwise JAVA_HOME is being used that lead to test result depending
on minor JDK version used on a computer
#KT-21047 Fixed
2018-03-15 19:00:31 +03:00
Denis Zharkov
1766812bf3
Minor. Reformat AbstractCompileKotlinAgainstJavaTest
2018-03-15 19:00:31 +03:00
Denis Zharkov
c334f46825
Avoid retaining reference to ProtoBuf.Package in JvmPackagePartSource
...
Otherwise, 2e933a165a doesn't help
2018-03-15 18:59:44 +03:00
Denis Zharkov
4b78abaa7a
Minor. Reformat JvmPackagePartSource
2018-03-15 18:59:44 +03:00
yukuku
6f6b0baf3b
Fix wrong example on the docs of @PurelyImplements
2018-03-15 18:56:26 +03:00
Alexey Tsvetkov
baa20e2677
Ensure absolute paths are written to module xml file
...
Since d0ca0dca2b
first IC build uses CompilationMode.Rebuild instead of Incremental
to avoid unnecessary work (computing API difference etc.).
However there is a branch that does not transform source files
paths to absolute ones before writing them to module xml file.
In our plugins we have always transformed files to absolute ones before
passing them to IncrementalJvmCompilerRunner, so there is no problem.
But third party build systems could pass relative paths to IncrementalJvmCompilerRunner
(namely Kobalt does so).
It turned out to break builds because KotlinToJVMBytecodeCompiler takes
module xml file's (which is a temporary file itself) parent as a base
for relative source files (see KotlinToJVMBytecodeCompiler.getAbsolutePaths).
This change ensures that makeModuleFile always uses absolute files.
#KT-22542 fixed
2018-03-15 18:06:13 +03:00
Anton Bannykh
e377a30929
Use mocha instead of QUnit for debugging stdlib tests in browser
2018-03-15 17:54:17 +03:00
Anton Bannykh
338bde23fc
JS stdlib: run kotlin.test library tests
2018-03-15 17:54:17 +03:00
Vyacheslav Gerasimov
f0ec073bf6
Build: Include ultimate projects only if intellijUltimateEnabled
2018-03-15 16:35:20 +03:00
Vyacheslav Gerasimov
ef018d2ac1
Make dependencies on Android gradle plugin non-transitive
...
com.android.tools.build:gradle brings about 50 unused transitive dependencies including idea-core and uast, sometimes it breaks IDE features like navigation to declarations and debugging.
Inline contents of ReflectionUtil.findMethod to remove dependency on idea-core
2018-03-15 15:20:22 +03:00
Anton Bannykh
04cbea4956
JS: fix Long constant translation (KT-19228 fixed)
2018-03-15 14:58:10 +03:00
Alexey Sedunov
b7d79cc146
Gradle: Do not resolve sourcesets in projects with Android module
2018-03-15 13:17:43 +03:00
Denis Zharkov
e1c29ad3fd
Regenerate tests for androidx support annotations
2018-03-15 10:34:33 +03:00
Denis Zharkov
7d8e7f481d
Add a reference to third-party/annotations/androidx in license
2018-03-15 10:34:33 +03:00
Jake Wharton
b22f051edb
Add support for nullability annotations in androidx package.
2018-03-15 10:34:33 +03:00
Toshiaki Kameyama
a3b35cbfe0
Reformat: ConvertToStringTemplateIntention
2018-03-15 10:32:07 +03:00
Toshiaki Kameyama
66906e2c80
Process '$' correctly in "Convert concatenation to template"
...
So #KT-12226 Fixed
2018-03-15 10:29:58 +03:00
Alexey Belkov
3b2bbee595
Standardize and improve descriptions of intentions/inspections
2018-03-15 09:56:47 +03:00
Nikolay Krasko
bc7ccbc39b
Fix stub mismatch for top level declaration with JvmPackageName (KT-21831)
...
ClassId stores jvm name and it differs from kotlin name in that case.
#KT-21831 Fixed
2018-03-14 21:16:58 +03:00
Toshiaki Kameyama
c1f43558b9
Unwrap: function parameter (KT-14788)
...
#KT-14788 Fixed
2018-03-14 21:16:58 +03:00