Evgeny Gerashchenko
e83a9b7eaa
Added check for null values in collection passed to CompilerConfiguration.
2012-09-13 19:38:46 +04:00
Evgeny Gerashchenko
08fc54d969
Fixed test data after IDEA update.
2012-09-13 19:07:58 +04:00
Evgeny Gerashchenko
c6c96eeb16
Updated IDEA to last EAP 122.327
2012-09-13 19:06:49 +04:00
Svetlana Isakova
585a709bbd
minor improvement
2012-09-13 17:28:31 +04:00
Svetlana Isakova
b7b15f8379
extracted method 'isSameName' + rename
2012-09-13 17:28:31 +04:00
Svetlana Isakova
a4694f767a
change anonymous class to TypeTransformingVisitor
2012-09-13 17:28:31 +04:00
Svetlana Isakova
0d1790a4f4
alternative signature applies for names
...
mapped in standard library (and differs from auto transformed Java signature)
e.g.Collections.copy(MutableList, List)
2012-09-13 17:28:31 +04:00
Svetlana Isakova
b080c8f768
added toString for better debug to CallableDescriptorCollectors
2012-09-13 17:28:31 +04:00
Svetlana Isakova
75479c7acd
extracted method mapPlatformClass(FqName)
2012-09-13 17:28:31 +04:00
Svetlana Isakova
f799df9126
AsmTypeConstants, KotlinToJavaTypesMap moved to frontend.java module
2012-09-13 17:28:31 +04:00
Svetlana Isakova
3daed10e5c
removed ClassName class
2012-09-13 17:28:31 +04:00
Svetlana Isakova
5407d4ac36
returned 'getPrimitiveArrayClassDescriptor' to JetStandardLibrary
2012-09-13 17:28:31 +04:00
Svetlana Isakova
c015b552f6
add asm constant types to the TYPES_MAP as well
2012-09-13 17:28:31 +04:00
Svetlana Isakova
3c083c83e2
alternative signature applicability check changed
2012-09-13 17:28:30 +04:00
Svetlana Isakova
bbc5869ed4
changes in Collection interfaces
...
MutableList returns MutableListIterator
MutableMap returns MutableSet as keySet(), values(), entrySet()
2012-09-13 17:28:30 +04:00
Alex Tkachman
a8627a56ef
test for obsolete KT-2663
2012-09-13 16:28:00 +03:00
Natalia.Ukhorskaya
60bdae9d75
Prohibit body for annotation class
...
#KT-1886 Fixed
2012-09-13 16:27:48 +04:00
Alexander Udalov
954003872d
Do not generate erroneous classes in SIGNATURES mode
...
Add an assertion that this never happens in other modes.
(fixes EA-37034)
2012-09-13 16:20:25 +04:00
Alexander Udalov
8ac83f08ac
Cleanup mapType
2012-09-13 16:20:25 +04:00
Natalia.Ukhorskaya
9e55fd219e
Android tests: add expected result for box() method
2012-09-13 13:24:53 +04:00
Alex Tkachman
acfc5b3f56
got rid of method with duplicating functionality
2012-09-13 10:01:29 +03:00
Alex Tkachman
ee38d871c4
JetTypeMapper api cleanup
...
- mapType got JetTypeMapperMode.VALUE as default parameter
- mapType(ClassifierDescriptor) introduced
- mapType(VariableDescriptor) introduced
2012-09-13 09:22:59 +03:00
Alex Tkachman
cf92603f2a
micro refactoring
...
- PsiCodegenPredictor moved to binding package
- CodegenUtil.findSuperCall method moved to CodegenBinding
= PsiCodegenPredictor unneeded bindingTrace parameter replaced by bindingContext
2012-09-13 08:33:07 +03:00
Alex Tkachman
0a2f808ec0
test case and fixes for object and classes inner for enum entry
2012-09-12 20:48:12 +03:00
Alexander Udalov
2c17cb7aa7
Wrap JetLightClass creation in runReadAction
...
No tests added because runReadAction checks are disabled in tests.
To reproduce the exception, find usages of Any.
2012-09-12 21:16:47 +04:00
Alexander Udalov
ccfa5f8c2c
Do not lookup expressions in closures when building signatures
...
#KT-2764 Fixed
(EA-38857)
2012-09-12 21:16:47 +04:00
Alex Tkachman
ca65574bce
no need for context lookup of enclosing singletons #KT-2695 fixed
2012-09-12 19:41:26 +03:00
Nikolay Krasko
1121d9b316
EA-38789 Fix "Name is null for OBJECT_DECLARATION object"
2012-09-12 19:58:45 +04:00
James Strachan
ba01576c41
added a partition helper method to partition a collection into a collection of matching items and not matching items
2012-09-12 15:55:34 +01:00
Alex Tkachman
6c4102bf23
simple case (no closures) of class level objects #KT-2398 fixed
2012-09-12 17:35:51 +03:00
James Strachan
3e6c0c0f4e
fixed bad description on the elements() helper methods (which are descendants not children) and added some helper methods for immediate child elements and text
2012-09-12 14:58:30 +01:00
James Strachan
bcec41c779
allow nullable expressions to be used for lazily creating new items if there is not a value in the Map
2012-09-12 14:56:28 +01:00
Alexander Udalov
6822d9496f
Fix backend tests on Windows
...
Make getMultiFileNamespaceInternalName work when given PsiFile contains mixed
path separators in its name.
2012-09-12 16:59:25 +04:00
Alex Tkachman
79c04038fb
accessor for private constructors #KT-2716 fixed
...
also on the way done small refactoring of JetTypeMapper
- few code duplicates replace by methods
- mapToCallableMethod(ConstructorDescriptor) introduced
2012-09-12 10:31:48 +03:00
Alex Tkachman
fb4d6610a8
unification of accessable descriptor lookup between functions and properties
2012-09-12 09:20:10 +03:00
Alex Tkachman
5080ca9eb0
extracted method for accessibleFunctionDescriptor
2012-09-12 08:32:38 +03:00
Andrey Breslav
d6df227344
Fixing tests
...
This solution is in fact rather hackish, but the only way I see to fix it is to restructure the process of configuring test class paths altogether
2012-09-11 21:47:53 +04:00
Nikolay Krasko
b6e2381861
EA-36473 Wrap method for JetLightClass with invalid fq name
2012-09-11 21:29:42 +04:00
Nikolay Krasko
9a645dca3e
Ability to get correct fqName for JvmClassName with names for class objects and traits
2012-09-11 21:29:41 +04:00
Nikolay Krasko
603d85f29d
EA-39113 Fail for "object { fun testing() = 12 }"
2012-09-11 21:29:40 +04:00
Nikolay Krasko
ec6af86761
Small formatting fix
2012-09-11 21:29:39 +04:00
Nikolay Krasko
44fe00afb4
Use constant instead of string literals
2012-09-11 21:29:38 +04:00
Nikolay Krasko
9c7587e221
Correct spelling in method name
2012-09-11 21:29:37 +04:00
Andrey Breslav
068c6795fe
Fixing tests
2012-09-11 21:02:05 +04:00
Andrey Breslav
91a9b6539f
EA-37910 - UOE: DescriptorUtils.getSubstitution
...
The corresponding method reworked to be less of a hack
Tests added
2012-09-11 20:52:11 +04:00
Andrey Breslav
a632d53e58
DFS Utility class used in TypeHierarchyResolver
2012-09-11 20:52:11 +04:00
Andrey Breslav
ab18b12165
DFS utility class factored out of CommonSupertypes
2012-09-11 20:52:10 +04:00
Alex Tkachman
6a0e4d1593
name clash when several files of the same package has different paths but the same name #KT-2713 Fixed
2012-09-11 17:05:23 +03:00
Alex Tkachman
ec549895e8
fix for NPE when lookup names in objects/closure in constructors #KT-2719 Fixed
2012-09-11 16:16:09 +03:00
Alexander Udalov
bb92655ecd
Prohibit creation of JetLightClass on built-ins
...
If we allow JetLightClass to be created on built-in types, a normal codegen
would be launched, with a mapping from Kotlin to Java types enabled, every time
IDE requests built-in classes. Codegen would then try to make something
meaningless, e.g. create a class for a primitive type (since our jet.Boolean is
mapped to primitive boolean). This would result in different exceptions when
navigating to built-in library from IDE.
Add a helpful error message to ClassFileFactory if we ever again produce
classes for primitive types.
2012-09-11 17:08:33 +04:00