Alexander Udalov
2eb5201575
Introduce KAnnotatedElement and val annotations: List<Annotation>
2015-08-03 23:32:23 +03:00
Alexander Udalov
d1e67805fc
Fix supertypes for reflected Java classes, always include j.l.Object
...
equals/hashCode/toString had not appeared in Java classes' "members" because of
this
2015-08-03 23:06:15 +03:00
Alexander Udalov
af9ae46f9a
Minor, fix test on KParameter.index
2015-08-03 23:06:14 +03:00
Mikhail Glukhikh
61fbe0d1e8
Refactoring of repeatable on retention SOURCE check (correct additional checker usage)
2015-08-03 19:43:24 +03: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
d127162a6d
Removed LOCAL_ENUM_NOT_ALLOWED
2015-08-03 19:41:58 +03:00
Mikhail Glukhikh
a104b2c84c
Dead code removed (wrong annotation target for enum)
2015-08-03 19:41:55 +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
faac06ff7e
Annotation option 'mustBeDocumented': definition, mapping from Kotlin to Java Documented and back, tests
2015-08-03 19:41:48 +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
3d71610d96
Fixed parsing tests
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
Zalim Bashorov
84543c4ed4
Merge pull request #733 from JetBrains/rr/nik
...
get rid of deprecated method usage
2015-08-03 14:01:21 +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
5b07eea1b9
Prevent recursion when processing star projection
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
557450677f
Rename, convert and optimize CompositeTypeSubstitution
...
- Get rid of storing array of inner substituions
- Rename is important as it wasn't actually composition
2015-07-31 17:33:21 +03:00
Denis Zharkov
70bf4d2faf
J2K: rename CompositeTypeSubstitution.java -> DisjointKeysUnionTypeSubstitution.kt
2015-07-31 17:33:21 +03:00
Denis Zharkov
465ed9973f
Minor. Make DeserializedType subclass of AbstractLazyType
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
Denis Zharkov
1aef9b77f1
J2K TypeSubstitution: Convert
2015-07-31 17:33:20 +03:00
Denis Zharkov
d762155e36
J2K TypeSubstitution: .java -> .kt
2015-07-31 17:33:20 +03:00
Denis Zharkov
0fba28a8f0
Do not retrieve parent of FQname for root
...
#KT-8642 Fixed
2015-07-31 17:33:20 +03:00
Denis Zharkov
8b537bc6dd
Minor. Get rid of raw types in upper bounds
2015-07-31 17:33:20 +03:00
Michael Nedzelsky
2adf1e0e96
add ProtoBugCompareConsistencyTest
2015-07-31 16:51:24 +03:00
Michael Nedzelsky
31d5ec2370
minor: GenerateProtoBuf: get rid of weak warnings, add a reminder about GenerateProtoBufCompare.
2015-07-31 16:51:20 +03:00
Dmitry Jemerov
8ef5adb5bd
remove usages of ant-contrib from Ant build scripts
2015-07-31 14:26:57 +02:00
Sergey Mashkov
0e25a5ea82
JS: arrayToString should use toString() instead of direct join to handle nulls properly
...
#KT-8663 Fixed
2015-07-31 14:28:30 +03:00