Commit Graph

59941 Commits

Author SHA1 Message Date
Simon Ogorodnik 2e27862d38 [FIR] Cache lookupTag lookup on creation from symbol (partially) 2019-12-16 21:21:10 +03:00
Simon Ogorodnik 0fb883ef62 [FIR] Use builtinTypes instead of creating new ones 2019-12-16 21:21:09 +03:00
Simon Ogorodnik 5de69471b0 [FIR] Use yieldIfNeed instead of yield 2019-12-16 21:21:09 +03:00
Simon Ogorodnik 81759e8c55 [FIR] Use proper sourceScope for modularized tests 2019-12-16 21:21:08 +03:00
Simon Ogorodnik 0a2c457f54 [FIR] Properly check typealias fqn matching 2019-12-16 21:21:07 +03:00
Simon Ogorodnik d0c58be4e9 [FIR] Pass proper use-site session in deserialized provider 2019-12-16 21:21:06 +03:00
Simon Ogorodnik 85ff834fdb [FIR] Do not create Kotlin scopes for handledByJava classes 2019-12-16 21:21:06 +03:00
Simon Ogorodnik dd803cb650 [FIR] Fix moduleInfo module names 2019-12-16 21:21:05 +03:00
Alexander Udalov 7f51be9cd3 Minor, change parameter name of FrameMap.enter/leave
It's not a descriptor in case of IrFrameMap
2019-12-16 17:38:11 +01:00
Alexander Udalov f51a0048f6 Minor, rename test and avoid commented directive
Get rid of "_lv12" in the test name, since it's actually a test on the
modern compiler. Also, avoid the commented "IGNORE_BACKEND: JVM_IR"
directive in another test to make JVM IR test failures more greppable.
2019-12-16 17:38:11 +01:00
Alexander Udalov 561cde9d06 JVM IR: minor, add exception message to IrFrameMap.typeOf 2019-12-16 17:38:11 +01:00
Roman Artemev 0b7c11c96e [JS IR] Fix external fields naming 2019-12-16 18:08:09 +03:00
Roman Artemev 02db5ea0eb [JS IR] Fix state machine builder 2019-12-16 18:08:08 +03:00
Mikhail Glukhikh ccb9a4e0a9 [FIR TEST]: add problematic test for T::class.java case 2019-12-16 15:23:46 +03:00
Natalia Selezneva 38b0de4ab6 Scripting: do not start multiple request when related file was changed 2019-12-16 14:55:50 +03:00
Natalia Selezneva fba17d5b9a Minor, tests: clear memory cache in tests that check scripting file attributes 2019-12-16 14:55:49 +03:00
Natalia Selezneva 780c61dc16 Fix line separators in tests 2019-12-16 14:55:47 +03:00
Natalia Selezneva 31887d2fd1 Scripting: check if affected scripts are changed using file modification stamp instead of mark them out of date in cache
^KT-35205 Fixed
2019-12-16 14:55:47 +03:00
Natalia Selezneva ec04f0059c Scripting: do not threat comments and spaces as modifications inside essential block 2019-12-16 14:55:46 +03:00
Natalia Selezneva 2f35d6d868 Scripting: save inputs stamp and diagnostics to file attributes
Check if they are up to date and initiate configuration update only in case they are out of date

^KT-35205
2019-12-16 14:55:45 +03:00
Natalia Selezneva 13b4e8716c Changes inside initscript and pluginManagement blocks should invalidate script configuration
^KT-35129 Fixed
2019-12-16 14:55:43 +03:00
Natalia Selezneva d68c3584f2 Scripting: add test for loading configuration for gradle scripts 2019-12-16 14:55:42 +03:00
Natalia Selezneva 424a2c72b2 Implement KotlinWordsScanner
This will allow to correctly calculate the file modification crc based on it. this is needed for build.gradle.kts files which show notification about necessity of importing project. Otherwise this notification is shown on every file modification (after virtualFile save)
2019-12-16 14:55:41 +03:00
Natalia Selezneva 886e9613b8 Move script related extensions to separate xml-s 2019-12-16 14:55:40 +03:00
Natalia Selezneva 2e933507c6 Fix duplicated “Kotlin Script” definition for Gradle/Kotlin projects (KT-35096)
^KT-35096 Fixed
2019-12-16 14:55:40 +03:00
Denis Zharkov 153d894afb FIR: Optimize ConeTypeContext::asSimpleType 2019-12-16 13:09:48 +03:00
Denis Zharkov 1790dcf80c FIR: Reorder when entries in ConeTypeContext::typeConstructor
More expected types should be checked first
2019-12-16 13:09:48 +03:00
Denis Zharkov a14852a6ec Minor. Make ConeClassLikeTypeImpl final 2019-12-16 13:09:48 +03:00
Sergey Rostov ac81f046fd gradle.kts importing test: don't run on 191 (including as34) 2019-12-16 12:59:02 +03:00
Leonid Startsev a2d8e2435f Reorder steps in psi2ir so postprocessing goes before unbound symbols stub generating
This is required because currently IR compiler plugins are launched during 'postprocess' step
and for correct work they require unbound symbols for plugin-provided declarations
(see commit message of 3e18350a for detailed explanation)
2019-12-16 12:42:18 +03:00
Mikhail Glukhikh 737eaebee6 FIR resolve: fold flexible types whenever possible #KT-31528 Fixed 2019-12-16 12:06:10 +03:00
Sergey Rostov 9f5a02dc7a gradle.kts importing: fix as36 2019-12-16 11:24:35 +03:00
Mikhail Glukhikh 637e6f5acc FIR: add forgotten test data for old FE test 2019-12-16 11:10:19 +03:00
Mikhail Glukhikh acf48a1af7 Return NONE from FirSuperTypeScope if nothing is found 2019-12-16 10:50:52 +03:00
Mikhail Glukhikh 001af68495 FIR: distinguish lazy/non-lazy nested scopes more clear 2019-12-16 10:50:52 +03:00
Mikhail Glukhikh fea224749b FIR: introduce symbolProvider.getNestedClassifierScope to choose lazy/non-lazy
For some reason this breaks two old FE based tests with member type aliases.
It's not very interesting because member aliases aren't supported.
2019-12-16 10:50:52 +03:00
Mikhail Glukhikh 663d545d79 FIR: get rid of symbolProvider.getClassDeclaredMemberScope at all 2019-12-16 10:50:52 +03:00
Mikhail Glukhikh af87a183c2 FIR: get rid of symbolProvider.getClassDeclaredMemberScope usages in compiler 2019-12-16 10:50:52 +03:00
Mikhail Glukhikh f497231acd FIR: try to use JavaSymbolProvider directly in lazy nested classifier scope 2019-12-16 10:50:52 +03:00
Sergey Rostov 48d60ed4ea revert accidentally changed vcs.xml 2019-12-16 10:38:42 +03:00
Sergey Rostov 039090d2bf gradle.kts importing tests: run gradle 6.0.1 only for that test 2019-12-16 10:31:12 +03:00
Sergey Rostov 1930ab7c38 gradle.kts importing: reduce bunch files 2019-12-16 10:31:11 +03:00
Sergey Rostov c0690ff5f6 gradle.kts importing: move code to dedicated package 2019-12-16 10:31:11 +03:00
Sergey Rostov 6e3e65c490 gradle.kts importing: add support for included builds and fix sub projects 2019-12-16 10:31:11 +03:00
Sergey Rostov fef193be63 gradle.kts: add tests for importing scripts configuration 2019-12-16 10:31:11 +03:00
Sergey Rostov dcd67d79f4 gradle.kts: script models should be imported in ProjectData key, not in GradleSourceSetData
Or it will be fail if there is no source sets (see org.jetbrains.kotlin.idea.codeInsight.gradle.GradleKtsImportTest.testEmpty for reproduction)
2019-12-16 10:31:11 +03:00
Sergey Rostov fd16078a34 gradle.kts: add clearCaches method for testing 2019-12-16 10:31:11 +03:00
Sergey Rostov 559b067f91 gradle.kts: move areSimilar to utils.kt to use in tests 2019-12-16 10:31:11 +03:00
Mikhail Glukhikh 249f72585d Fix test data in FIR old FE diagnostics test
Probably broken by 13 Dec commits of Denis Zharkov
2019-12-16 10:27:05 +03:00
Igor Yakovlev 2639ed2c48 Fix invalid equality for UL methods
Potentially fixed #KT-34796
2019-12-15 23:42:31 +03:00