Commit Graph

26686 Commits

Author SHA1 Message Date
Alexander Udalov 934ffed944 Don't write field signatures when not necessary 2015-10-11 17:10:30 +03:00
Alexander Udalov 864926ee2e Don't always write JVM method signatures to metadata
When the trivial type mapping (implemented in JvmProtoBufUtil) from
ProtoBuf.Type instances works fine, don't write the signature since it can be
loaded by exactly the same trivial type mapping
2015-10-11 17:10:30 +03:00
Alexander Udalov 168f1000e4 Remove confusing outdated code about copying JVM signatures
This was necessary with old package facades, but not anymore because metadata
is written separately to file classes and codegen now never tries to serialize
deserialized descriptors
2015-10-11 17:10:29 +03:00
Alexander Udalov 3506a9615e Don't write default values of flags, provide sensible defaults 2015-10-11 17:10:28 +03:00
Alexander Udalov e58677b8fe Do not fail on unknown visibilities, modalities, etc in deserialization
Provide some sensible defaults like "private", "final", "class" instead, which
will give us a small possibility to not break the format if a new
modality/visibility/... is introduced in the case when the old compiler may
safely consider it as the default one
2015-10-11 17:10:28 +03:00
Alexander Udalov 2e10d21e3f Minor, rename LATE_INIT -> IS_LATEINIT, INNER -> IS_INNER 2015-10-11 17:10:27 +03:00
Alexander Udalov aa95375029 Fix incorrect copy-paste during proto messages refactoring
Annotations on properties should be loaded not when the message is Property
(this happens for getters/setters as well), but when the kind is explicitly set
to PROPERTY. Also restore construction of JVM signatures for constructors
2015-10-11 17:10:26 +03:00
Alexander Udalov e4efa27b76 Drop Callable and primary/secondary constructor proto messages 2015-10-11 17:10:26 +03:00
Alexander Udalov e02854db6d Support new protobuf messages in cls stub builder 2015-10-11 17:10:25 +03:00
Alexander Udalov a44f74ea20 Load new proto messages for constructors 2015-10-11 17:10:24 +03:00
Alexander Udalov 9bf0502a31 Load new proto messages for functions and properties 2015-10-11 17:10:24 +03:00
Ilya Gorbunov a58a7727d1 Preprocessor: cleanup unused code. 2015-10-11 16:14:38 +03:00
Ilya Gorbunov 423a146bce Preprocessor: do not use legacy package facade name in build.xml. 2015-10-11 16:14:24 +03:00
Alexey Sedunov ae9bd371e6 Unit Test Tooling: Test navigation
#KT-6472 In Progress
2015-10-11 01:13:48 +03:00
Alexey Sedunov ad929a6577 Unit Test Tooling: Implement "Create Test" action
#KT-6472 In Progress
2015-10-11 01:13:41 +03:00
Alexey Sedunov c697eef803 Minor: Undeprecate JetClassOrObject.isAnnotation() function 2015-10-11 01:08:11 +03:00
Denis Zharkov f9c7e7add4 Adjust project code to changes in properties loading 2015-10-10 12:29:15 +03:00
Denis Zharkov 97ed8c83a0 Adjust testData to isEmpty/key/value transformations 2015-10-10 12:29:15 +03:00
Denis Zharkov 83b680935b Adjust js stdlib to isEmpty transformation 2015-10-10 12:29:14 +03:00
Denis Zharkov 61459961fc Adjust stdlib to isEmpty transformation 2015-10-10 12:29:14 +03:00
Denis Zharkov cfc9d19825 Transform Collection.isEmpty and Map.Entry.key/value to properties 2015-10-10 12:29:14 +03:00
Denis Zharkov ad68378836 Support loading methods from Java as common properties overrides 2015-10-10 12:29:14 +03:00
Michael Nedzelsky 396f38e9b3 fix check for ambiguous parameter names for overriding methods 2015-10-10 02:55:31 +03:00
Ilya Chernikov c3d3160345 Cleaning jar cache after build in gradle plugin, fixes KT-9440. Some refactorings on the way to fix. 2015-10-09 22:38:15 +02:00
Yan Zhulanow ed5c059cea Rename unary plus() and minus() to unaryPlus() and unaryMinus() 2015-10-09 22:49:17 +03:00
Yan Zhulanow 1f2b4e20fe Replace get() and set() to getValue() and setValue() (property delegates) 2015-10-09 22:49:16 +03:00
Mikhail Glukhikh 2fee9d362c Local interfaces are forbidden now 2015-10-09 21:06:33 +03:00
Mikhail Glukhikh d1ab5168ec Error messages about "var with open / custom setter initialization" changed accordingly with the new backing field syntax 2015-10-09 21:06:29 +03:00
Mikhail Glukhikh 6914d09297 Old backing field with dollar is now forbidden 2015-10-09 21:06:26 +03:00
Mikhail Glukhikh 5117f744f7 Change to backing field fix is dropped because of deprecated syntax 2015-10-09 21:06:01 +03:00
Mikhail Glukhikh cf7146aaf7 Target is given for Throws annotation 2015-10-09 20:04:26 +03:00
Ilya Chernikov 1cb48d5ad9 Enabling daemon by default, removing word "experimental" from settings field name. 2015-10-09 17:47:50 +02:00
Dmitry Jemerov 07d3ab792a enable infix quickfix in cleanup 2015-10-09 17:43:27 +02:00
Dmitry Jemerov 6ca3a9fe9f quickfix to add 'infix' modifier 2015-10-09 17:43:26 +02:00
Dmitry Jemerov dcab3e406e update checker: fix EDT assertion, don't retry update if plugin repo has no compatible version 2015-10-09 17:39:50 +02:00
Natalia Ukhorskaya 6bc1f15f46 Debugger: fix tests on stepping 2015-10-09 17:33:19 +03:00
Natalia Ukhorskaya d441f2cf8a Debugger: do not compute location during creation of step command 2015-10-09 17:33:18 +03:00
Natalia Ukhorskaya bf4a71ee02 Minor: fix number of steps in some tests 2015-10-09 17:33:17 +03:00
Natalia Ukhorskaya a303c8a2f6 Debugger, stepping: first check that source position is in kotlin file 2015-10-09 17:33:17 +03:00
Valentin Kipyatkov 6fb329c1cd Minor 2015-10-09 16:42:07 +03:00
Valentin Kipyatkov 21b2631558 KT-9500 Prohibit java.lang.Deprecated in completion + no duplicates for built-ins in completion
#KT-9500 Fixed
2015-10-09 16:42:07 +03:00
Valentin Kipyatkov 7b2d63cfb9 Added infix modifier 2015-10-09 16:42:07 +03:00
Valentin Kipyatkov 91b2ba9ef3 Fixed warnings 2015-10-09 16:42:07 +03:00
Valentin Kipyatkov b549bc913a Dropped ability to specify custom PrefixMatcher in LookupElementsCollector 2015-10-09 16:42:07 +03:00
Valentin Kipyatkov aa0a68b4be More simple prefix matching in ParameterNameAndTypeCompletion 2015-10-09 16:42:06 +03:00
Valentin Kipyatkov 9b4070b881 Changed lookup strings and prefix matchers for parameter name&type completion to get more stable and correct ordering 2015-10-09 16:42:06 +03:00
Valentin Kipyatkov 7c39064f75 Removed unnecessary 'data' modifier 2015-10-09 16:42:06 +03:00
Valentin Kipyatkov 2c1defaf18 Smart completion for "ClassName::class" and "ClassName::class.java" when specific KClass or Class expected 2015-10-09 16:42:06 +03:00
Michael Nedzelsky b92a06929e fix KT-9484 Don't allow named arguments for inherited functions with parameter name conflicts
#KT9484 Fixed
2015-10-09 16:35:44 +03:00
Michael Bogdanov ae15443413 Generate linenumberts in objects clinit 2015-10-09 16:25:21 +03:00