Commit Graph

8751 Commits

Author SHA1 Message Date
Denis Zharkov 41d4af2cb9 Implement rendering of raw types
Also add some clarification in spec
2015-08-06 08:18:18 +03:00
Denis Zharkov 460c719753 Make constructor of JetTypeImpl private, introduce factory methods 2015-08-06 08:18:18 +03:00
Mikhail Glukhikh 5b31560808 x?.y is now nullable even if y is Unit + three tests + codegen test fix + source code fix #KT-7936 Fixed #KT-8347 Fixed 2015-08-05 12:26:01 +03:00
Valentin Kipyatkov 6df218df52 Fixed test data 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov a7db995f05 Correct icon shown for synthetic extensions 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov d5f95cf126 Correct visibility for non-public SAM-adapters 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov 2eb04db95a Extension SAM-adapters shown in completion 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov 321bf40b65 Fixed compilation 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov 729085ec9a Iniital implementation of synthetic extensions for SAM-adapter functions (non-static only) 2015-08-04 18:05:55 +03:00
Valentin Kipyatkov 4187be2fe5 KT-8255 Intention actions popup: there are duplicates between quickfixes and intentions
#KT-8255 Fixed
2015-08-04 17:57:02 +03:00
Dmitry Jemerov 00ec19a709 use correct API for converting URL to string 2015-08-04 14:53:07 +02:00
Mikhail Glukhikh 992c019c1e Redundant modifier targets introduced (abstract / open on interface, final on enum or object) 2015-08-03 19:42:00 +03:00
Mikhail Glukhikh 722a078968 15 separate modifier diagnostics are gone now 2015-08-03 19:41:53 +03:00
Mikhail Glukhikh 4bd48c4796 Regular modifier checker implemented (initial version). A set of tests fixed accordingly.
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT.
A set of modifier diagnostics is not in use now (but not deleted yet).
2015-08-03 19:41:50 +03:00
Mikhail Glukhikh dfaed3fef3 Binary or runtime repeatable annotations are not allowed for JVM. Some tests fixed accordingly. 2015-08-03 19:41:45 +03:00
Dmitry Jemerov f51107b502 enlarge use scope scope of PSI elements in built-in sources to Project and Libraries (to counteract the effect of https://github.com/JetBrains/intellij-community/commit/897d7cabe6d482182ae6d54a1b158f80b1652d75) 2015-08-03 18:16:53 +02:00
Valentin Kipyatkov 1b3f4def15 Don't try to schedule optimize imports on the fly in batch inspections 2015-08-03 17:11:13 +03:00
Valentin Kipyatkov 315a73fd12 Minor optimization: don't walk through parent directories 2015-08-03 17:11:12 +03:00
Valentin Kipyatkov d308c959ff Moved soft keyword highlighting and other analysis that do not require keywords into separate pass executed before running any resolve 2015-08-03 17:11:12 +03:00
Valentin Kipyatkov f378b9bb75 Do not invalidate resolve of everything after change inside a code block 2015-08-03 17:11:12 +03:00
Valentin Kipyatkov e59b621931 DeprecatedSymbolUsageInWholeProjectFix uses ReferenceSearch instead of Find Usages 2015-08-03 16:28:44 +03:00
Valentin Kipyatkov c2c6ba59fd Changes on code review 2015-08-03 16:28:44 +03:00
Valentin Kipyatkov 397e48a11d ReferenceSearch searches references to parameters using optimized way too
#KT-8625 Fixed
2015-08-03 16:28:44 +03:00
Valentin Kipyatkov d6f724c55d Never find overriding parameter usages via old way 2015-08-03 16:28:43 +03:00
Valentin Kipyatkov 1bb8ca6ed5 On searching parameter usages asking if user wants to search usages of parameters of overriders too (as in Java) 2015-08-03 16:28:43 +03:00
Valentin Kipyatkov c5f7f08d24 Removed scanning non-strings and non-comments for plain text (as it's not clear why it can be needed) 2015-08-03 16:28:43 +03:00
Valentin Kipyatkov 9bb2fe9a67 Optimization of parameter usages search 2015-08-03 16:28:43 +03:00
Valentin Kipyatkov 1d1d834901 Minor optimization 2015-08-03 16:28:43 +03:00
nik 97d9889bb1 get rid of deprecated method usage 2015-08-03 12:33:34 +03:00
Dmitry Jemerov ef095dd559 better filtering of elements in KDoc link completion 2015-07-31 19:17:21 +02:00
Dmitry Jemerov 969f702a70 force resolve doesn't seem to be necessary 2015-07-31 19:07:47 +02:00
Dmitry Jemerov df1a72e107 since BuiltInsReferenceResolver is initialized on-demand, we can't use async initialization 2015-07-31 19:07:46 +02:00
Dmitry Jemerov d6455ebfd8 BuiltInsReferenceResolver: avoid premature initialization, more cleanup
#KT-8631 Fixed
2015-07-31 19:07:45 +02:00
Dmitry Jemerov 1c3f30bd8e BuiltInsReferenceResolver: cleanup and convert to service 2015-07-31 19:07:44 +02:00
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