Commit Graph

24515 Commits

Author SHA1 Message Date
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
Sergey Mashkov 2826f193dd AbstractCollection should use Kotlin.toString
#KT-8662 Fixed
2015-07-31 14:28:30 +03:00
Ilya Gorbunov 81cbbad1e5 Add test comparing behavior of a reversed list and a reversed view on a list. 2015-07-31 14:28:29 +03:00
Sergey Mashkov 8a0c752f99 KT-4844 Support asReversed() for lists 2015-07-31 14:28:29 +03:00
Dmitry Jemerov f86bb119bb download ProGuard from Artifactory 2015-07-31 13:18:11 +02:00
Sanket Dasgupta b82ba117cc update readme.md to include try.kotlinlang.org 2015-07-31 13:24:27 +03:00
Alexander Udalov 0ad9dc9abf Specification for function type reform 2015-07-30 23:06:06 +03:00