Commit Graph

189 Commits

Author SHA1 Message Date
Svetlana Isakova c5d9757b94 added renderers for constraint system and type bounds
moved classes
2014-02-11 21:07:08 +04:00
Pavel V. Talanov 80183c88cf Do not normalize visibilities for fake overrides
#KT-4525 Fixed
2014-02-11 20:13:11 +04:00
Pavel V. Talanov e4a0221abc Remove PackageFragmentDescriptor#getProvider method
PackageFragmentProvider should be hidden from the client of PackageFramentDescriptor
2014-02-11 17:17:05 +04:00
Andrey Breslav 76c722b81c Utilities moved closer to their usages and rewritten to Kotlin 2014-02-05 18:12:00 +04:00
Alexey Sedunov 7f74ea5081 Translate KotlinSafeDeleteProcessor to Kotlin 2014-02-03 13:47:02 +04:00
Alexander Udalov 1107ae9a11 Revert hack for annotations on built-ins
This reverts commit 5cae5c0338
2014-01-31 16:46:18 +04:00
Alexander Udalov e28819b42e Revert "Using default renderer in LoadBuiltinsTest."
This reverts commit 1d21ebf882.

Conflicts:
	compiler/testData/builtin-classes.txt
	core/descriptors/src/org/jetbrains/jet/renderer/DescriptorRendererImpl.java

Reverting a part of this (related to the field 'prettyFunctionTypes') because
will need to add a test that deserialized built-ins (obtained by
KotlinBuiltIns.getInstance()) are consistent with lazy resolved built-ins. This
test would break because while DescriptorRenderer renders pretty function types
it compares descriptors to the ones from KotlinBuiltIns, but in case of lazy
resolve descriptors created for built-ins would be different from
KotlinBuiltIns, so renderer wouldn't correctly render a function type
2014-01-31 16:46:18 +04:00
Alexander Udalov 877d9f2220 Update year to 2014 in generated files 2014-01-31 16:46:16 +04:00
Alexander Udalov 75ab8ac5ec Don't try to generate optimized "in" for LongRange
#KT-4097 Fixed
2014-01-31 16:46:14 +04:00
Natalia Ukhorskaya 36810c5bbb Move IS_PURE for constant inside CompileTimeConstant 2014-01-28 18:21:45 +04:00
Natalia Ukhorskaya 3f429116e5 Add constructor parameter for compileTimeConstant (can be used in annotation) 2014-01-28 18:21:44 +04:00
Natalia Ukhorskaya 97da2def08 Record COMPILE_TIME_INITIALIZER for all final variables 2014-01-28 18:21:42 +04:00
Natalia Ukhorskaya 694db27da0 Make IntegerValueTypeConstant implements CompileTimeValue<Number>. getValue() method for it is now deprecated - getValue(expectedType) should be used 2014-01-28 18:21:38 +04:00
Alexander Udalov e46c54f514 Serialize built-ins on 'ant dist'
Don't store binary data in the repository anymore. From now on any test on the
compiler requires that 'ant dist' was executed at least once since the last
update of the built-ins
2014-01-27 18:33:49 +04:00
Alexander Udalov 5cae5c0338 Don't fail on annotated built-ins
Unit.VALUE is annotated right now (with "suppress"), so deserialization was
throwing an exception from AnnotationDeserializer.UNSUPPORTED. Return empty
collections of annotations instead; here we use the fact that it's the only
annotation in built-ins and its presence is useless to the type checker
2014-01-27 18:33:49 +04:00
Andrey Breslav 04b47439bd Use findAnnotation() instead of iterating through all annotations 2014-01-22 19:04:43 +04:00
Andrey Breslav 7d10cfa4a5 Annotations.findAnnotation() added 2014-01-22 19:04:43 +04:00
Andrey Breslav 2ac0853225 Make room for laziness in the Annotations interface 2014-01-22 19:04:42 +04:00
Andrey Breslav 6ce0b9b919 Annotations used instead of List<AnnotationDescriptor> 2014-01-20 16:17:54 +04:00
Evgeny Gerashchenko ae4c68830d Importing root scope without members. 2014-01-16 22:11:55 +04:00
Evgeny Gerashchenko 78e7cbb7fb Extracted SubpackagesScope. 2014-01-16 20:34:11 +04:00
Evgeny Gerashchenko 292f0e4a38 Introduced lazy type and some related optimizations. 2014-01-16 20:34:10 +04:00
Nikolay Krasko 72d3b46fc6 Revert "Add method for getting all classifiers with given name from the scope"
This reverts commit 97759f5bb7.
2014-01-15 22:01:04 +04:00
Andrey Breslav df88e3e625 Introducing dependency kinds to prioritize package fragments 2014-01-15 16:16:21 +04:00
Andrey Breslav 372ab7954b Got rid of getExactlyOnePackageFragment() 2014-01-15 16:16:16 +04:00
Andrey Breslav b9526f8907 Members of Java interfaces annotated @ReadOnly 2014-01-15 16:16:12 +04:00
Andrey Breslav 4176ce4e6c Fixing compilation errors to account for package fragment/view 2014-01-15 16:16:10 +04:00
Andrey Breslav 834b306706 Render nullability for error types properly 2014-01-15 16:14:49 +04:00
Andrey Breslav cc1d8448ed Prevent lazy types to be accidentally computed in debug 2014-01-15 16:14:45 +04:00
Andrey Breslav d79403d82c Don't fail on star projections for error types 2014-01-15 16:07:40 +04:00
Andrey Breslav 78a4b6fff6 Error class descriptor must not fail an attempt to create a type with arguments from it 2014-01-15 16:07:39 +04:00
Andrey Breslav bed01b601b Annotations supported 2014-01-15 16:07:36 +04:00
Andrey Breslav d0a93f8be0 Pull common method up 2014-01-15 16:07:35 +04:00
Nikolay Krasko 97759f5bb7 Add method for getting all classifiers with given name from the scope 2014-01-15 16:03:50 +04:00
Nikolay Krasko c46214fd31 Refactoring: use selectors for chain scope behaviour implementation 2014-01-15 16:00:34 +04:00
Nikolay Krasko 297d473273 Refactoring: Move class 2014-01-15 15:19:39 +04:00
Nikolay Krasko 4de9b2d205 Minor: remove waring about annotation absence in JetScope class 2014-01-15 14:05:09 +04:00
Evgeny Gerashchenko b3ab147f6a Minor. Subclassing from interface directly. 2014-01-14 19:13:18 +04:00
Evgeny Gerashchenko 7e7908b831 Got rid of "namespace" term in descriptors module. 2014-01-14 18:05:58 +04:00
Evgeny Gerashchenko 997d3597a9 NamespaceType → PackageType. 2014-01-14 18:05:58 +04:00
Evgeny Gerashchenko 1f615d08c7 NamespaceLikeBuilder → PackageLikeBuilder. 2014-01-14 18:05:57 +04:00
Evgeny Gerashchenko 2189fce64b Renamed class. 2014-01-14 18:05:57 +04:00
Andrey Breslav 65d90e18a2 Use DescriptorRenderer to render annotations everywhere 2014-01-14 16:37:50 +04:00
Nikolay Krasko c0187ffcd1 Always create descriptors for class object psi element in lazy resolve
KT-4397 Exception: @NotNull method org/jetbrains/jet/lang/resolve/lazy/ResolveSession.getClassDescriptor must not return null

 #KT-4397 Fixed
2014-01-13 16:14:59 +04:00
Svetlana Isakova 4657a4b271 fixed bug in renderer for violated upper bound error 2013-12-27 16:02:16 +04:00
Nikolay Krasko 217931622e Fix for IDEA complains when assigning Kotlin objects where java.lang.Object is expected
#KT-4355 Fixed
2013-12-27 15:03:59 +04:00
Valentin Kipyatkov 39f07b8354 Smart completion: imports insertion + fixed both behaviour and presentation of qualified members in lookup 2013-12-26 17:29:38 +04:00
Andrey Breslav 2daf6961b2 Do not add subpackages that are not found 2013-12-26 16:36:32 +04:00
Andrey Breslav debacf0554 Instances of ChainedScope should always have a debugMessage 2013-12-26 16:36:31 +04:00
Natalia Ukhorskaya 5c88c8c58f Make CompileTimeConstant abstract class 2013-12-26 13:50:28 +04:00