Commit Graph

9252 Commits

Author SHA1 Message Date
Andrey Breslav 10d971bc7a Extract methods 2013-01-21 20:03:02 +04:00
Natalia.Ukhorskaya 6874ab0ddc Rename parameter 2013-01-21 18:53:18 +04:00
Natalia.Ukhorskaya 9422fea0c4 Mark deprecated as a warning
#KT-3252 Fixed
2013-01-21 16:34:07 +04:00
Natalia.Ukhorskaya d7c8655966 Refactoring in Codegen Tests 2013-01-21 13:26:06 +04:00
Jack Zhou 2f47e30a1a Fixed UnsupportedOperationException when a namespace is used in place of an expression. 2013-01-21 13:10:19 +04:00
Alexander Udalov 54e5b6d476 Regenerate tests 2013-01-21 13:10:00 +04:00
develar 5ba0177af8 jps plugin compiler path must not contains ../kotlinc/lib/kotlin-compiler.jar 2013-01-20 09:36:48 -08:00
Andrey Breslav 4d0baf3e06 No Java2Kotlin converter classes in the compiler 2013-01-19 07:13:24 -08:00
Alexander Udalov 4305a009df Add regression test for KT-2673
#KT-2673 Obsolete
2013-01-18 21:27:07 +04:00
Alexander Udalov ffd62eb80e Refactor ClassGenTest
Initialize environment with JDK_ONLY in setUp(), allowing to quickly launch
tests without compilation of stdlib.

Remove duplicate/unneeded/commented out tests
2013-01-18 18:04:09 +04:00
Alexander Udalov c4a3963925 Fix nested classes codegen bug
When constructing a closure, codegen in some cases incorrectly determined if
it needed to store a reference from a nested class to the outer
2013-01-18 14:59:27 +04:00
Natalia.Ukhorskaya 5c56900a09 Fix maven build: rename namespace class to package class 2013-01-18 12:59:36 +04:00
Nikolay Krasko fb9c4b92c4 Suppress all warnings for generated test classes 2013-01-17 21:05:11 +04:00
Nikolay Krasko 6ce830e999 Add information about unsupported class for label descriptor 2013-01-17 21:05:08 +04:00
Evgeny Gerashchenko 6f2625c7eb KT-3248 Highlight Java members with invalid annotations in IDE
#KT-3248 fixed
2013-01-17 20:01:49 +04:00
Evgeny Gerashchenko d2cddde04e Minor. Casting on higher level. 2013-01-17 19:23:39 +04:00
Evgeny Gerashchenko 7d46affd14 Fixed bug in checking for annotation writablity. 2013-01-17 19:23:39 +04:00
Evgeny Gerashchenko 0f780a84d4 KT-2808 Intention to change existing alternative Kotlin signature
#KT-2808 fixed
2013-01-17 19:23:39 +04:00
Alexander Udalov 05b482e7d5 Ignore unsupported codegen tests for Android 2013-01-17 18:44:24 +04:00
Alexander Udalov 8dff523858 Add some regression tests for obsolete issues
Regenerate tests
2013-01-17 17:38:46 +04:00
Alexander Udalov 3b43d5e874 Additional loadJava/loadKotlin tests for nested classes
#KT-1174 Fixed
2013-01-17 16:45:51 +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 85bd41dfa5 Codegen tests for inner/nested classes
#KT-1174 In Progress
2013-01-16 23:11:49 +04:00
Alexander Udalov cc5ba53c80 Support inner/nested classes in JVM back-end
#KT-1174 In Progress
2013-01-16 23:11:48 +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
Alexander Udalov 65716431c4 DescriptorRendererImpl now writes 'inner' for inner classes
#KT-1174 In Progress
2013-01-16 23:11:45 +04:00
Alexander Udalov 0b51a6cae0 Disallow nested classes within inner & local classes
#KT-1174 In Progress
2013-01-16 23:11:45 +04:00
Alexander Udalov a0caa88adf Report ILLEGAL_MODIFIER on inappropriate 'inner' keyword usage
#KT-1174 In Progress
2013-01-16 23:11:44 +04:00
Alexander Udalov 0a1907de11 Check all modifiers for objects
DeclarationsChecker didn't check visibility modifiers for objects
2013-01-16 23:11:43 +04:00
Alexander Udalov 7a3000ccac Forbid usage of outer's generic parameter in nested class
#KT-1174 In Progress
2013-01-16 23:11:42 +04:00
Alexander Udalov 43c37398af Labeled this & super to nested class' outer is an error
#KT-1174 In Progress
2013-01-16 23:11:42 +04:00
Alexander Udalov 5d92453532 Inaccessible outer class member is now an error
#KT-1174 In Progress
2013-01-16 23:11:41 +04:00
Alexander Udalov e76abcb625 Add ClassDescriptor.isInner()
Implement in resolve & lazy resolve; place a stub in resolve-java

 #KT-1174 In Progress
2013-01-16 23:11:40 +04:00
Alexander Udalov 84e4611d2b Add 'inner' keyword
Support for the keyword in PSI and stubs

 #KT-1174 In Progress
2013-01-16 23:11:39 +04:00
Alexander Udalov 949f5ed834 JetSimpleNameExpression's name is not null
Modify usages accordingly
2013-01-16 23:11:39 +04:00
Alexander Udalov 173dfc4811 Fix kotlin-maven-plugin compilation 2013-01-16 23:09:17 +04:00
Alexander Udalov e97b65801b Fix stdlib tests compilation 2013-01-16 22:18:14 +04:00
Alexander Udalov 047db78104 Fix failing build, add imports 2013-01-16 21:21:43 +04:00
Evgeny Gerashchenko abaa450917 Moved JVM-specific String functions filter(), map(), etc to StringsJVM.kt 2013-01-16 20:32:24 +04:00
Evgeny Gerashchenko 8f78ee851b Fixed typo in comment. 2013-01-16 19:08:13 +04:00
Yuri Samsoniuk b9e07eb645 [KT-1859] Added collection like extension methods to String. 2013-01-16 19:03:49 +04:00
Natalia.Ukhorskaya 37b12bff2e Vararg in constructor isn't loaded correctly from bytecode
#KT-3251 Fixed
2013-01-16 17:59:35 +04:00
Evgeny Gerashchenko 6574eca393 Fixed test after introducing new warning. 2013-01-16 15:58:02 +04:00
Evgeny Gerashchenko 739acbcf01 Fixed test by topologically sorting classes in OverrideResolver. 2013-01-16 15:58:02 +04:00
Andrey Breslav 44580406ec Artifact archive renamed from "kotlin-${build.number}.zip" to "kotlin-compiler-${build.number}.zip"
This makes it possible to write artifact wildcards in dependent TeamCity builds
2013-01-16 15:44:27 +04:00
Andrey Breslav cb3a1352e4 Merge pull request #156 from crazyproger/KT-614
KT-614 Emit a warning when non-null type is checked for instance of nullable type
2013-01-16 02:12:47 -08:00
Vladimir Rudev 47f6af8e42 KT-1916 Highlight matching items when searching in Override/Implement dialog
#KT-1916 Fixed
2013-01-16 13:38:16 +04:00