Nikolay Krasko
d9cd4f0d74
KT-2725 No completion in properties initializers and accessors
...
#KT-2725 Fixed
2012-09-04 16:37:37 +04:00
Nikolay Krasko
138373c94c
KT-2724 No completion in class initializers
...
#KT-2724 Fixed
2012-09-04 15:36:30 +04:00
Nikolay Krasko
a0c2cee754
Rename method refactoring
2012-09-04 15:05:25 +04:00
Nikolay Krasko
d2fa6abf4a
Refactor method - remove null value warnings
2012-09-04 13:37:30 +04:00
Natalia.Ukhorskaya
84e846649f
Fixed KT-2488 Optimizing imports removes references to enum constants when they are referred via short name in code
2012-08-31 14:52:04 +04:00
Alex Tkachman
737b794935
fix for KT-2711 wrong check on descriptor being integral range
...
method added to JetStandardLibrary to get all integral range descriptors
#KT-2711 fixed
2012-08-31 13:49:20 +03:00
Andrey Breslav
859dbc87d4
Fix CANNOT_CHECK_FOR_ERASED for when()
2012-08-31 14:23:02 +04:00
Andrey Breslav
0d86dee776
Chars only range to other chars
2012-08-31 12:52:47 +04:00
Natalia.Ukhorskaya
dd3323cae2
Fixed KT-2418 Front-end allows enum constants with same name
2012-08-31 11:16:35 +04:00
Natalia.Ukhorskaya
1ef8818556
Front-end: Prohibit to create inner class with the same name as a property
2012-08-31 11:15:57 +04:00
Andrey Breslav
42bf62f870
KT-2704 Remove support for enum-entry constructor generation in the front-end code
...
#KT-2704 Fixed
2012-08-30 15:28:41 +04:00
Kirill Berezin
b84f068c33
kt-1760 delegation to java iface:
...
- removed codegen's unnecessary lookup for a declaration
- skipped class' only supertype (if any) methods when delegating
2012-08-30 14:03:43 +04:00
Nikolay Krasko
78cb5381f7
Remove reference to error type constructor from unresolved annotation
2012-08-30 13:21:13 +04:00
Nikolay Krasko
03989b9055
EA-36935 Rewriting annotations exception when file contains object with annotation.
2012-08-30 13:21:06 +04:00
Natalia.Ukhorskaya
19221e3ba6
JavaDescriptorResolver: Add resolve for annotation parameters (array, annotation, enum)
...
Temporary change testData for LoadJavaTest because enums in parameters of annotations in kotlin files is now unsupported
2012-08-30 10:56:33 +04:00
Natalia.Ukhorskaya
92a782ce6c
AnnotationDescriptor refactoring: contains map of ValueParameterDescriptor and CompileTimeConstant for valueArgument.
...
DescriptorUtils: add method to get a list of sorted value arguments from AnnotationDescriptor
2012-08-30 10:56:31 +04:00
Andrey Breslav
7caa1b8aa4
KT-2364 Drop traces of constructor-entries in enums
...
#KT-2364 Fixed
2012-08-29 22:07:42 +04:00
Pavel V. Talanov
32f9dcedff
Merge with Alex's refactroings.
2012-08-29 17:12:07 +04:00
Pavel V. Talanov
d831f164cc
Enum classes have private constructor visibility from front-end point of view.
...
Protected visibility hardcoded in jvm backend.
2012-08-29 15:58:40 +04:00
Pavel V. Talanov
76e407e168
INTERNAL_VISIBILITIES constant renamed to INVISIBLE_FROM_OTHER_MODULES in order not be confused with INTERNAL visibility.
...
The only usage in DataFlowValueFactory renamed accordingly.
2012-08-29 15:58:32 +04:00
Pavel V. Talanov
e6e6f7e598
Object's constructor is private from frontend point of view.
...
Test data changed.
Js-backend test objectInObject turned off.
Public constructors for objects hard-coded in jvm-backend.
2012-08-29 15:58:27 +04:00
Pavel V. Talanov
00a12bd013
Constructors for enum entries and class objects have private visibility in frontend.
...
Introduce DescriptorUtils#getDefaultConstructorVisibility.
DescriptorResolver: remove exception wrapping.
Hardcode package-private visibility for enum entries in JetTypeMapper.
Refactoring:
DescriptorResolver: rename createPrimaryConstructorForObject -> createAndRecordPrimaryConstructorForObject, createPrimaryConstructorForObject now a separate method.
JavaDescriptorResolver: extract containingDeclaration variable.
JetTypeMapper: rename variable declaration -> containingDeclaration.
2012-08-29 14:42:12 +04:00
Nikolay Krasko
a3aef5571e
Rewrite methods: root package is parent package for all packages
2012-08-28 19:32:45 +04:00
Alex Tkachman
9cd8f64e00
private constructor added
2012-08-28 00:31:29 +03:00
Alexander Udalov
d99ffbd120
jet.Annotation
...
Create a supertype for all Kotlin annotations, jet.Annotation.
Map java.lang.annotation.Annotation to jet.Annotation and vice versa.
Add extension function "annotationType()" to every annotation, similar to java.lang.annotation.Annotation.annotationType()
#KT-1620 Fixed
2012-08-27 20:44:43 +04:00
Alexander Udalov
9be4f63735
refactor initStdClasses()
2012-08-27 20:28:29 +04:00
Svetlana Isakova
12aea75b02
removed JetStandardLibraryNames
2012-08-27 17:09:19 +04:00
Svetlana Isakova
35c276be18
removed constants from JetStandardLibraryNames, JetTypeMapper
...
that are used only in KotlinToJavaTypesMapper
2012-08-27 17:09:07 +04:00
Svetlana Isakova
65ea9dddea
KotlinToJavaTypesMap refactoring
...
removed repeating type names from 'isForceReal'
removed class SpecialTypeKey (added map for nullable types)
moved mapping Any-Object from JetTypeMapper
2012-08-27 17:08:37 +04:00
Pavel V. Talanov
6132946ced
Introduce ClassKind#CLASS_OBJECT and ClassKind#isObject and usages.
...
Rename LazyClassDescriptor#onlyEnumEntries -> enumClassObjectInfo.
Determine ClassKind in JetClassInfo and JetObjectInfo constructor.
Remove complex constructor for enum entry in enum test.
Logic simplified in LazyClassMemberScope.
Minor refactorings.
2012-08-27 15:52:36 +04:00
Andrey Breslav
c0c2ca0ac2
Report errors when iterator() returns a nullable type
2012-08-24 19:49:33 +04:00
Andrey Breslav
66faa0c03a
For-loop range expression (collection) can not be null
2012-08-24 19:49:33 +04:00
Andrey Breslav
b315bee7b2
hasNext can't be a property. Corresponding error removed
2012-08-24 19:49:32 +04:00
Andrey Breslav
4870b92d11
makeFakeCall() uses a fake expression
2012-08-24 19:49:31 +04:00
Andrey Breslav
e13fa067cc
Proper resolved calls in loop ranges
2012-08-24 19:49:31 +04:00
Andrey Breslav
784bf31a3e
Store resolved calls for loop range's iterator(), next(), hasNext()
...
+ code duplication removed from expression typing visitor
2012-08-24 19:49:30 +04:00
Svetlana Isakova
0dcdaccad1
KT-2640 Provide jet.MutableIterator and jet.MutableIterable
...
#KT-2640 fixed
2012-08-24 15:07:24 +04:00
Nikolay Krasko
1a12ef9e07
Recover on EOL for imports
2012-08-24 00:13:16 +04:00
Svetlana Isakova
ac39daace6
KT-2667 Support multi-declarations in for-loops in control flow analysis
...
#KT-2667 fixed
2012-08-23 14:25:13 +04:00
Svetlana Isakova
f8edaad420
make modality 'FINAL' for non-class members
...
not depend on actual modifier since it's not legal there
2012-08-22 20:42:35 +04:00
Svetlana Isakova
bac0078646
check modifiers for package declarations
...
removed specific errors for illegal 'abstract' modifier
2012-08-22 20:42:35 +04:00
Svetlana Isakova
4a5269bb2d
set LOCAL visibility for local functions
...
(it can't be INHERIT)
2012-08-22 20:42:35 +04:00
Svetlana Isakova
ea611cb51d
check modifiers for local declarations
2012-08-22 20:42:35 +04:00
Svetlana Isakova
5bac198165
all modifiers checks/resolve moved to ModifiersChecker
2012-08-22 20:42:35 +04:00
Alex Tkachman
fb5bf2f8c6
local classes without closures
2012-08-22 18:40:37 +03:00
Pavel V. Talanov
0a044b18d5
Remove VariableDescriptor#isObjectDeclaration and usages.
...
Replace with BindingContext trace slice OBJECT_DECLARATION_CLASS.
Remove corresponding field from constructor.
Introduce hack in JavaDescriptorResolver which creates dummy class descriptors for enum entry objects.
2012-08-22 18:06:37 +04:00
Andrey Breslav
1c2e8ad550
BindingContextUtils.getNotNull()
2012-08-22 15:03:18 +04:00
Natalia.Ukhorskaya
aeb297d417
Move isEnumClassObject from JavaDescriptorResolver to DescriptorUtils
2012-08-22 14:31:59 +04:00
Svetlana Isakova
5779ac15c0
Not get supertypes of Nothing
...
(exception EA-37833)
2012-08-22 12:35:06 +04:00
Natalia.Ukhorskaya
36ca99ade0
Use validateFqName in FqName(String) constructor.
...
Fix JavaDescriptorResolver and JavaClassOrPackageScope accordingly.
2012-08-21 21:40:50 +04:00