Alexander Udalov
942ab9ef6d
Make 'hasDefaultValue' an extension on ValueParameterDescriptor
...
To avoid storing a Boolean and a boolean. It isn't called frequently enough to
justify this wasted space for each parameter of every function out there
2015-08-07 23:01:20 +03:00
Nikolay Krasko
c13396d92f
Refactoring: inline method
2015-08-07 19:14:20 +03:00
Nikolay Krasko
5fe81d67a3
Refactoring: move function and avoid return lambda
2015-08-07 19:14:18 +03:00
Denis Zharkov
5323310950
Use LookupCancelWatcher as component instead of service
2015-08-07 19:14:09 +03:00
Natalia Ukhorskaya
93a3d3a4c4
Fix compilation error
2015-08-07 19:14:07 +03:00
Dmitry Jemerov
43bbed495b
code review
2015-08-07 11:41:50 +02:00
Dmitry Jemerov
c29ebfbb04
KotlinAnnotatedElementsSearcher: handle local scope; correctly handle import aliases
2015-08-07 11:41:49 +02:00
Dmitry Jemerov
df21eee761
KotlinAnnotatedElementsSearcher: cleanup after J2K; correctly handle consumer returning false
2015-08-07 11:41:44 +02:00
Dmitry Jemerov
6b5a227752
KotlinAnnotatedElementsSearcher: J2K
2015-08-07 11:41:43 +02:00
Dmitry Jemerov
b2553ccc38
KotlinAnnotatedElementsSearcher: rename to .kt
2015-08-07 11:41:42 +02:00
Alexey Tsvetkov
0688afbb0c
Introduce ClassDataProvider
2015-08-06 19:31:06 +03:00
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