Commit Graph

9844 Commits

Author SHA1 Message Date
Michael Bogdanov 9e864f3c36 Fix java visibility publicity
#KT-6478 Fixed
2014-12-23 16:28:44 +03:00
Andrey Breslav bdefbc182a Take declaration's origin element before looking for declaration by descriptor 2014-12-23 15:18:48 +03:00
Andrey Breslav 6728a384e4 KT-4881 Annotation resolved to package should be compile-time error
#KT-4881 Fixed
2014-12-23 15:18:47 +03:00
Andrey Breslav 8ff5cf62cc Generate annotations from descriptors, not PSI 2014-12-23 15:18:46 +03:00
Andrey Breslav 830e4dfd98 Pointless annotations removed 2014-12-23 15:07:45 +03:00
Andrey Breslav 0880c20614 Rename ONLY_CLASSES -> ONLY_CLASSES_AND_PACKAGES 2014-12-23 15:07:45 +03:00
Natalia Ukhorskaya 8896aa93b4 Fix NPE in ReferenceVariantsHelper
#KT-6500 Fixed
2014-12-23 14:40:27 +03:00
Natalia Ukhorskaya e35b960eb5 Stepping: do not write line numbers for call arguments
#KT-3080 Fixed
2014-12-23 14:40:26 +03:00
Natalia Ukhorskaya c66af565f6 Make LineNumberTest auto-generated 2014-12-23 14:40:25 +03:00
Natalia Ukhorskaya 0dcb5b05b6 Local variables should be visible on return statement in debugger
#KT-6248 Fixed
2014-12-23 14:40:23 +03:00
Svetlana Isakova 6489ff2cb6 Ignore constraint from implicit 'in Nothing'
From Array<T> <: Array<out Int> we may generate T >: Nothing (implicit) and T <: Int (explicit).
Without ignoring we'll infer 'Nothing' for T too often
2014-12-22 12:04:42 +03:00
Pavel V. Talanov 70f6fcadc9 Increase stub version 2014-12-21 14:23:43 +03:00
Pavel V. Talanov 15add4bd64 Remove no longer meaningful utils from JavaResolverUtils 2014-12-21 14:23:42 +03:00
Pavel V. Talanov ec4f506f8f Minor: move some code to super class in Kotlin light classes 2014-12-21 14:23:31 +03:00
Pavel V. Talanov 56e3983dc9 Move and rename JavaElementFinderMultiFileTest
It is now relevant for IDE only
2014-12-21 14:23:30 +03:00
Pavel V. Talanov 15b2977b85 Refactor: refine API of LightClassGenerationSupport
Move some specific code to IDELightClassGenerationSupport
2014-12-21 14:23:28 +03:00
Pavel V. Talanov 33fc241158 Rework go to symbol/class and getNavigationElement() for kotlin declarations
Based on work by geevee
2014-12-21 14:23:28 +03:00
Pavel V. Talanov afc6ba5e16 Build kotlin stubs for compiled Kotlin files
This means that JetPsi would be built for compiled kotlin files
2014-12-21 14:23:25 +03:00
Pavel V. Talanov e20dd42aa4 Refactor stubs:
Convert all interface classes to kotlin and move them into one file
Convert some of Impl classes
Fix typo: hasValOrValNode
Extract ModifierMaskUtils
Minors
2014-12-21 14:23:24 +03:00
Andrey Breslav 633a4aa8f2 Self-types marked as unsupported 2014-12-19 20:36:16 +03:00
Nikolay Krasko f8dc0d028d Remove warning about long look-ahead
It's do a annoying warn when there's a code like this:

{
  call(params)
  call(params)
  call(params)
}
2014-12-19 17:29:24 +03:00
Nikolay Krasko db488ad295 Add utility function for getting text with context 2014-12-19 17:29:24 +03:00
Alexander Udalov 6793464cd0 Drop obsolete code in built-in serialization 2014-12-19 14:41:51 +03:00
Alexander Udalov 4358b3fbc3 Do not use private Sun API in preloader 2014-12-19 14:37:46 +03:00
Denis Zharkov 04e560bc74 Get reified signature from JetTypeMapper
#KT-6485 Fixed
2014-12-18 21:12:52 +03:00
Valentin Kipyatkov f8ceb039bb Added utilities 2014-12-18 19:02:16 +03:00
Zalim Bashorov eae4cdbd8f Log error when cannot read properties. 2014-12-18 14:34:38 +03:00
Zalim Bashorov 465c4a397e Rename manifest.properties to kotlinManifest.properties to avoid clashing with other resources. 2014-12-18 14:34:37 +03:00
Svetlana Isakova b7806be8b5 Fixed test data for builtin-classes 2014-12-16 20:01:38 +03:00
Zalim Bashorov 92984a37ea Js frontend: prohibit default values for functions annotated as nativeIndexer. 2014-12-16 18:30:05 +03:00
Zalim Bashorov 4c3073d03e JS frontend tests: add test cases with declare member extension functions. 2014-12-16 18:30:04 +03:00
Zalim Bashorov 2484954e2f Frontend tests: serialize dynamic call descriptors and check them in diagnostic tests. 2014-12-16 17:48:26 +03:00
Zalim Bashorov d071c44126 Minor in Frontend: fix default getter return type. 2014-12-16 17:48:26 +03:00
Ilya Ryzhenkov be717f48f8 Stop using deprecated APIs 2014-12-16 17:33:24 +03:00
Ilya Ryzhenkov 31fb24d390 Sort collections/map APIs, improve empty implementations. 2014-12-16 17:33:21 +03:00
Andrey Breslav 120c344f11 Fix access to private static native functions 2014-12-16 16:23:35 +03:00
Andrey Breslav f9fea88749 PlatformStaticGenerator reworked to use FunctionCodegen.generateMethod() 2014-12-16 16:23:35 +03:00
Andrey Breslav 6916c0f5cc Test for native property accessors 2014-12-16 16:23:34 +03:00
Andrey Breslav e591ddc4d3 Report syntax errors in box tests 2014-12-16 16:23:34 +03:00
Andrey Breslav 6596c6d943 Support native top-level functions 2014-12-16 16:23:33 +03:00
Andrey Breslav 56216c4bd8 Test for function with default parameters marked native 2014-12-16 16:23:32 +03:00
Andrey Breslav 229c7ad537 Report an error on native declarations marked ilnine 2014-12-16 16:23:31 +03:00
Andrey Breslav 5187694b22 Test for overriding with a native function 2014-12-16 16:23:31 +03:00
Andrey Breslav 3a8ca2608d Report error on native members of traits 2014-12-16 16:23:30 +03:00
Andrey Breslav a94a1f8a6f Report error on native declaration with a body 2014-12-16 16:23:30 +03:00
Andrey Breslav d4cf789b53 Report error on native abstract declarations 2014-12-16 16:23:30 +03:00
Andrey Breslav 76e2ae2005 Do not complain about missing bodies on native functions 2014-12-16 16:23:29 +03:00
Andrey Breslav 19d0ad7e10 Use newer dex to verify Kotlin bytecode in tests 2014-12-16 16:23:29 +03:00
Andrey Breslav 27d403ee23 Make native class object members delegate to static methods in the outer class 2014-12-16 16:23:28 +03:00
Andrey Breslav d20651b881 Support native on [platformStatic] functions 2014-12-16 15:17:33 +03:00