Commit Graph

36046 Commits

Author SHA1 Message Date
Dmitry Jemerov b4dd54f874 Add element validity check to KotlinRunConfigurationProducer.getStartClassFqName() (EA-86393 - PIEAE: PsiFileImpl.getText) 2016-12-12 17:50:28 +01:00
Dmitry Jemerov 2cc42ba151 Highlight code fragments only when they have a context (part of EA-84233 - assert: GetModuleInfoKt$getModuleInfo$.invoke) 2016-12-12 17:50:27 +01:00
Dmitry Jemerov d6cd1486c6 Implement supertype access methods in KtLightClassForFacade without delegate access (EA-92490 - ISE: KtLightClassForFacade.getClsDelegate) 2016-12-12 17:50:27 +01:00
Dmitry Jemerov 48513c7b1d Better diagnostics for "no resolver for module descriptor" situation (EA-72838 - ISE: EmptyResolverForProject.resolverForModuleDescriptor) 2016-12-12 17:50:26 +01:00
Dmitry Jemerov bd0aa5a358 Avoid committing document in KDoc beforeCharTyped handler (EA-88521 - assert: PsiDocumentManagerBase.commitDocument) 2016-12-12 17:50:20 +01:00
Dmitry Jemerov 7f02c67fbf Avoid NPE while calculating assertion message (EA-92384 - NPE: KtElementImpl.getContainingKtFile) 2016-12-12 17:50:19 +01:00
Dmitry Jemerov d5e90b4123 Remove unnecessary uses of getContainingKtFile() (EA-83360 - CCE: KtElementImplStub.getContainingKtFile) 2016-12-12 17:50:11 +01:00
Dmitry Jemerov b5ad1e1be5 Check for file validity before calling findFileByRelativePath() (EA-92325 - IVFAE: VirtualDirectoryImpl.doFindChild) 2016-12-12 17:50:10 +01:00
Roman Elizarov 8affb2726f Pluggable Synthetic Objects 2016-12-12 18:43:26 +03:00
Simon Ogorodnik 7a4b6a1462 Fix for EA-89556 - (from J2K) ROME: DocumentImpl.replaceString 2016-12-12 18:35:16 +03:00
Dmitry Jemerov 13b8494373 Remove unnecessary cyclic dependency between KtStubElementTypes and KtNodeTypes
#KT-15074 Fixed
2016-12-12 16:26:58 +01:00
Dmitry Jemerov a7bd910dbb Don't try to calculate icon for invalid PSI elements
#KT-13443 Fixed
2016-12-12 16:24:51 +01:00
Simon Ogorodnik fb5398cdcd Fix for KT-14885 J2K on paste adds duplicated imports 2016-12-12 18:16:17 +03:00
Alexey Andreev 39de1a7659 JS: generate temporary names for function parameters. Remove tests for js() function that references parameters. Remove such usages of js() function from stdlib 2016-12-12 14:30:45 +03:00
Alexey Andreev b634c2cbe3 JS: declare names for native declaration in root scope, to avoid clashing between inner names and global native names. Fix KT-14806 2016-12-12 14:30:45 +03:00
Alexey Andreev 9c9b23a0fb JS: fix translation of local function in lambdas 2016-12-12 14:30:44 +03:00
Alexey Andreev 8ef72935a8 JS: fix translation of try statements with multiple catches 2016-12-12 14:30:44 +03:00
Alexey Andreev d9e0e9f0b3 JS: don't resolve unused temporaries 2016-12-12 14:30:43 +03:00
Alexey Andreev 1db4765801 JS: unmute shared box test that now passes 2016-12-12 14:30:43 +03:00
Alexey Andreev e54138b74f JS: use temporary names while translation, replace with fixed name during post-processing pass 2016-12-12 14:30:42 +03:00
Vyacheslav Gerasimov 9c78301008 Invoke rename handler with editor if possible in IllegalIdentifierInspection.RenameIdentifierFix
#KT-14760 Fixed
#KT-11646 Fixed
2016-12-12 13:47:58 +03:00
Mikhael Bogdanov 1f26c3098f Binary compatibility validator tests update according to new @PublishedApi annotation 2016-12-12 10:25:05 +01:00
Alexander Udalov 91cf09dc3b Fix test on IS_PRE_RELEASE
Use DeserializedDescriptorResolver.IS_PRE_RELEASE instead of
KotlinCompilerVersion.IS_PRE_RELEASE because the former is updated correctly in
tests

(cherry picked from commit 95b4b6e7d92b112603be9f8243aac9c39be7df67)
2016-12-12 11:29:22 +03:00
Ilya Gorbunov b3b2a5eb91 Update ranges codegen light-analysis testData. 2016-12-11 21:26:06 +03:00
Yan Zhulanow 2f50bd8c80 Minor: Fix light analysis tests (rebase to master) 2016-12-11 21:03:05 +03:00
Mikhail Zarechenskiy 40ff7c6e33 Fix test data 2016-12-09 21:08:29 +03:00
Yan Zhulanow 8afac55a90 Kapt3, Minor: Sort stubs output in tests 2016-12-09 20:53:48 +03:00
Yan Zhulanow 7644724cd3 Kapt3: Fix tests (parameter names are not provided for abstract methods in 1.1) 2016-12-09 20:48:24 +03:00
Yan Zhulanow 5061bab794 Kapt3: Add property annotation holder methods to Java stubs (KT-13767) 2016-12-09 20:40:35 +03:00
Yan Zhulanow e3db014c27 Kapt3: Allow to use ':' in annotation processor option value (KT-15139) 2016-12-09 20:29:34 +03:00
Yan Zhulanow 3ecac1bbd3 Kapt3: Make 'kaptTest' configuration extend 'kapt' (KT-10190) 2016-12-09 20:29:29 +03:00
Yan Zhulanow 3f8accc2bf Kapt3: Fix '$' in function generic signatures (KT-15148) 2016-12-09 20:29:23 +03:00
Yan Zhulanow d726d0de88 Kapt3: Use annotation processor options from variant data options. This fixes DataBinding on Android Gradle plugin 2.3 (KT-14816) 2016-12-09 20:29:19 +03:00
Yan Zhulanow 40ef487129 Kapt3, Minor: Flush logs before throwing parse error exception 2016-12-09 20:29:14 +03:00
Yan Zhulanow c0b772a896 Kapt3: Fix signature clash (return type is different) for non-generic methods 2016-12-09 20:28:57 +03:00
Yan Zhulanow 5f0d270e9e Kapt3: Clear javac's boot classpath (KT-15001) 2016-12-09 20:28:52 +03:00
Yan Zhulanow ada8bb63a4 Kapt3: Separate classpaths for compilation and for annotation processing 2016-12-09 20:28:46 +03:00
Yan Zhulanow 3c77242da2 Kapt3: Fix parameter names in JvmOverloads-generated methods (KT-15024) 2016-12-09 20:28:41 +03:00
Yan Zhulanow 77153f0926 Kapt3: Fix "Parameter names are clashing in inner class constructor" (KT-14998) 2016-12-09 20:28:36 +03:00
Yan Zhulanow b9a0a4f3db Kapt3: Ensure that field types and method return types are not anonymous (KT-14997) 2016-12-09 20:28:31 +03:00
Yan Zhulanow 01c76153c7 Kapt3: Allow function overloads based on return type (KT-14996). Fix wrong facade class name inside the default package 2016-12-09 20:28:25 +03:00
Yan Zhulanow 6217d21c24 Kapt3: Kapt3 fails on several top-level functions in one package (KT-14991) 2016-12-09 20:28:20 +03:00
Yan Zhulanow 34316d09bf Kapt3: Close annotation processing ClassLoader (KT-9440) 2016-12-09 20:28:11 +03:00
Yan Zhulanow de15003706 Minor: Add sam-with-receiver to Ultimate project classpath, fix cli plugin path in build.xml 2016-12-09 20:26:41 +03:00
Yan Zhulanow cbef0250aa Allow to turn the first parameter of a SAM-converted lambda into the receiver (KT-12848) 2016-12-09 20:01:21 +03:00
Yan Zhulanow fc8cc217dc Do not create local variables in an abstract class inside OptimizationMethodVisitor, MethodNode forbids this. 2016-12-09 20:01:19 +03:00
Yan Zhulanow 3b65cb1ef2 Check if modality is refined in "Redundant modifier" inspection 2016-12-09 20:01:18 +03:00
Yan Zhulanow 0a2b52c1ed Minor: Add allopen-ide and allopen-noarg to "idea" module test classpath 2016-12-09 20:01:16 +03:00
Yan Zhulanow a22e5d446b NoArg: Add Maven plugin 2016-12-09 20:01:15 +03:00
Yan Zhulanow c705f0c437 NoArg: Add IDE integration 2016-12-09 20:01:14 +03:00