Alexey Sedunov
9858b178c0
Change Signature: Fix context element for type code fragments to avoid bogus "Type can not be resolved" warnings
...
#KT-11862 Fixed
2016-04-26 20:11:59 +03:00
Zalim Bashorov
3048c293d0
Minor: fix tests
2016-04-26 19:11:05 +03:00
Alexey Andreev
76cfe8cabc
KT-11100 Fix generation of name of FakeCallableDescriptorForObject that is presumably used to express invoke operator on (companion) objects
2016-04-26 17:04:09 +03:00
Alexey Sedunov
12987de156
Spring Support: Replace accessor name with property name when processing usages in Kotlin files
...
#KT-11880 Fixed
2016-04-26 16:15:32 +03:00
Kirill
6e08f06bfd
Format spaces in infix call (KT-12018)
...
#KT-12018 Fixed
2016-04-26 15:21:33 +03:00
Kirill
01b754b318
Format spaces in cast expression (KT-12035)
...
#KT-12035 Fixed
2016-04-26 15:21:33 +03:00
Alexey Sedunov
a00c524074
Move: Optimize imports after applying "Move declaration to separate file" intention
...
#KT-10174 Fixed
2016-04-26 13:59:11 +03:00
Alexey Sedunov
676000cdf7
Move: Keep original file package name when moving top-level declarations to separate file (provided it's not ambiguous)
...
#KT-10950 Fixed
2016-04-26 13:59:10 +03:00
Alexey Sedunov
332fe29e94
Move: Allow choosing source root in "Move file to directory" intention
...
#KT-11512 Fixed
2016-04-26 13:59:08 +03:00
Alexey Sedunov
aaa873f227
Move: Convert implicit receiver to this when moving class member to companion object
...
#KT-11483 Fixed
2016-04-26 13:59:07 +03:00
Alexey Sedunov
6faedc1adc
Move: Add missing write action
...
#KT-11482 Fixed
2016-04-26 13:59:05 +03:00
Nikolay Krasko
6b7aa98980
Test data modification: Don't compute compiled bytecode for same expression twice
...
Result of dc9fa6d9ac commit.
Previously computation were saved into the map that were invalidated by the computation. Now map is recreated after computation and result is saved into it.
2016-04-25 19:50:22 +03:00
Zalim Bashorov
658eac2d12
Add Unit to compiled part of Kotlin JS stdlib and don't show "Kotlin not configured" for Kotlin JS projects
...
#KT-11556 Fixed
2016-04-25 17:58:51 +03:00
Denis Zharkov
fc25d70edc
Expand JVM built-ins blacklist
...
Add Enum.getDeclaringClass, Enum.finalize and List.sort
2016-04-25 17:41:08 +03:00
Denis Zharkov
62f2bddda9
Add AdditionalBuiltInsMembersSignatureListsTest
...
This test checks that every signature listed within
JvmBuiltInsAdditionalClassPartsProvider corresponds to some real JDK member
2016-04-25 17:41:08 +03:00
Denis Zharkov
7d729a1fe0
Minor. Inline helper properties
2016-04-25 17:41:08 +03:00
Denis Zharkov
0d4a132be5
Minor. Regenerate tests
2016-04-25 17:41:08 +03:00
Denis Zharkov
9bf2538e4c
Introduce predefined enhancement info
...
It can be used to specify enhanced signature for standard JDK methods
without them be actually annotated
#KT-9194 In Progress
#KT-5175 In Progress
#KT-10370 In Progress
#KT-7127 In Progress
2016-04-25 17:41:08 +03:00
Denis Zharkov
3bda613317
Minor. Rename BuiltInClassesAreSerializableOnJvm -> JvmBuiltInsAdditionalClassPartsProvider
2016-04-25 17:41:08 +03:00
Denis Zharkov
a1d4214a39
Use fq-names instead of descriptors when computing ambigious names
...
Because there can be different descriptors that are essentially equal
(from different modules)
See J2K test: testNullableField
2016-04-25 17:41:08 +03:00
Denis Zharkov
28e33aaf56
Use weak-reference based SLRU cache for module resolvers
...
Create new module resolver iff it's weak reference is collected,
but at the same time keep hot modules in SLRU map not to give them be collected
2016-04-25 17:41:08 +03:00
Denis Zharkov
2819c69bc1
Introduce BLACK_LIST_CONSTRUCTOR_SIGNATURES
...
To prevent loading senseless constructors to built-in classes from JDK
2016-04-25 17:41:08 +03:00
Denis Zharkov
1efed64014
Use JVM signatures instead of FQ-names for additional built-ins
2016-04-25 17:41:08 +03:00
Denis Zharkov
8cf29ea4f3
Extract JVM descriptors type mapping from backend to core
...
Also unbind it from ASM types
2016-04-25 17:41:08 +03:00
Denis Zharkov
12bbbb6ff1
Refactor Java resolver components
...
- Move components from LazyJavaResolverContext to JavaResolverComponents
- Drop LazyJavaClassResolver replacing it's usages with module resolver
(now enum entries from another module as annotation arguments are being resolved, see test)
2016-04-25 17:41:08 +03:00
Denis Zharkov
bbbc910e02
Load additional built-in classes constructors from JDK
...
#KT-9194 In Progress
#KT-5175 In Progress
#KT-10370 In Progress
#KT-7127 In Progress
2016-04-25 17:41:08 +03:00
Denis Zharkov
193dd06f50
Use different names for mockJDK and fullJDK
...
It's needed because they both used in one project in some tests,
while IDEA model relies on assumption that JDK's names are unique
2016-04-25 17:41:08 +03:00
Denis Zharkov
adff42add3
Minor. Add absent dependency: J2K -> tests-common
2016-04-25 17:41:08 +03:00
Denis Zharkov
de228da077
Add library invalidation in IDE tests setUp
2016-04-25 17:41:08 +03:00
Denis Zharkov
8d697395cd
Minor. Replace for-loop with 'single' call
2016-04-25 17:41:08 +03:00
Denis Zharkov
7960561c4b
Minor. Use SAM-constructor to overcome overload ambiguity
...
There is an ambiguity since 'forEach' method appeared at Iterable,
that is supertype of Query
2016-04-25 17:41:08 +03:00
Denis Zharkov
b94baede38
Minor. Fix rendered Throwable member scope
2016-04-25 17:41:08 +03:00
Denis Zharkov
5bc5722051
Load additional JDK functions into built-ins member scope
...
#KT-5990 Fixed
#KT-7127 Fixed
#KT-10370 Fixed
2016-04-25 17:41:08 +03:00
Denis Zharkov
137847e0c9
Minor. Refactor DeserializedMemberScope.addNonDeclaredDescriptors
2016-04-25 17:41:08 +03:00
Denis Zharkov
f104be16cf
Minor. Keep substitution in CopyConfiguration instead of originalSubstitutor
2016-04-25 17:41:08 +03:00
Denis Zharkov
128dd43dbd
Minor. Move LoadBuiltinsTest testData to separate directory
2016-04-25 17:41:08 +03:00
Denis Zharkov
e316ab2ee6
Refactor function descriptors copy mechanism
...
Pull up CopyBuilder to interface and inline some custom usages
2016-04-25 17:41:08 +03:00
Denis Zharkov
dbc8830acd
Fix ResolveTest
...
Compare descriptors by their FQ-names instead of references
2016-04-25 17:41:08 +03:00
Denis Zharkov
51a4b81d3e
Minor. Rename AdditionalSupertypes -> AdditionalClassPartsProvider
...
And relevant methods
2016-04-25 17:41:08 +03:00
Denis Zharkov
c918b3e1ae
Minor. Replace type entries of BuiltInsPackageFragment with interface
2016-04-25 17:41:08 +03:00
Denis Zharkov
7fe5a9db8d
Remove JavaToKotlinClassMap dependency on built-ins instance
2016-04-25 17:41:08 +03:00
Denis Zharkov
5bf39689e9
Replace irrelevant usages of JvmBuiltIns.Instance with DefaultBuiltIns.Instance
2016-04-25 17:41:08 +03:00
Denis Zharkov
c667f50741
Delete TargetPlatform.builtins
...
Replace it's usages with relevant singleton reference
2016-04-25 17:41:08 +03:00
Denis Zharkov
ef18d64931
Parametrize module creation by platform with built-ins
2016-04-25 17:41:08 +03:00
Denis Zharkov
7f860fa051
Manually set up built-ins for decompiler
2016-04-25 17:41:08 +03:00
Denis Zharkov
c4a899d9a4
Get rid of some targetPlatform.builtIns usages
...
Retrieve builtIns from module itself when adding dependencies on them
2016-04-25 17:41:08 +03:00
Denis Zharkov
e97fa929ea
Minor. Replace '== JvmPlatform' with 'is JvmPlatform'
2016-04-25 17:41:08 +03:00
Denis Zharkov
e2db5d9a01
Get rid of TargetPlatform.builtIns usages in IDE
...
Retrieve them through resolution facade instead of platform
2016-04-25 17:41:08 +03:00
Michael Bogdanov
3858515e44
Added kotlin-test.jar to android module dependency
2016-04-25 17:39:13 +03:00
Michael Bogdanov
b092c04145
Removed debug counter
2016-04-25 17:39:13 +03:00