Andrey Breslav
39de1f131b
Bind references to type parameters in contraints in LAZY mode
2014-03-17 21:55:16 +04:00
Andrey Breslav
2a82c15465
Report UNSUPPORTED on class object constraints in lazy resolve
2014-03-17 21:55:15 +04:00
Andrey Breslav
b72bcfd8ae
Type bounds check for class headers moved to DeclarationsChecker
2014-03-17 21:55:15 +04:00
Andrey Breslav
8be40c29cf
CYCLIC_INHERITANCE_HIERARCHY reworked
...
We do not try to recover too gracefully from a cyclic hierarchy any more:
we simply remove all the edges that belong to a cycle instead of intelligently finding one most convenient edge to cut.
This is done in both lazy and eager resolve to keep tests passing.
2014-03-17 21:55:15 +04:00
Andrey Breslav
ed81102b2f
Minor. Name clash removed (workaround for KT-1)
2014-03-17 21:40:22 +04:00
Andrey Breslav
e70571bafb
Register properties declared in primary constructors in c.getMembers()
2014-03-17 21:40:22 +04:00
Andrey Breslav
1e0910f9c6
Redeclaration check supported in LAZY mode
2014-03-17 21:40:21 +04:00
Andrey Breslav
674d990ba1
More precise return type in ClassDescriptorWithResolutionScopes.getClassObjectDescriptor()
2014-03-17 21:40:21 +04:00
Andrey Breslav
c04ce4401f
getDeclaredCallableMembers() fixed for lazy classes
...
Otherwise synthesized members were not included
2014-03-17 21:40:21 +04:00
Andrey Breslav
d97a5a0d63
Report CLASS_OBJECT_NOT_ALLOWED in LazyClassDescriptor
2014-03-17 21:40:20 +04:00
Andrey Breslav
e97c5379af
Report MANY_CLASS_OBJECTS upon traversing PSI
2014-03-17 21:40:20 +04:00
Andrey Breslav
c3c769194d
Report UNSUPPORTED on annotations on type parameters of classes
2014-03-17 21:40:20 +04:00
Andrey Breslav
5251b3286e
Do not process annotations twice in LAZY mode
2014-03-17 21:40:19 +04:00
Andrey Breslav
81f2f79c79
Import directives are resolved in lazy mode
2014-03-17 21:40:19 +04:00
Andrey Breslav
8bf252f98c
MISSING_VAL_ON_ANNOTATION_PARAMETER reported in DeclarationsChecker
2014-03-17 21:40:19 +04:00
Andrey Breslav
999c987d6c
ANNOTATION_CLASS_WITH_BODY reported in DeclarationsChecker
2014-03-17 21:40:18 +04:00
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