Commit Graph

3370 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 292f0e4a38 Introduced lazy type and some related optimizations. 2014-01-16 20:34:10 +04:00
Andrey Breslav 0155bf0189 Fix for KT-4413 Do not add error types to supertype lists
The list is not filtered upon creation because it would force lazy types to compute

#KT-4413 Fixed
2014-01-16 20:05:12 +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
Nikolay Krasko 0d141d959a Add tests for EA-52767 and KT-4366: "java.lang.IllegalArgumentException: Could not find a classifier for "... 2014-01-15 22:01:03 +04:00
Alexey Sedunov f30d4f042e Fix warnings 2014-01-15 16:49:36 +04:00
Alexey Sedunov 4c98cf1b2c Implement overriders search 2014-01-15 16:49:34 +04:00
Alexey Sedunov e2118b7ae8 Tests for additional lazy resolve (local classes/objects in class initializers) 2014-01-15 16:49:29 +04:00
Andrey Breslav df88e3e625 Introducing dependency kinds to prioritize package fragments 2014-01-15 16:16:21 +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 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 e994b718cb KT-4351 Cannot resolve reference to self in init of class local to function
#KT-4351 fixed
2014-01-14 19:13:16 +04:00
Evgeny Gerashchenko b41a3f8558 Got rid of "namespace" word in compiler code. 2014-01-14 18:06:50 +04:00
Evgeny Gerashchenko 093afeb05c Renamed diagnostics (namespace → package). 2014-01-14 18:06:49 +04:00
Evgeny Gerashchenko 73ad5552c8 RootNamespaceExpression → RootPackageExpression. 2014-01-14 18:06:49 +04:00
Evgeny Gerashchenko 791b5bb84c JetNamespaceHeader → JetPackageDirective. 2014-01-14 18:06:48 +04:00
Evgeny Gerashchenko 1f74f02344 NamespaceFactoryImpl is abolished, since it is almost trivial. 2014-01-14 18:06:47 +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
Nikolay Krasko ce55f10df1 Fix @Nullable annotation for JetClassObject.getObjectDeclaration() 2014-01-13 17:46:46 +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
Alexander Udalov ba9ea75f9e Change workaround for redeclaration problem
Without this hack, redeclarations are reported when you try to rewrite *Range
classes to Kotlin
2014-01-10 17:26:41 +04:00
Alexander Udalov afc62dabd9 Disable assertion in redeclaration checker
Workaround a problem with Java built-in sources
2014-01-09 21:30:10 +04:00
Alexey Sedunov 446941257b KT-4392 #Fixed 2014-01-09 15:20:17 +04:00
Pavel V. Talanov e693820fb4 Auto-imports for operator calls and infix calls
#KT-1613 Fixed
 #KT-4192 Fixed

Enable auto-import fix for "unresolved reference with wrong receiver" diagnostic
2013-12-31 13:24:38 +04:00
Natalia Ukhorskaya 9fb3a22a39 Prohibit modifiers on initializer #KT-4364 Fixed 2013-12-31 12:41:54 +04:00
Svetlana Isakova 4657a4b271 fixed bug in renderer for violated upper bound error 2013-12-27 16:02:16 +04:00
Svetlana Isakova c3ff6a2430 fixed exponential building of cf graph
if there was en error in chained qualified expression
2013-12-27 16:02:16 +04:00
Svetlana Isakova 7055ce2a1f added CFPContext to avoid recreating of CFPVisitor all the time;
used JetVisitorVoidWithParameter
2013-12-27 16:02:16 +04:00
Svetlana Isakova 4fe9fd20f3 added JetVisitorVoidWithParameter 2013-12-27 16:02:16 +04:00
Svetlana Isakova 66b8fc529f unified JetVisitor & JetVisitorVoid 2013-12-27 16:02:15 +04:00
Svetlana Isakova 531d337486 changed default positioning strategy:
added special handling for JetObjectLiteralExpression
2013-12-27 16:02:15 +04:00
Svetlana Isakova d4c2a542eb fixed 'getSliceContents'
do not throw an exception when some slices were overwritten
2013-12-27 16:02:15 +04:00
Andrey Breslav debacf0554 Instances of ChainedScope should always have a debugMessage 2013-12-26 16:36:31 +04:00
Natalia Ukhorskaya 18f4a20aa5 Regenerate OperationsMapGenerated.kt 2013-12-26 14:04:24 +04:00
Natalia Ukhorskaya 5c88c8c58f Make CompileTimeConstant abstract class 2013-12-26 13:50:28 +04:00
Evgeny Gerashchenko 513be47544 KT-4349 Make jet.Boolean implement Comparable
#KT-4349
2013-12-25 21:07:55 +04:00
Valentin Kipyatkov 906694c49a Minor refactoring in ResolveSessionUtils 2013-12-25 18:44:07 +04:00
Valentin Kipyatkov b71020efc5 Refactored reference shortening utility (added expression references shortening and rewritten to Kotlin) 2013-12-25 18:40:16 +04:00
Evgeny Gerashchenko 90ad65bff8 Made rename refactoring inplace for loop, catch and function literal parameters.
#KT-1296 fixed
2013-12-24 22:30:28 +04:00
Alexey Sedunov d00b17c621 Method rename 2013-12-24 12:10:55 +04:00
Alexey Sedunov 1e66a346d7 Use unsafe qualified names instead of safe ones in FQNAME_TO_CLASS_DESCRIPTOR slice 2013-12-24 12:10:53 +04:00
Alexey Sedunov c20ee310d0 Add support of local classes/objects declared in class constructor parameters 2013-12-24 12:10:52 +04:00
Alexey Sedunov f94f391a4e Use scope based on constructor descriptor (rather than class itself) when
resolving class initializers
2013-12-24 12:10:49 +04:00
Andrey Breslav fc2d9cdde6 getProvider() added to PackageFragmentDescriptor 2013-12-23 21:34:38 +04:00
Evgeny Gerashchenko f7d33d2297 Removed comments auto-generated by IDEA. 2013-12-23 15:58:36 +04:00
Evgeny Gerashchenko e3743ace4f Added validation that all non-trait classes have at least one supertype.
Fixed it for some class objects.
2013-12-23 15:56:07 +04:00
Natalia Ukhorskaya 4329c42e3f Make unary minus and unary plus return int for byte and short 2013-12-23 13:46:00 +04:00