Commit Graph

20191 Commits

Author SHA1 Message Date
Valentin Kipyatkov 1912f5b919 writeImportToFile removed from interface 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov 2d6ed5dd42 One more usage switched to use of new import insertion method 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov 2d4b1d9219 Switched to use of new import insertion API in a test (but had to use a hack!) 2015-02-12 18:18:02 +03:00
Valentin Kipyatkov 8a64f7ae84 Removed utility not needed anymore 2015-02-12 18:18:02 +03:00
Valentin Kipyatkov b091eaa3cd Fixed KT-2483 "Add import" quick fix offers adding import to non-API class
#KT-2483 Fixed
2015-02-12 18:18:02 +03:00
Valentin Kipyatkov 546836d5dd Fixed bug with importing some of SAM-constructors and factory functions
#KT-3449 Fixed
2015-02-12 18:18:01 +03:00
Valentin Kipyatkov 2c5953dbe6 Dropped confusing method signature 2015-02-12 17:34:51 +03:00
Valentin Kipyatkov e57799ca00 KT-3521 Import suggestions icons are always classes
#KT-3521 Fixed
2015-02-12 17:34:51 +03:00
Valentin Kipyatkov 8f7cf38e67 Switched to use of new method for import insertion 2015-02-12 17:34:51 +03:00
Valentin Kipyatkov 20c62a2835 *-imports inserted by default in non-test mode 2015-02-12 17:34:50 +03:00
Valentin Kipyatkov 4fff1f44bb Fixed bug in import insertion: it did not work with descriptors taken before modifications 2015-02-12 17:34:50 +03:00
Natalia Ukhorskaya 7a4b291c85 Debugger: implement compiling evaluator 2015-02-12 12:16:48 +03:00
Natalia Ukhorskaya 91e745704a Debugger: temporary copy some utils functions from idea 2015-02-12 12:16:47 +03:00
Natalia Ukhorskaya 3864f182da Debugger: return void value for empty code fragment 2015-02-12 12:16:46 +03:00
Natalia Ukhorskaya 187806d061 Debugger: remove usage of JDIEval during finding local variable in frame because it invokeMethod (loadClass) for find field type which invalidates frame 2015-02-12 12:16:46 +03:00
Natalia Ukhorskaya 3802957c15 Debugger: add tests for accessing outer class members from lambda inside inner class 2015-02-12 12:16:45 +03:00
Evgeny Gerashchenko d3d30106a4 Corrected updating Java mappings for package facade classes. We report all source files for it, not only currently compiled. 2015-02-11 19:19:55 +03:00
Evgeny Gerashchenko 1a486bf969 Reverted wrong test data for tests where files are added to package. Let them fail. 2015-02-11 19:19:55 +03:00
Evgeny Gerashchenko 02faa02a35 Checking Java mappings after rebuild (failing now for partially compiled package facades) 2015-02-11 19:19:55 +03:00
Alexander Udalov 29c501e813 Remove useless InjectorForLazyResolveWithJavaUtil, move methods to LazyResolveTestUtil 2015-02-11 18:37:13 +03:00
Alexander Udalov 9f74d64d03 Avoid using FQNAME_TO_CLASS_DESCRIPTOR slice where module exists 2015-02-11 18:37:13 +03:00
Alexander Udalov 25775ee516 Drop TraceBasedJavaResolverCache, inline into LazyResolveBasedCache 2015-02-11 18:37:12 +03:00
Alexander Udalov 021315f049 Minor, make ModuleDescriptor public in injectors
It's much more convenient to call injector.getModule() than
injector.getResolveSession().getModuleDescriptor()
2015-02-11 18:37:12 +03:00
Alexander Udalov 5dcf9df6ab Drop InjectorForJavaDescriptorResolver and dependencies
Use InjectorForLazyResolveWithJava instead, it does essentially the same
2015-02-11 18:37:11 +03:00
Alexander Udalov 745ac7355b Simplify ResolveSessionUtils and LazyResolveBasedCache 2015-02-11 18:37:11 +03:00
Alexander Udalov 1e8d8d0a99 Cleanup FqNamesUtil.kt
Delete unused, move some utilities to fqNameUtil.kt in IDE, rewrite comments
2015-02-11 18:37:11 +03:00
Alexander Udalov 9b28e19551 Use CodegenContext to determine outer class & enclosing method 2015-02-11 18:10:49 +03:00
Alexander Udalov c417d984c4 Minor, move tests under common directory 2015-02-11 18:10:46 +03:00
Alexander Udalov 32c371dd41 Minor, uncomment previously failing checks
#KT-5092 Fixed
2015-02-11 18:10:44 +03:00
Alexander Udalov 22e5efc7cd Remove useless parameter of FunctionCodegen.generateDefault
JvmMethodSignature can now be perfectly obtained by JetTypeMapper.mapSignature
2015-02-11 18:10:43 +03:00
Alexander Udalov f4d4fc042b Remove useless parameter of FunctionCodegen.generateMethod
JvmMethodSignature can now be perfectly obtained by JetTypeMapper.mapSignature
2015-02-11 18:10:42 +03:00
Alexander Udalov e7a744b315 Make JetTypeMapper aware of SAM constructor arguments
This obsoletes 'replaceName' workaround that was present in ClosureCodegen but
missing in other crucial call sites of mapSignature, e.g. generation of
EnclosingMethod info

 #KT-6691 Fixed
2015-02-11 18:10:41 +03:00
Alexander Udalov ca2cfb9859 Refactor SAM constructor invocation in JVM codegen
Compute all necessary info in CodegenAnnotatingVisitor and save to trace to be
read by ExpressionCodegen later
2015-02-11 18:10:39 +03:00
Alexander Udalov c84486f860 Refactor CodegenContext and subclasses
Drop unused methods, inline parameters, fix warnings, etc.
2015-02-11 18:10:38 +03:00
Alexander Udalov 6ee4c70f2f Minor, extract OuterClassInfo 2015-02-11 18:10:37 +03:00
Alexander Udalov 61a27da8d5 Move and simplify AsmUtil.writeOuterClassAndEnclosingMethod 2015-02-11 18:10:36 +03:00
Alexander Udalov a280599969 Fix wrong checkcast for === on objects
#KT-6747 Fixed
2015-02-11 18:10:35 +03:00
Alexander Udalov 37ec103d6a Regenerate tests 2015-02-11 18:10:33 +03:00
Evgeny Gerashchenko 145bd077fc Merge pull request #570 from JetBrains/rr/yole/generate-more-stdlib
Replace some manually duplicated stdlib method implementations with generated code
2015-02-11 17:26:30 +04:00
Alexey Sedunov 3614a0a3de Quickfix Test (multifile): Check changes in extra files 2015-02-11 14:45:15 +03:00
Alexey Sedunov e75bd1b41b Create from usage: Support extension members for Java classes 2015-02-11 14:45:14 +03:00
Alexey Sedunov 9f3ba50dc5 Extract function: Do not report conflicts for fake overrides/delegates of the same callable declaration 2015-02-11 14:45:12 +03:00
Alexey Sedunov cef9996ba7 Intentions: Convert extension receiver to parameter and vice versa 2015-02-11 14:40:28 +03:00
Alexey Sedunov 7b6160b92f Change Signature: Make JetChangeSignatureData read-only and use JetDelegatingMethodDescriptor for refactoring configuration 2015-02-11 14:40:27 +03:00
Alexey Sedunov fecfc93e63 Change Signature: Support conversion between extension and non-extension functions (UI) 2015-02-11 14:40:27 +03:00
Alexey Sedunov 96866a108f Change Signature: Support conversion between extension and non-extension functions 2015-02-11 14:40:26 +03:00
Alexey Sedunov b31da56e09 Shorten References: Introduce shortening options 2015-02-11 14:40:25 +03:00
Alexey Sedunov 8928c0282a Minor: Generalize visitor type of JetElement.acceptChildren() 2015-02-11 14:40:24 +03:00
Alexey Sedunov e68481557e Shorten References: Support 'this' simplification 2015-02-11 14:40:22 +03:00
Alexey Sedunov 3a7ae4303a Change Signature: Translate JetParameterUsage to Kotlin 2015-02-11 14:40:21 +03:00