Commit Graph

14635 Commits

Author SHA1 Message Date
Andrey Breslav 12f06d032b checkModifiersAndAnnotationsInPackageDirectives() moved to DeclarationsChecker 2014-03-17 21:40:18 +04:00
Andrey Breslav 0243bacab0 checkSupertypesForConsistency() moved to declarations checker 2014-03-17 21:40:18 +04:00
Andrey Breslav 131d6ddd3d DelegatingType extracted 2014-03-17 21:40:17 +04:00
Andrey Breslav a3075f90db Forced resolution improved to handle type parameter bounds 2014-03-17 21:40:17 +04:00
Andrey Breslav 5ea5d8a9c3 CONSTRUCTOR_IN_TRAIT check moved to DeclarationsChecker 2014-03-17 21:40:17 +04:00
Andrey Breslav 3e22928666 Files in TopDownAnalysisContext are stored explicitly
To avoid the necessity of registering mutable package fragments in order to register files
2014-03-17 21:40:16 +04:00
Andrey Breslav 5c7c494235 Package directives resolved in lazy TDA 2014-03-17 21:40:16 +04:00
Andrey Breslav 63d5855cb4 Minor. ClassDescriptorWithResolutionScopes instead of MutableClassDescriptor 2014-03-17 21:40:16 +04:00
Andrey Breslav fd9cb59841 TopDownAnalyzer supports lazy mode 2014-03-17 21:40:15 +04:00
Alexey Sedunov 3f09b0e030 Update to IDEA 135.445 2014-03-17 19:51:35 +04:00
Alexander Udalov 8b18309b01 Don't write "ResolvedCall<? extends CallableDescriptor>"
ResolvedCall has a type parameter D which extends CallableDescriptor.
Hence in Java "ResolvedCall<? extends CallableDescriptor>" = "ResolvedCall<?>"

The same story with these classes:
- ResolutionTask
- CallCandidateResolutionContext
- OverloadResolutionResults
2014-03-17 19:09:09 +04:00
Alexander Udalov 7d6423fcf1 Minor, add assertion messages, fix warnings 2014-03-17 19:09:09 +04:00
Alexander Udalov 338bc2f9ec Fix incorrect apidoc for 'kotlin'
KDoc was confused because now there are two package fragments for package
'kotlin' (built-ins and stdlib). KDoc's KPackage now has a list of descriptors,
not only one.

This fixes missing documentation for top-level members in package 'kotlin' in
the apidoc

 #KT-2521 Fixed
2014-03-17 19:09:08 +04:00
Alexander Udalov 93db022059 Minor, fix wrong string template in KAnnotation.toString() 2014-03-17 19:09:08 +04:00
Alexander Udalov 00170357fd Clean code in KDoc
Fix warnings, outdated TODOs, formatting, etc.
2014-03-17 19:09:08 +04:00
Alexander Udalov 0dfacd8b20 Make KDoc generate documentation on red code
KDoc is not a compiler, so it should not care whether or not the code is valid.
Therefore suppress the compiler's exit code, errors and warnings in KDoc plugin
2014-03-17 19:09:08 +04:00
Mikhael Bogdanov b1d76d6ab0 Maven inline option support 2014-03-17 17:28:46 +04:00
Mikhael Bogdanov 0b11c717c6 Gradle inline option support 2014-03-17 17:28:46 +04:00
Mikhael Bogdanov 22daacefbe Added inline flag to ant build tool 2014-03-17 17:28:46 +04:00
Natalia Ukhorskaya e06e4b8e74 Merge pull request #416 from nskvortsov/KT-4690
Test common Gradle property for kotlin version
2014-03-17 13:24:01 +00:00
Natalia Ukhorskaya a9d3543967 Gradle: do not add ext prefix for kotlin_version property
#KT-4690 Fixed
2014-03-17 16:30:25 +04:00
asedunov 85dbd8cf49 Merge pull request #410 from kuity/unnecessaryParensInWhenToIf
Fix KT-4385 "Unnecessary parentheses in "replace when with if"
2014-03-17 13:00:10 +01:00
Nikita Skvortsov 0b6947b722 Test common Gradle property for kotlin version 2014-03-17 15:26:25 +04:00
Natalia Ukhorskaya 0045edbebe Android tests: revert sdk version to 4.1 2014-03-17 14:00:20 +04:00
Alexander Udalov 7a2fce4fba Add regression tests for obsolete issues
#KT-2592 Obsolete
 #KT-2768 Obsolete
2014-03-16 03:18:26 +04:00
Alexander Udalov 65edd6a16e Make KotlinBinaryClassCache thread-local 2014-03-14 17:26:48 +04:00
Alexander Udalov 307f52895a Refactor KotlinJvmBinaryClass, VirtualFileKotlinClass, etc.
VirtualFileKotlinClass now reads its header and name on creation. This is not
lazy enough and may be slower in some circumstances, but has the following
advantage: if anything is wrong in the header, a VirtualFileKotlinClass
instance will not be created at all, making it nearly impossible for the client
code to operate on invalid data causing all kinds of exceptions
2014-03-14 16:00:20 +04:00
Alexander Udalov 9bf0d014d5 Sort out "isSpecialAnnotation" method logic
Remove duplicate method, include all needed annotations (seems that some of
them were forgotten in either of the two methods)
2014-03-14 16:00:19 +04:00
Lingzhang 877b9f2d99 KT4385 Bug Fix for Unnecessary Parentheses in WhenToIfIntention 2014-03-13 21:26:03 -04:00
Zalim Bashorov 7b503bbe6f Minor in JS backend: added regression tests.
#{KT-2219, KT-2470, KT-2507, KT-2222, KT-2995, KT-2221} Obsolete
2014-03-13 22:57:41 +04:00
Svetlana Isakova 604e062f91 Fixed assertion error for incomplete code. 2014-03-13 19:09:01 +04:00
Natalia Ukhorskaya 904217d793 Gradle: set output directory to tmp/kotlin-classes to exclude it in IDE.
This is a temporary workaround: should be removed when Android Studio will get excluded output directories from Gradle Model (see AndroidContentRoot.java:35)
 #KT-4507 Fixed
2014-03-13 17:32:13 +04:00
Mikhael Bogdanov 6ac6bd0a7c KT-4388: Unclear warning for inline function
#KT-4388 Fixed
2014-03-13 16:35:56 +04:00
Zalim Bashorov a5e74d7db3 JS backend: switch to use Function.call for calling extension lambdas and local extension functions.
Main reason for this change is (simple) interop with native code when pass extension lambda to or from native code.

(#KT-4238, #KT-4345) Fixed
2014-03-13 14:17:09 +04:00
Zalim Bashorov 206be96509 JS backend: added tests which pass an extension lambda to native code and visa versa.
Added workarounds in some tests because Rhino wrongly implicitly converts first parameter of `Function.call` to `Object`. But it's contradicts to ES5 specification(par. 15.3.4.4).

(#KT-4238, #KT-4345) In progress
2014-03-13 14:17:09 +04:00
Zalim Bashorov 597fff45e3 Minor in JS backend: made stable order of function parameters for captured variables. 2014-03-13 14:17:09 +04:00
Mikhael Bogdanov 769f559adf Wise exception propagation for inlines errors 2014-03-13 14:06:58 +04:00
Mikhael Bogdanov f475f3ba31 Inline checkbox in BytecodeToolWindow 2014-03-13 14:06:57 +04:00
Natalia Ukhorskaya 53e41e94d9 Fix maven tests 2014-03-13 13:56:28 +04:00
Natalia Ukhorskaya 0340aba2ce Tools: add new gradle-test module to root pom.xml 2014-03-13 13:56:27 +04:00
Mikhael Bogdanov 768c565d3f Fix for rubish labels inside captured field access chains 2014-03-13 10:36:55 +04:00
Mikhael Bogdanov c95001370a Code clean 2014-03-13 10:36:54 +04:00
Mikhael Bogdanov 2dcc0bce46 Inline refactoring: more templates for captured fields
Support of complex lambda inlining cases
2014-03-13 10:36:54 +04:00
Natalia Ukhorskaya 4a8bcc614a Resolve compileTimeInitializer for variable in lazy resolve 2014-03-13 10:07:18 +04:00
Natalia Ukhorskaya 89d99d2848 Remove toInt() from rendering IntValue 2014-03-13 10:07:17 +04:00
Natalia Ukhorskaya a80114d720 Use one method to create compile-time value 2014-03-13 10:07:16 +04:00
Natalia Ukhorskaya 201af666a9 Move isVar check for compile time initializer out of the setter 2014-03-13 10:07:14 +04:00
Natalia Ukhorskaya 000dd4478a Rename 2014-03-13 10:07:13 +04:00
Natalia Ukhorskaya df3ed5059c StorageManager for compile-time initializer 2014-03-13 10:07:12 +04:00
Natalia Ukhorskaya 17259a052e Write constant initializer for java properties 2014-03-13 10:07:11 +04:00