Commit Graph

35459 Commits

Author SHA1 Message Date
Alexey Andreev 40e00a62f5 JS: fix translation of augmented assignment when RHS changes value of LHS 2016-11-23 12:19:03 +03:00
Alexey Andreev be196789d2 JS: fix bug in temporary variable elimination 2016-11-23 12:19:03 +03:00
Alexey Andreev dc8e90809c JS: coroutines: fix handling of throw statement inside try/catch block when controller has handleSuspend function 2016-11-23 12:19:02 +03:00
Alexey Andreev e44edf12e0 JS: coroutines: fix inlining of suspend functions 2016-11-23 12:13:54 +03:00
Alexey Andreev 8b9852edec JS: remove Kotlin.createClass/definePackage/etc functions from stdlib. Reimplement some classes in Kotlin 2016-11-23 12:13:54 +03:00
Alexey Sedunov 3eea735b4a Kotlin Facet: Access Gradle files under read action (fixes failure of GradleInspectionTest) 2016-11-23 11:27:41 +03:00
Ilya Gorbunov 0eba06405a Use InputStream as another guess for estimated size in InputStream.readBytes() 2016-11-22 23:37:29 +03:00
Ilya Gorbunov e41cbe6fe1 Check that the length of a file can be represented as Int. 2016-11-22 23:37:27 +03:00
Ilya Gorbunov c90ee13656 Performance: use byte array buffer directly to read the entire contents of a file.
#KT-14883 Fixed
2016-11-22 23:37:05 +03:00
Alexey Tsvetkov 5eaa23ec60 Minor: fix test data
dummy.kt was added for Gradle test (it does not start otherwise).
Old IC recompiles this file, so new and old IC logs are different.
2016-11-22 23:31:39 +03:00
Ilya Gorbunov a8cc04d433 Use JRE7 for tests in other modules employing selenium. 2016-11-22 22:59:08 +03:00
Dmitry Jemerov e7cf64631b Don't offer updates for @snapshot@ plugin version 2016-11-22 20:04:06 +01:00
Dmitry Jemerov 0cfc4db2d4 Check for plugin update before allowing to submit exception 2016-11-22 20:03:22 +01:00
Alexey Sedunov 6881d071e5 Minor: Use mutable empty list (as IDEA may attempt to modify it after calling detector) 2016-11-22 19:55:36 +03:00
Alexander Udalov 22e1221c75 Support "default platform" in IDE via facet settings 2016-11-22 18:19:02 +03:00
Alexander Udalov c0b5fd193a Refactor DeserializedPackageFragment and subclasses
Push loadResource and loadResourceSure down to KotlinJavascriptPackageFragment,
as it's no longer needed in BuiltInsPackageFragment
2016-11-22 18:19:02 +03:00
Alexander Udalov 19520bf29c Extract KotlinMetadataFinder interface out of KotlinClassFinder 2016-11-22 18:19:02 +03:00
Alexander Udalov 5f4313223e Use a specific message collector in built-ins serializer
It's going to be needed to be able to report configuration errors when running
built-ins serializer (e.g. no output destination is passed as an argument)
2016-11-22 18:19:01 +03:00
Alexander Udalov fcb094cd90 Introduce DefaultAnalyzerFacade, use it to analyze built-ins 2016-11-22 18:19:01 +03:00
Alexander Udalov 73f872172f Add multi-platform projects as experimental language feature 2016-11-22 18:19:01 +03:00
Alexander Udalov 525e6e53fe Do not report unhelpful diagnostic for unresolved call inside inline function
#KT-14887 Fixed
2016-11-22 18:19:01 +03:00
Alexander Udalov eacf64e4db Report initializer block-related diagnostic on 'init' keyword 2016-11-22 18:19:01 +03:00
Ilya Chernikov 68cf4bf440 Update changelog for 1.1-M03 release 2016-11-22 16:00:54 +01:00
Mikhail Glukhikh 45e28bef1c Enhancement for "join declaration and assignment": now can handle also local variables, relevant inspection added #KT-12095 Fixed 2016-11-22 16:41:37 +03:00
Mikhail Glukhikh c44ecded42 Refactoring: MoveAssignmentToInitializer --> JoinDeclarationAndAssignment 2016-11-22 16:41:27 +03:00
Mikhail Glukhikh d4995c07f7 Convert primary constructor to secondary: KNPE fixed #KT-14745 Fixed 2016-11-22 16:35:28 +03:00
Dmitry Jemerov 13b2c2cd24 Add test for highlighting escape sequences in character literals 2016-11-22 13:24:13 +01:00
Dmitry Jemerov d565e18889 Show enum constants in Goto Symbol
#KT-6535 Fixed
2016-11-22 13:20:35 +01:00
Dmitry Jemerov ab8abc9c62 Delete paired > after deleting < after any identifier, not just a class-like one
#KT-13279 Fixed
2016-11-22 13:20:35 +01:00
Dmitry Jemerov baf321a193 Highlight escape sequences in character literals
#KT-13795 Fixed
2016-11-22 13:20:35 +01:00
Dmitry Jemerov 2fe2e1802e Fix quote handler for character literals
#KT-12385 Fixed
2016-11-22 13:20:35 +01:00
Dmitry Jemerov b742c8a63d Implement "Show non-public" filter for Kotlin structure view
#KT-14217 Fixed
2016-11-22 13:20:35 +01:00
Dmitry Jemerov f586eebe16 KotlinStructureViewModel: cleanup after J2K 2016-11-22 13:20:35 +01:00
Dmitry Jemerov 4b591bf41f KotlinStructureViewModel: J2K 2016-11-22 13:20:35 +01:00
Dmitry Jemerov bf97e64c1d KotlinStructureViewModel: rename to .kt 2016-11-22 13:20:35 +01:00
Dmitry Jemerov f4ce63f6d7 Collect local declarations under properties (KT-14215); improve presentation of object declarations
#KT-14215 Fixed
2016-11-22 13:20:35 +01:00
Dmitry Jemerov 45077023bb KotlinStructureElementPresentation: cleanup after J2K 2016-11-22 13:20:35 +01:00
Dmitry Jemerov 75a5b0ee0c KotlinStructureElementPresentation: J2K 2016-11-22 13:20:35 +01:00
Dmitry Jemerov 6225867cae KotlinStructureElementPresentation: rename to .kt 2016-11-22 13:20:35 +01:00
Dmitry Jemerov 4cc6b98e1b Run configuration producer for Gradle tests (KT-10700) 2016-11-22 13:19:13 +01:00
Dmitry Petrov fc2a965d2a Fix decompiler tests. 2016-11-22 14:40:02 +03:00
Denis Zharkov 01c21e218a Add special tests for interceptRun support
Basically they're built upon basic coroutine tests, but for each of them
different interceptResume implementation are injected
(currently there are 12 of them).

It might be more simple just to generated additional testData, but I see this
more problematic in a sense of further maintenance

Note that all tests add idempotent 'interceptRun' operators,
which just execute given lambda in the current thread

 #KT-14891 Fixed
2016-11-22 14:33:40 +03:00
Denis Zharkov 5ff71e1330 Support 'interceptResume' operator in JVM backend
#KT-14891 In Progress
2016-11-22 14:33:40 +03:00
Denis Zharkov c2e6f92aa5 Minor. Extract several methods in coroutine codegen 2016-11-22 14:33:40 +03:00
Denis Zharkov caf6634fd3 Minor. Cleanup CoroutineCodegen 2016-11-22 14:33:40 +03:00
Denis Zharkov 5276c3c755 Support 'interceptResume' operator in frontend
#KT-14891 In Progress
2016-11-22 14:33:40 +03:00
Dmitry Jemerov 99bfbd0a26 Never set isScript flag for stubs of file facade and multifile facade classes (scripts are always generated with ClassKind.CLASS) 2016-11-22 10:26:16 +01:00
Alexey Sedunov 075a0bc7f1 Kotlin Facet: Configure facet automatically on Gradle project import 2016-11-22 11:54:09 +03:00
Alexey Sedunov e59754e86c Kotlin Facet: Configure facet automatically on Maven project import 2016-11-22 11:54:09 +03:00
Alexey Sedunov dc33436c64 Kotlin Facet: Implement automatic facet configuration 2016-11-22 11:54:08 +03:00