Commit Graph

18418 Commits

Author SHA1 Message Date
Zalim Bashorov 3e7b0be68d K2JS: test that UNUSED_PARAM warnings inside native declarations and all warnings from stdlib was suppressed. 2014-11-07 16:30:52 +03:00
Zalim Bashorov a5b928782b Workaround for bootstrapping with changes in kotlin2js ant task and cli compiler. 2014-11-07 16:30:52 +03:00
Zalim Bashorov adab0445de K2JS: introduce "no-stdlb" parameter and use stdlib from compiler by default. 2014-11-07 16:30:52 +03:00
Zalim Bashorov e457eea438 Use JarFileSystem for collect kotlin files inside archive instead of own implementation. 2014-11-07 16:30:52 +03:00
Zalim Bashorov aecd2be25e Introduce constant for "kt". 2014-11-07 16:30:51 +03:00
Zalim Bashorov ab5d34c373 Reset extensions cache in DiagnosticsWithSuppression when Application changed(that hepens in tests). 2014-11-07 16:30:51 +03:00
Zalim Bashorov b3defdbf90 JS tests: create JetFiles by JetPsiFactory instead of by PsiManager to avoid to access to PsiManager after it disposed.
That fixed js tests after changes in DiagnosticsWithSuppression.
2014-11-07 16:30:51 +03:00
Zalim Bashorov 38d5f2ee2b Extract the suppressing logic for debugger. 2014-11-07 16:30:51 +03:00
Zalim Bashorov cd20301283 JS frontend: suppress warnings from stdlib. 2014-11-07 16:30:51 +03:00
Zalim Bashorov c8556ec1f7 JS frontend: suppress UNUSED_PARAM for native declarations.
#KT-2141 Fixed
2014-11-07 16:30:51 +03:00
Zalim Bashorov 624f5c4c34 Minor: moved test for check the iterating over String to common place.
#KT-3617 Fixed
2014-11-07 16:30:50 +03:00
Alexander Udalov 70d0c2ff92 Generate generic signature to collection method stubs
#KT-6213 Fixed
2014-11-07 16:10:12 +03:00
Natalia Ukhorskaya d4b0977381 Debugger: stop at closing bracket for functions without return statement 2014-11-07 15:10:41 +03:00
Evgeny Gerashchenko 878aac1acb Fixed test on Windows (slashes issue). 2014-11-07 14:52:40 +03:00
Evgeny Gerashchenko d72f31de61 Updating Java mappings only for incremental mode.
Avoiding executing this code on TeamCity, which fails on TeamCity 8.x
2014-11-07 14:52:05 +03:00
Evgeny Gerashchenko fe2d54dc5d Correct checking for action availability. 2014-11-07 14:52:05 +03:00
Evgeny Gerashchenko e51296b047 Extracted function which creates compiler environment. 2014-11-07 14:52:04 +03:00
Evgeny Gerashchenko a840e4d122 Extracted functions which update incremental caches, etc 2014-11-07 14:52:04 +03:00
Evgeny Gerashchenko a797f82ce2 Extracted methods compiling to JS and JVM in KotlinBuilder. 2014-11-07 14:52:03 +03:00
Evgeny Gerashchenko 97b516a600 Improved output dir checking in KotlinBuilder.
Output dir for representative target is necessary only for JS part: moved there.
2014-11-07 14:52:02 +03:00
Evgeny Gerashchenko 155775f925 Minor. Added test when compilation error is introduced and fixed in other package. 2014-11-07 14:52:02 +03:00
Evgeny Gerashchenko 1e2c4659cd Committed wrong behavior of Java+Kotlin incremental compilation (Java files recompiled twice). 2014-11-07 14:52:01 +03:00
Evgeny Gerashchenko 7f49a8c159 Added tests with redeclaration. The behavior is correct (compilation error), while diagnostic message is not ideal. 2014-11-07 14:52:01 +03:00
Evgeny Gerashchenko 47e16390a9 Added test with conflicting function overloads in different files. 2014-11-07 14:52:00 +03:00
Evgeny Gerashchenko 21105fcae4 Tests with SAM conversions. 2014-11-07 14:51:59 +03:00
Evgeny Gerashchenko 3237791433 Added tests with adding method to superclass. 2014-11-07 14:51:58 +03:00
Evgeny Gerashchenko 86dd7ec880 Tests: converting Java to Kotlin and back. 2014-11-07 14:51:57 +03:00
Evgeny Gerashchenko c0b0a17256 Supported incremental compilation tests when compilation fails in the end. 2014-11-07 14:51:56 +03:00
Evgeny Gerashchenko 335c3f4506 Tests with renamed method, incremental compilation between Kotlin and Java. 2014-11-07 14:51:56 +03:00
Evgeny Gerashchenko e1180983aa Replaced absolute paths with macro in compilation errors. 2014-11-07 14:51:55 +03:00
Evgeny Gerashchenko 9234ef3803 Tests with constants, incremental compilation between Kotlin and Java. 2014-11-07 14:51:54 +03:00
Evgeny Gerashchenko 70331e3b82 Initial support for kotlin-java interop in incremental compilation. 2014-11-07 14:51:53 +03:00
Evgeny Gerashchenko 3011bdb7d7 Aborting compilation on errors (don't try to compile Java after it). 2014-11-07 14:51:52 +03:00
Evgeny Gerashchenko 0f8dd59bcf Minor. Expanded test. 2014-11-07 14:51:51 +03:00
Evgeny Gerashchenko 4cf7b9e20c Minor. More correct constants processing. If class without constants is added, it doesn't mean directly that others should be recompiled. Anyway, this mistake didn't lead to any bug: proto change would be detected anyway. 2014-11-07 14:51:51 +03:00
Evgeny Gerashchenko 2492fe47f3 Minor. Added test data sanity check. 2014-11-07 14:51:50 +03:00
Evgeny Gerashchenko b435b59648 Updated regexp for Android Studio redistributable URL 2014-11-06 20:11:24 +03:00
Evgeny Gerashchenko 76bd381345 Updated to IDEA 14 release (139.224.1) 2014-11-06 18:53:02 +03:00
Ilya Ryzhenkov 8fc550f3b1 Fix split invocation in js tests. 2014-11-06 17:13:17 +03:00
Nikolay Krasko 34001c23c1 Caching in KotlinLightClassForPackage haven't been working because of bad scope hashCode() 2014-11-06 16:48:04 +03:00
Nikolay Krasko 0568cc7ee7 Avoid calling descriptors.toString() in production code without need 2014-11-06 16:48:04 +03:00
Ilya Ryzhenkov 656bd028bc Remove dead commented code. 2014-11-06 16:45:58 +03:00
Ilya Ryzhenkov ad1a2c4000 Update generated code to move "type" member into its place after it was demoted from keyword. 2014-11-06 16:45:58 +03:00
Ilya Ryzhenkov 2e154b73de Support componentN for arrays and lists #KT-5538 Fixed 2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov c2fabf5736 Comparator<T> replaced with Comparator<in T> #KT-6030 Fixed 2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov 24ee79aa2d Replace ArrayList<Any>() with stdlib_emptyListClass() and fix test. #KT-6013 Fixed 2014-11-06 16:45:56 +03:00
Ilya Ryzhenkov 0dc68c2702 Avoid using negative in descending sorts. 2014-11-06 16:45:56 +03:00
Natalia Ukhorskaya 55590e00a5 Evaluate expression: add ability to evaluate expression suspending on class header 2014-11-06 16:21:54 +03:00
Natalia Ukhorskaya 4eb93c06b1 Write line numbers for bridge methods (line for class header) 2014-11-06 16:21:52 +03:00
Natalia Ukhorskaya 0047655ed3 Debugger: fix stepping in when 2014-11-06 14:27:06 +03:00