Commit Graph

12478 Commits

Author SHA1 Message Date
Mikhail Glukhikh 7dbd5b75cc Expected return type is in use now during function literal analysis #KT-9134 Fixed 2015-09-16 17:12:41 +03:00
Mikhail Glukhikh 65b77558a1 Data flow value converted to Kotlin 2015-09-16 16:56:45 +03:00
Mikhail Glukhikh 71f09a89d4 Preliminary loop visitor converted to Kotlin 2015-09-16 15:55:44 +03:00
Mikhail Glukhikh 15e46ebc2b Refactoring: DataFlowValue.Kind introduced 2015-09-16 15:38:32 +03:00
Mikhail Glukhikh 8348f204cd Refactoring: base class extracted from PreliminaryLoopVisitor 2015-09-16 15:04:58 +03:00
Mikhail Glukhikh aa3a7c2838 Data flow info for arguments: nullability refactoring 2015-09-16 15:04:56 +03:00
Mikhail Glukhikh 1667f18d7c Receiver of a safe call is not null inside the call also for extension functions + a pair of tests #KT-9033 Fixed 2015-09-16 15:04:41 +03:00
Mikhail Glukhikh 22229af930 Annotation / modifier checking for setter parameters / for variables / multi declarations, tests, relevant test changes #KT-9145 Fixed 2015-09-16 09:51:37 +03:00
Alexander Udalov 2b269b2652 Improve ABI version error reporting in the compiler
- only report ABI errors if there's at least one other error
- append additional helpful information to the "unresolved reference" error
2015-09-16 01:44:27 +03:00
Alexander Udalov d98b3433eb Fix ABI version diagnostic for old package facades
Restore the test data that was erroneously replaced in 84649e4
2015-09-16 01:44:27 +03:00
Alexander Udalov 4bc257bd73 Minor refactoring in LazyJavaPackageScope 2015-09-16 01:44:27 +03:00
Alexander Udalov 8e83e1c17a Fix testIncompleteHierarchyInKotlin on Windows 2015-09-15 19:58:25 +03:00
Alexander Udalov 296212eab1 Merge two JetTypeMapper#mapToCallableMethod methods 2015-09-15 15:55:20 +03:00
Alexander Udalov 7c0780455a Remove unused parameter of JetTypeMapper#mapOwner, simplify lots of code 2015-09-15 15:55:20 +03:00
Alexander Udalov c7c9ec35cf Improve LoadBuiltinsTest, load built-ins from dist/kotlin-runtime.jar 2015-09-15 15:55:19 +03:00
Alexander Udalov 949144e0c0 Report incomplete hierarchy error for deserialized types
#KT-5129 Fixed

Delete a JPS test that was specifically testing that we would not fail in this
situation; now there's a compilation error
2015-09-15 13:11:17 +03:00
Alexander Udalov b4470de713 Improve inline diagnostics, report "nothing to inline" on the modifier 2015-09-15 13:11:16 +03:00
Alexander Udalov a946f787bc Fix exception from data class codegen for light classes
EA-66827
2015-09-15 13:11:16 +03:00
Dmitry Petrov 47b8853051 Generate light classes for single-file facades using PackageCodegen. 2015-09-15 10:25:40 +03:00
Dmitry Petrov ef6da03db2 Do not generate facade for single-file light classes 2015-09-14 21:26:33 +03:00
Pavel V. Talanov d6a9551392 Do not generate parts of multifile facade when building light classes
Building facade class is enough for this purpose
2015-09-14 19:40:11 +03:00
Dmitry Jemerov 9e6c0e7ee2 code review 2015-09-14 18:05:00 +02:00
Dmitry Jemerov 3cf6395750 move supports new facades 2015-09-14 18:04:58 +02:00
Dmitry Jemerov d67fb670b7 safe delete supports new facades 2015-09-14 18:04:58 +02:00
Dmitry Jemerov c81f1d314c call hierarchy supports new facades 2015-09-14 18:03:57 +02:00
Dmitry Jemerov 35de13a6b2 update Java references to file class when a file is renamed 2015-09-14 18:03:55 +02:00
Dmitry Jemerov ab58dc3586 allow returning multiple PsiMethod wrappers for a JetFunction or JetPropertyAccessor; use that for handling Java usages through old-style and new-style facades
#KT-9102 Fixed
2015-09-14 18:03:55 +02:00
Dmitry Jemerov 4d09280aa8 LightClassUtil: J2K 2015-09-14 18:03:54 +02:00
Dmitry Jemerov 043c961b57 LightClassUtil: rename to .kt 2015-09-14 18:03:53 +02:00
Dmitry Petrov f4e9d9a7a0 Fix navigation to decompiled multifile class members. 2015-09-14 17:59:17 +03:00
Dmitry Petrov 50ff2a3ad2 Multifile facade should contain reflection data,
otherwise callable references to stdlib functions will not work in the migration scheme.
2015-09-14 17:47:49 +03:00
Dmitry Petrov 5d0243d46f Fix incremental compilation tests 2015-09-14 17:47:49 +03:00
Valentin Kipyatkov 08e7a9d826 Made methods generated from declarations marked with @HiddenDeclaration synthetic in JVM 2015-09-14 17:42:40 +03:00
Mikhail Glukhikh 67f714434f Error message on JVM repeated annotation changed 2015-09-14 16:20:07 +03:00
Alexander Udalov dcd7464ae1 Fix NPE from REPL initialization 2015-09-14 13:23:17 +03:00
Mikhail Glukhikh b4399b8b8b AnnotationTarget.CLASSIFIER and KotlinTarget.CLASSIFIER both dropped (second step) 2015-09-14 12:51:11 +03:00
Dmitry Petrov 1586a2df8e Make stdlib work with -Xmultifile-package-facades.
Fixed wrong owner mapping in presence of -Xmultifile-package-facades.
Fixed backing field mapping issue.
Added more tests.
2015-09-14 11:26:29 +03:00
Dmitry Petrov 838433ba8a - call multifile class members (compiling against binaries)
- inline multifile class members
HACK? scope-based part/facade resolution
2015-09-14 11:25:42 +03:00
Dmitry Petrov 50f83da6da - call multifile class members (compiling against binaries)
- inline multifile class members
2015-09-14 11:25:42 +03:00
Dmitry Petrov 5f9a59d655 - bytecodeTextMultifile - framework for bytecode text tests
with multiple Kotlin source files
- bytecodeTextMultifile/partMembersCall, initial import
2015-09-14 11:25:42 +03:00
Dmitry Petrov 2931e474e1 - InnerClasses & EnclosingMethod attributes for local classes
in multifile part members
- invocation of multifile part/facade members
(TODO: deserialized descriptor case)
- inlining of multifile part/facade members
(TODO: inline against binaries case)
2015-09-14 11:25:41 +03:00
Nikolay Krasko d57e90f1ec Add import and fix compilation 2015-09-12 18:13:25 +03:00
Nikolay Krasko 6faf3f1eba Fix deadlock in ReflectionAPICallChecker because of conflict in lazy() and storageManager 2015-09-12 15:16:10 +03:00
Nikolay Krasko e99b0e751f Minor: reformat 2015-09-12 15:16:07 +03:00
Yan Zhulanow 01b2d02196 Remove @get: @set:, reorder remaining annotation targets 2015-09-11 22:32:23 +03:00
Mikhail Glukhikh d4d633ea26 Combined identifier info for things like '(x + y).z' is no longer treated as 'z' identifier info + a pair of tests + code fix #KT-9126 Fixed 2015-09-11 21:06:09 +03:00
Alexander Udalov 085fc3bf87 Transform anonymous types even for public symbols
This became necessary when we removed the requirement to specify types for
public members, because otherwise everything fails not being able to locate the
anonymous class from another module

 #KT-9072 Fixed
 EA-72801
2015-09-11 19:51:42 +03:00
Alexander Udalov 6cecc66d10 Improve ABI version from one number to "major.minor.patch" 2015-09-11 19:28:46 +03:00
Mikhail Glukhikh 3770e7f49f Introduction of AnnotationTarget.CLASS as a replacement for CLASSIFIER (first step) 2015-09-11 17:59:40 +03:00
Ilya Chernikov 8b970cd186 Fixing run filename compatibility with windows, improving diagnostics, some minor tweaks 2015-09-11 15:30:17 +02:00