Commit Graph

17272 Commits

Author SHA1 Message Date
Zalim Bashorov d71c3d6166 Minor in Parser: moved some annotation tests. 2014-09-10 22:39:11 +04:00
Zalim Bashorov fb97b1df93 Minor in Parser: drop obsolete code. 2014-09-10 22:39:11 +04:00
Zalim Bashorov 3c60d0de93 Parser: added the support file annotations. 2014-09-10 22:39:11 +04:00
Zalim Bashorov 506610302a Parser: added the support file annotations to grammar. 2014-09-10 22:39:11 +04:00
Zalim Bashorov 771b887e9f Minor: add ".idea/shelf" to ".gitignore". 2014-09-10 22:39:10 +04:00
Michael Bogdanov 08e02f4176 Moving platformStatic annotation to kotlin.platform package 2014-09-10 17:35:59 +04:00
Andrey Breslav b8b0316d97 Reporting ACCIDENTAL_OVERRIDE on jvm signatures that have no descriptors
(marking them SYNTHETIC)
2014-09-10 17:35:54 +04:00
Alexey Sedunov 9b7bccce22 Move: Move refactoring should correct constructor call when moving inner class
#KT-4676 Fixed
2014-09-10 16:44:51 +04:00
Alexey Sedunov feb393e4c8 Extract Function: Merge initialized declarations on call site when possible 2014-09-10 16:44:50 +04:00
Alexey Sedunov dd78ed6d4a Extract Function: Generate variables when boxing multiline expressions 2014-09-10 16:44:49 +04:00
Alexey Sedunov 1a63f9b815 Refactoring Util: Implement PsiElement.getLineCount() 2014-09-10 16:44:47 +04:00
Alexey Sedunov b59da7686c Pseudocode: Fix type predicate inference for values used inside of lambda 2014-09-10 16:44:47 +04:00
Alexey Sedunov 76433571f8 Extract Function: Support multiple output values 2014-09-10 16:44:46 +04:00
Alexey Sedunov 7a15a88288 Minor: Change signature 2014-09-10 16:44:44 +04:00
Pavel V. Talanov e6df5c4bdc KotlinSignature markers do not fail in case of enum in sources
Refactor to make all KotlinSignature intention share some logic
2014-09-10 15:20:59 +04:00
Nikolay Krasko d32221ff4a Add sorted and filter to custom test runner 2014-09-09 23:35:16 +04:00
Alexander Udalov 55e5241158 Regenerate tests 2014-09-09 20:42:39 +04:00
Alexander Udalov c274fc8d6d Drop outdated JVM intrinsics EnumValueOf and EnumValues 2014-09-09 20:42:39 +04:00
Alexander Udalov 25bb220223 Fix navigation on values()/valueOf() of enum classes 2014-09-09 20:42:39 +04:00
Alexander Udalov 4d212be31f Refactor QualifiedExpressionResolver
- fix return types everywhere: Collection<DeclarationDescriptor> instead of
  Collection<? extends DeclarationDescriptor>
- delete useless LookupResult.EMPTY and merge LookupResult with
  SuccessfulLookupResult
- reformat, minor inlines, etc.
2014-09-09 20:42:38 +04:00
Alexander Udalov 5b1993f62a Resolve "values" and "valueOf" in enum class object
Import enum class's static scope into its class object's member scope
2014-09-09 20:42:38 +04:00
Alexander Udalov 2f12875515 Extract "values" and "valueOf" names as static constants 2014-09-09 20:42:38 +04:00
Alexander Udalov 4bd603818a Drop LazyJavaDescriptor, JavaPackageFragmentDescriptor 2014-09-09 20:42:38 +04:00
Alexander Udalov 148d583212 Drop JavaPackageFragmentProvider 2014-09-09 20:42:38 +04:00
Alexander Udalov 3b05ec0df4 Remove duplicate code from JvmCodegenUtil 2014-09-09 20:42:37 +04:00
Alexander Udalov d52eff0825 JS: update support of enum's values() and valueOf() 2014-09-09 20:42:37 +04:00
Alexander Udalov c5345a83c9 Minor, reuse existing method 2014-09-09 20:42:37 +04:00
Alexander Udalov 476dc78c16 Refine getClassObjectDescriptor()'s type
This reverts commit db3e5ed678.
2014-09-09 20:42:37 +04:00
Alexander Udalov b52f337f7f Drop enum class object hack
Place valueOf() and values() into the static scope of the corresponding enum
class

 #KT-5580 Fixed
 #KT-2410 Fixed
2014-09-09 20:42:37 +04:00
Alexander Udalov bb54825fac Fix incorrect test data for wrong KotlinSignature CLI test
Classes from the root package cannot be referenced from a non-root package
2014-09-09 20:42:36 +04:00
Alexander Udalov 8ccca1781d Support static class scope in frontend, JVM codegen and IDE 2014-09-09 20:42:36 +04:00
Alexander Udalov cb81023469 Minor, fix warnings and formatting in QualifiedExpressionResolver 2014-09-09 20:42:36 +04:00
Alexander Udalov 76986f850f Drop outdated code in JDR related to static class members 2014-09-09 20:42:36 +04:00
Alexander Udalov bcfb5f3b09 Rewrite Java resolve to use static class scope instead of synthesized packages
#KT-4149 Fixed
 #KT-4839 Fixed
2014-09-09 20:42:36 +04:00
Alexander Udalov 75df4a9ad8 Introduce ClassDescriptor#getStaticScope()
Will be used to exterminate hacks related to static Java methods in our
codebase: synthetic class object for enum, synthetic package for static members
of Java classes, etc.
2014-09-09 20:42:35 +04:00
Alexander Udalov 7ad88f7799 Minor, add test for obsolete issue
#KT-4021 Obsolete
2014-09-09 20:42:35 +04:00
Alexander Udalov d86903ccd4 Minor, add codegen test on extension to nested class 2014-09-09 20:42:35 +04:00
Alexander Udalov 2fbba060de Minor, fix "J2K Tests" run configuration 2014-09-09 20:42:35 +04:00
Pavel V. Talanov 123b6ed529 Do not skip top level members from sources under library classes root
Fix problems with JavaScript libraries
2014-09-09 19:51:45 +04:00
Michael Bogdanov 7aaae8a2f7 Synthetic accessor refactoring: extract general interface 2014-09-09 16:28:28 +04:00
Michael Bogdanov e26d635633 Initial implementation of platformStatic 2014-09-09 16:28:28 +04:00
Michael Bogdanov 7bbedd9685 Added platformStatic annotation 2014-09-09 16:26:15 +04:00
Michael Nedzelsky 36ada06bdb Remove SuppressWarning('NullableProblems') and change @NotNull annotation to @Nullable in DescriptorPredicate.apply method 2014-09-09 16:24:09 +04:00
Michael Nedzelsky cc4f84ffae JS backend: fix KT-5738 JS backend: result of toByte() should be in the range of bytes
#KT-5738 Fixed
2014-09-09 16:24:06 +04:00
Michael Nedzelsky a632e9e21d JS backend: fix KT-4601 JS: compareTo doesn't work on Numbers
#KT-4601 Fixed
2014-09-09 16:24:03 +04:00
Michael Nedzelsky 145050b3d1 JS backend: simplify conversion to int 2014-09-09 16:24:01 +04:00
Michael Nedzelsky 69a25ca92a JS backend: minor: improve call translation for constant receiver 2014-09-09 16:23:58 +04:00
Michael Nedzelsky 377f6fe4da JS backend: fix labels before for and do while loops 2014-09-09 16:23:55 +04:00
Nikolay Krasko 041d009b9a Regenerate tests 2014-09-09 14:28:24 +04:00
Nikolay Krasko c6905b971c New runner for auto-generated test
- Run classes with inners
- Remove suite() methods in generated and prevent double test execution
2014-09-09 14:28:22 +04:00