Commit Graph

2115 Commits

Author SHA1 Message Date
Andrey Breslav bbde38a6dc KT-1360 Vararg bug in front-end 2013-01-31 18:54:37 +04:00
Andrey Breslav 1fcbf1721b Got rid of repeated local variable 2013-01-31 18:46:28 +04:00
Andrey Breslav 2d2c44ca9d KT-2106 Mixed named and positional arguments should be allowed
#KT-2106 Fixed
2013-01-31 15:43:14 +04:00
Andrey Breslav 8fd59feb21 Logic refactored to a finite automaton 2013-01-31 15:43:14 +04:00
Andrey Breslav fdde9b9c49 Methods extracted 2013-01-31 15:43:14 +04:00
Svetlana Isakova ba9c455ea1 KT-3301 Inference with several supertypes fails
#KT-3301 fixed
2013-01-30 20:29:30 +04:00
Evgeny Gerashchenko 07a25a7757 Removed newline after copyrights in generated injectors. 2013-01-30 19:24:16 +04:00
Evgeny Gerashchenko 9c83a2f85f Renamed parameters of contains() in ranges. 2013-01-30 19:23:50 +04:00
Evgeny Gerashchenko 6877722f81 Extracted progressions to separate source file. 2013-01-30 19:23:50 +04:00
Andrey Breslav fd6cb970e4 Correctly return existing provider if it is there 2013-01-30 18:18:52 +04:00
Andrey Breslav 5eb173e8dd Protecting the trace with a lock 2013-01-30 18:02:05 +04:00
Andrey Breslav c2822fdad7 Declaration providers and resolve session are protected by a storage manager 2013-01-30 18:02:04 +04:00
Andrey Breslav ae48edfb5f Unused abstraction removed 2013-01-30 18:02:04 +04:00
Andrey Breslav 9c9599d65f Unused class removed 2013-01-30 18:02:04 +04:00
Andrey Breslav d4058a8a31 Commented code removed 2013-01-30 18:02:04 +04:00
Andrey Breslav 7404105247 Storage manager introduced
Will be used to make lazily computed data thread-safe
2013-01-30 18:02:04 +04:00
Andrey Breslav e7ea3d9667 LazyValue renamed to avoid confusion 2013-01-30 18:02:04 +04:00
Evgeny Gerashchenko 58f37f38f4 Renamed NumberSequence to Progression. 2013-01-29 22:55:10 +04:00
Evgeny Gerashchenko 111dd13d39 Moved error checking of built-ins to more direct place. 2013-01-29 22:55:09 +04:00
Evgeny Gerashchenko 0660dfb84c Made N type parameter not Number.
Otherwise it fails with NoSuchMethodError in runtime.
2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko 3eac3cc38c Removed unnecessary methods. 2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko a24bf67688 Dropped unnecessary primitive iterable traits. 2013-01-29 22:55:08 +04:00
Evgeny Gerashchenko ac7477a6c1 Reformatted. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 90e474ca75 Subclassed ranges from sequence. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 79d3440c92 Subclassed Float/DoubleRange from iterable (for uniformity). 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko 000fc55035 Added intrinsic properties of ranges and sequences. 2013-01-29 22:55:06 +04:00
Evgeny Gerashchenko 9fa3e47b65 Added start and end property to generic range. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 0e0c048074 New structure of range classes. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 0ff3589bb9 Moved *Range.step() functions to stdlib. 2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 4736b8d6e7 Introduced sequence classes. 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko c8a194c0a8 Dropped *Range.isReversed 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko 9cd67dfc5c Removed unnecessary iteratorStart property of ranges. 2013-01-29 22:55:03 +04:00
Evgeny Gerashchenko 3acf284a4a Reverted some copyrights. 2013-01-28 19:20:39 +04:00
Evgeny Gerashchenko 52b7ee6447 Happy new year 2013! 2013-01-28 18:58:08 +04:00
Evgeny Gerashchenko 18b5495a8c KT-1895 Make it possible to pass 1.0 as Float without explicit casting
#KT-1895 fixed
2013-01-28 18:29:21 +04:00
Andrey Breslav a4d2cd5247 Assert message 2013-01-25 22:02:34 +04:00
Natalia.Ukhorskaya e37cb461f6 Support visibility for protected static members
#KT-2999 Fixed
2013-01-24 18:43:37 +04:00
Alexander Udalov a0a22b7be6 Outer's superclass' method is now inaccessible from nested
Also the diagnostic error message reported the wrong nested class name: it
should be the nested class in the hierarchy which is static, not the class of
the scope where we're checking the accessibility
2013-01-23 20:18:16 +04:00
Andrey Breslav 3e02764603 Supporting FqNames with spaces/comments inside them for deprecated 2013-01-23 18:58:38 +04:00
Andrey Breslav bd3d41e7ed JetPackageDeclarationIndex removed (replaced by JetAllPackagesIndex) 2013-01-23 18:54:03 +04:00
Andrey Breslav aa39519323 Using isTopLevelDeclaration instaed of a direct instanceof check 2013-01-23 13:10:35 +04:00
Andrey Breslav 4b5eaccb94 Load physical files from tests 2013-01-23 13:10:34 +04:00
Kirill Berezin e89a8c684f KT-3159 Disallow overriding var with different type #KT-3159 fixed 2013-01-21 15:42:39 -08:00
Jack Zhou 2f47e30a1a Fixed UnsupportedOperationException when a namespace is used in place of an expression. 2013-01-21 13:10:19 +04:00
Nikolay Krasko 6ce830e999 Add information about unsupported class for label descriptor 2013-01-17 21:05:08 +04:00
Alexander Udalov 192a81591b Resolve qualified nested class expressions
lookupNamespaceType now returns NamespaceType of a scope not only of the
namespace found by name, but also of the classifier static classes scope found
by the same name. This allows correct resolution of expressions
"Class.Nested.member()", where Class comes from Java (previously it was
resolved into a NamespaceDescriptor with a NamespaceType).

NamespaceDescriptor.getNamespaceType() is deleted since there are no sense in
namespace's NamespaceType alone anymore.

Also some minor refactoring (referencedName param is useless)

 #KT-1174 In Progress
2013-01-16 23:11:50 +04:00
Alexander Udalov c4b5577555 Do not report NO_CLASS_OBJECT when namespacesAllowed=true
Now with nested classes the expression "A.something" makes sense even when A
doesn't have a class object ("something" could be a nested class)

Also "A" expression now gets a NamespaceType with the scope of all static
nested classes of A

 #KT-1174 In Progress
2013-01-16 23:11:50 +04:00
Alexander Udalov 051e94b1c5 Get rid of MutableClassDescriptorLite.isStatic()
isStatic() is now precisely !isInner()
2013-01-16 23:11:48 +04:00
Alexander Udalov b612989eb0 Remove 'inner enum' hack & fix Java inner class resolve
Inner enum was placed into the class object of the outer class. Remove the
hack from frontend, frontend.java & backend. Fix tests

 #KT-1174 In Progress
2013-01-16 23:11:47 +04:00
Alexander Udalov cc6bd6239a Remove unused method 2013-01-16 23:11:46 +04:00