Commit Graph

35758 Commits

Author SHA1 Message Date
Alexey Andreev c558b5d2b2 JS: regenerate stdlib 2016-12-08 15:41:41 +03:00
Alexey Andreev 1ebf81c3ff Don't report about unused parameters on external functions and constructors 2016-12-08 15:41:41 +03:00
Alexey Andreev 7a6b510ddb Include external modifier to serialized descriptors for classes and properties 2016-12-08 15:41:40 +03:00
Alexey Andreev a7ce770cb4 Don't report error for properties and functions without body that either external by themselves or are members of external classes 2016-12-08 15:41:40 +03:00
Alexey Andreev 68412ae94f JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc 2016-12-08 15:41:39 +03:00
Alexey Andreev e0cb56b3c3 JS: use external modifier instead of @native annotation 2016-12-08 15:41:39 +03:00
Alexey Andreev 0c2da93e5f Allow external modifier on classes and properties 2016-12-08 15:41:38 +03:00
Alexey Andreev ba2443bcb3 Add external property to class and property descriptors 2016-12-08 15:41:38 +03:00
Nikolay Krasko 43948a0170 Wrap options for constructor parameters
#KT-12176 In Progress
2016-12-08 15:15:12 +03:00
Nikolay Krasko 300601da54 Indent () in if, when, while and do-while with continuation indent (KT-5897)
#KT-5897 Fixed
2016-12-08 15:15:11 +03:00
Nikolay Krasko 211cae2ad2 Refactoring: use when instead of if 2016-12-08 15:15:09 +03:00
Alexander Udalov d5c75ae764 Minor refactoring in frontend/resolution
Fix typos, formatting, diagnostic message
2016-12-08 12:20:37 +03:00
Alexander Udalov 921694e13a Deduplicate code in JavaClassDataFinder 2016-12-08 12:20:36 +03:00
Alexander Udalov 41f2048f96 Minor, introduce DeserializedContainerSource 2016-12-07 21:46:37 +03:00
Alexander Udalov 228d0a1c43 Move "missing dependency class" diagnostic from JVM to common front-end 2016-12-07 21:46:37 +03:00
Alexander Udalov 3b18531b20 Add expectedVersion to IncompatibleVersionErrorData, move to deserialization 2016-12-07 21:46:36 +03:00
Alexander Udalov c811c1bea5 Reflection: add KAnnotatedElement.findAnnotation
#KT-12250 Fixed
2016-12-07 21:45:24 +03:00
Alexander Udalov 414daef001 Rename KotlinVersion->KotlinCompilerVersion, move to module util.runtime
Rename to avoid confusion with the recently added kotlin.KotlinVersion
2016-12-07 21:11:15 +03:00
Alexander Udalov 65e01f2fdb Fix compilation of module generators 2016-12-07 21:11:15 +03:00
Alexander Udalov 751f546a70 Fix compilation of module android-tests 2016-12-07 21:11:14 +03:00
Denis Zharkov dd392963ac Minor. Rename SyntheticExtensionFunctions -> SyntheticMemberFunctions 2016-12-07 21:04:57 +03:00
Denis Zharkov 035383285c Fix processing synthetic members in completion
Not all synthetic scope's descriptors are extensions (SAM adapters are not)

 #KT-11128 Fixed
2016-12-07 21:04:53 +03:00
Denis Zharkov 891a036b59 Change resolution priority level for SAM adapters
After this change SAM adapters are being resolved in the same group
as members, thus their overload resolution happens simultaneously.

But in the case of overload resolution ambiguity try to filter out all
synthetic members and run the process again.

See the issue and new test for clarification

 #KT-11128 In Progress
2016-12-07 21:04:44 +03:00
Denis Zharkov a4adfb43d4 Minor. Refine substitution for SAM adapters
Introduce CompositionTypeSubstitution instead of manual composition of
two substitutions.

This change is necessary for the later changes where original substitution
will be able to contain outer type parameters

 #KT-11128 In Progress
2016-12-07 21:04:39 +03:00
Denis Zharkov a52ae04aef Fix fast-path check when selecting most specific members
Obviously 'overridableGroup' cannot be both empty and having the single element.
'conflictedHandles' that is what meant to be empty instead
2016-12-07 21:04:08 +03:00
Denis Zharkov 83056c71c9 Minor. Extract FlatSignature factory 2016-12-07 21:04:08 +03:00
Denis Zharkov c45edaa420 Minor. Extract CandidatesCollector as a type alias 2016-12-07 21:04:08 +03:00
shiraji 2815b5e62b KT-15030 Remove redundant calls of conversion methods: false positive for 'toList()'
#KT-15030 Fixed
2016-12-07 19:00:12 +03:00
Mikhail Glukhikh 268702e0cc "Change return type for enclosing fix" now handles TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH correctly #KT-14063 Fixed 2016-12-07 18:52:04 +03:00
Mikhail Glukhikh 2ac8e5b4a7 "Change return type fix" now handles data class properties correctly #KT-15028 Fixed 2016-12-07 18:51:58 +03:00
Mikhail Glukhikh 0994d46038 Convert reference to lambda: handle special case of extension functional type #KT-14985 Fixed 2016-12-07 18:51:53 +03:00
Mikhail Glukhikh e904e56de3 Convert reference to lambda: correct handling of static method references #KT-14982 Fixed 2016-12-07 18:51:48 +03:00
Mikhail Glukhikh ea8548c55b Simplify boolean == true / false is no longer applicable on flexible boolean #KT-15087 Fixed 2016-12-07 18:51:42 +03:00
Mikhail Glukhikh 4b86c4aa27 Infrastructure test for intention descriptions availability added 2016-12-07 18:51:37 +03:00
Nikolay Krasko 06172e7110 Refactoring: move runSynchronouslyWithProgress to ProgressUtil 2016-12-07 17:32:38 +03:00
Nikolay Krasko fd8d616d35 Use lazy resolve for counting list of inlined function during step out (KT-14892)
#KT-14892 Fixed
2016-12-07 17:32:38 +03:00
Nikolay Krasko fc5b493fd3 Run full resolve in debugger with write action priority (KT-14602)
#KT-14602 Fixed
2016-12-07 17:32:38 +03:00
Nikolay Krasko 45532e480f Remove repeating contexts in CompositeBindingContext creation 2016-12-07 17:32:38 +03:00
Nikolay Krasko 76916b0877 Avoid requesting line number for bad offset (EA-87678)
Example of stack trace:
java.lang.IndexOutOfBoundsException: Wrong offset: 14847. Should be in range: [0, 14846]
	at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:141)
	at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:919)
	at org.jetbrains.kotlin.idea.refactoring.KotlinRefactoringUtilKt.getLineCount(kotlinRefactoringUtil.kt:344)
	at org.jetbrains.kotlin.idea.debugger.KotlinPositionManager.getSourcePosition(KotlinPositionManager.kt:125)
2016-12-07 17:32:38 +03:00
Nikolay Krasko ee1ce184f9 Don't resolve reference if result is useless 2016-12-07 17:32:38 +03:00
Ilya Gorbunov 7a019e80fe Exclude bundled org.jetbrains.annotations from kotlin-runtime. Add a dependency on org.jetbrains:annotations:13.0 instead. 2016-12-06 22:25:06 +03:00
Ilya Gorbunov 2e7456c56e Add non-compiled sources to runtime before packaging sources jar. 2016-12-06 21:31:41 +03:00
Ilya Gorbunov 2fa98323f1 Refactor: rename files. 2016-12-06 21:30:35 +03:00
Ilya Gorbunov d5f5f88cda Add number to string conversion with the specified radix.
#KT-8286
2016-12-06 21:30:35 +03:00
Sergey Mashkov 2ca336fb32 KT-15120 Gradle JS test compile task doesn't pick up production code 2016-12-06 16:51:15 +03:00
Alexey Tsvetkov 7b3bc0235b Fix JS compiler jar search
#KT-15127 fixed
2016-12-06 16:07:43 +03:00
Alexey Andreev 0302fcbb72 JS: don't write native superclass to metadata. Fix KT-15007 2016-12-06 15:42:34 +03:00
Sergey Mashkov e7d6711db3 IDL2K: properly handle clash or val and var attributes 2016-12-06 15:00:35 +03:00
Alexander Udalov 0d99801783 Revert "Add NonVolatileRef to runtime"
This reverts commit 1e9624901a.

For more information, see
https://discuss.kotlinlang.org/t/non-volatile-vs-volatile-captured-refs-by-default/

 #KT-14746 Fixed
2016-12-06 14:59:15 +03:00
Alexander Udalov 04d4351e30 Revert "Make Ref fields volatile"
This reverts commit 6b348bfc6e.

For more information, see
https://discuss.kotlinlang.org/t/non-volatile-vs-volatile-captured-refs-by-default/

 #KT-14746 In Progress
2016-12-06 14:59:14 +03:00