Commit Graph

8717 Commits

Author SHA1 Message Date
Dmitry Jemerov 79bbb820bd BuiltInsReferenceResolver: J2K 2015-07-31 19:07:43 +02:00
Dmitry Jemerov 13a8f86049 BuiltInsReferenceResolver: rename to .kt 2015-07-31 19:07:42 +02:00
Denis Zharkov f850ff9d39 Minor. Fix compilation after raw types introduction
- Condition parameter loaded as SAM-adapter
- Use wildcards instead of raw
2015-07-31 17:33:21 +03:00
Denis Zharkov 6b92f67eac Load raw types as platform with specific bounds
Raw(A<T_i>) = (A<UP(T_i)>..A<*>)
Raw types have specific scopes that behaves like JVM signature erasure
2015-07-31 17:33:21 +03:00
Denis Zharkov 37420527f2 Add substitution concept into JetType
In most cases it's just a map { Parameter_i => Argument_i }
Will be used when loading Raw types from Java.

Also add ClassDescriptor.getMemberScope by substitution.
2015-07-31 17:33:21 +03:00
Denis Zharkov a07a1829c5 Rework TypeSubstituion, now it applies to types instead of constructors
Also introduce IndexedParametersSubstitution
2015-07-31 17:33:21 +03:00
Valentin Kipyatkov 196cecfe70 Fixed exception 2015-07-30 18:02:54 +03:00
Valentin Kipyatkov 422a9613f1 More correct detection of real methods to override 2015-07-30 18:02:54 +03:00
Valentin Kipyatkov a4c9aa43a5 Experimental feature to show properties in completion after prefix with "get" or "set" 2015-07-30 18:02:54 +03:00
Dmitry Jemerov 23dca520d5 ensure that a JetEnumEntry is equivalent to a KotlinLightEnumConstant
#KT-5057 Fixed
2015-07-30 16:36:18 +02:00
Natalia Ukhorskaya 2b19f58d3f Change since for plugin, because of usage of SourcePositionHighlighter in debugger 2015-07-30 15:53:47 +03:00
Dmitry Jemerov ee42da48e1 support multideclarations in Select Word
#KT-6833 Fixed
2015-07-30 13:53:03 +02:00
Dmitry Jemerov e545a7c699 add word selection step for selecting a type parameter or type argument list with enclosing brackets
#KT-6697 Fixed
2015-07-30 13:52:56 +02:00
Dmitry Jemerov 77caa0d644 highlight Kotlin files with errors in project view
#KT-8609 Fixed
2015-07-30 13:34:27 +02:00
Dmitry Jemerov 6d1ccc22ab reduce vertical whitespace in rendered KDoc comments 2015-07-30 10:38:16 +02:00
Dmitry Jemerov b483713f2c Render code blocks in KDoc 2015-07-30 10:38:15 +02:00
Dmitry Jemerov 909d094896 Fixed rendering of line breaks and apostrophes in KDoc
#KT-8531 Fixed
 #KT-8392 Fixed
2015-07-30 10:38:14 +02:00
Natalia Ukhorskaya ff0a064908 Debugger: Implement SourcePositionHighlighter to highlight lambda expressions during debug 2015-07-30 10:00:27 +03:00
Natalia Ukhorskaya ad6611b930 J2K: If last expression in Method Call is Lambda add it outside the parenthesis 2015-07-30 10:00:26 +03:00
Natalia Ukhorskaya c86b25b1dc Make j2k depends on idea-core instead of idea-full 2015-07-30 10:00:24 +03:00
Natalia Ukhorskaya 22ee063269 Add platformStatic annotation to main method from java
#KT-8219 Fixed
2015-07-30 10:00:24 +03:00
Natalia Ukhorskaya b54da25108 J2K: do not convert doc comments on WebDemo
#KT-7968 Fixed
2015-07-30 10:00:23 +03:00
Alexander Udalov d0562b7b90 Add SourceElement to AnnotationDescriptor
Use KotlinSourceElement in the compiler for annotations resolved from PSI,
introduce ReflectAnnotationSource for reflection
2015-07-29 23:44:18 +03:00
Alexey Sedunov d71217eb5c Pull Up: Rewrite some classes to Java to allow compilation against both Java 6 and Java 8 2015-07-29 16:21:29 +03:00
Alexey Sedunov c11f1807bc Rename: ClassKind.TRAIT -> ClassKind.INTERFACE 2015-07-28 23:24:23 +03:00
Alexey Sedunov 5bc2a4b14c Create From Usage: Do not keep semantic information in quickfix instances directly as it leads to memory leaks 2015-07-28 23:24:22 +03:00
Valentin Kipyatkov 8f940b07fb Fixed EA-70733 2015-07-28 22:39:32 +03:00
Valentin Kipyatkov 4355b3ed00 Fixed EA-70940 2015-07-28 22:39:32 +03:00
Valentin Kipyatkov eb03c5a6d0 Fixed exception 2015-07-28 22:39:32 +03:00
Valentin Kipyatkov bccaf6b340 Moved and renamed DescriptorClassMember 2015-07-28 22:39:32 +03:00
Valentin Kipyatkov 63dc843c71 KT-8542 Override dialog: only one class from hierarchy is shown
#KT-8542 Fixed
2015-07-28 22:39:31 +03:00
Valentin Kipyatkov 29379c061a Code improvements 2015-07-28 22:39:31 +03:00
Valentin Kipyatkov a2b759ef78 More proper package name 2015-07-28 22:39:30 +03:00
Valentin Kipyatkov 421a764eb9 Converted to Kotlin 2015-07-28 22:39:30 +03:00
Valentin Kipyatkov e98ce30333 Moved OverrideMethodsHandler 2015-07-28 22:39:30 +03:00
Valentin Kipyatkov 977bf593e0 KT-8574 'Convert to block body' inserts spurious < token
#KT-8574 Fixed
2015-07-28 22:39:29 +03:00
Valentin Kipyatkov e09fadae51 KT-8623 Completion get in the way when function as declared
#KT-8623 Fixed
2015-07-28 22:39:29 +03:00
Michael Nedzelsky 2e18b3de9d prepare to retire Type.Constructor message in descriptors.proto after M13 2015-07-28 19:49:00 +03:00
Alexey Sedunov 421f082d43 Pull Up: Minor: Extract local functions 2015-07-28 18:48:37 +03:00
Alexey Sedunov 7280be7bbc Pull Up: Do not render modifiers (except ABSTRACT and INNER) in MemberInfo text 2015-07-28 18:48:36 +03:00
Alexey Sedunov 7dc430e50b Pull Up: Support super-interfaces 2015-07-28 18:48:35 +03:00
Alexey Sedunov 1a09741c0a Pull Up: Move property initializers 2015-07-28 18:48:33 +03:00
Alexey Sedunov 390f352e75 Pull Up: Implement conflict analysis 2015-07-28 18:48:32 +03:00
Alexey Sedunov 8493908710 Conflicts Dialog: Add handler for "Show conflicts" action 2015-07-28 18:48:30 +03:00
Alexey Sedunov 39ff3c3000 Pull Up: Initial support
#KT-7330 Fixed
2015-07-28 18:48:29 +03:00
Alexey Sedunov e303a38f9e Member Info: Extended implementation (for Pull Up/Push Down) 2015-07-28 18:48:27 +03:00
Alexey Sedunov 3c36795984 Refactoring: Extract JetClassOrObject.getOrCreateBody() function 2015-07-28 18:48:26 +03:00
Alexey Sedunov 83e28b360f Refactoring: Move non-specific TypeSubstitutor factories to substitutionUtils.kt in compiler
Merge typeUtils.kt with changeSignatureUtils.kt
2015-07-28 18:48:24 +03:00
Alexey Sedunov d23da408a8 Formatter: Add blank line before class/object declaration inside of declaration body 2015-07-28 18:48:23 +03:00
Mikhail Glukhikh d6406d8d4a Annotation repetition checking with a pair of tests, some old tests changes 2015-07-28 17:13:32 +03:00