Commit Graph

24548 Commits

Author SHA1 Message Date
Mikhail Glukhikh bd3b5690a2 Standard annotations: must be documented 2015-08-05 18:32:12 +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
Mikhail Glukhikh 850580dc87 Java annotation mapper refactoring (constant names) 2015-08-05 12:25:53 +03:00
Mikhail Glukhikh 45cc3c025f Mapping of JavaDoc deprecated to Kotlin Deprecated + a pair of tests 2015-08-05 12:25:39 +03:00
Valentin Kipyatkov 7d02b45558 Fixed test data 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 4c0404ea82 Changes on code review 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 6df218df52 Fixed test data 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 9150c53832 Fixed codegen for non-public SAM-adapters 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 5bceefe8df Added UsageLocation parameter 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 c3064e2b0f Synthetic extensions for non-public get/set java methods 2015-08-04 18:05:56 +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 cb9ef9e1f0 Fixed nullability for return and parameter types in SAM-adapters 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 8b3870cc33 Optimization 2015-08-04 18:05:55 +03:00
Valentin Kipyatkov ece4d8b82f Added JetScope.getSyntheticExtensionFunctions() 2015-08-04 18:05:55 +03:00
Dmitry Jemerov 456cdab814 reset init time in all compiler invocations 2015-08-04 17:00:33 +02: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 f49ccb22ab report correct compiler init timings 2015-08-04 16:12:05 +02:00
Dmitry Jemerov 00ec19a709 use correct API for converting URL to string 2015-08-04 14:53:07 +02:00
Zalim Bashorov 7ea58bb097 Move UsageCollector.kt to descriptors module
* to fix bare plugin
* in the future it will be used in scopes declared in descriptors module
2015-08-04 15:34:29 +03:00
Mikhail Glukhikh 25cc5e1801 annotationChecker visibility corrected 2015-08-04 10:28:44 +03:00
Mikhail Glukhikh 4596edd19a 'dynamic' keyword is no longer a modifier (soft keyword only) 2015-08-04 10:28:42 +03:00
Dmitry Petrov 2275a4cb77 assert: CallResolverUtilPackage$CallResolverUtil$eba.hasUnknownReturnType
- ignore expressions with non-callable expected type resolved as callable reference expressions
(this can happen when we have incorrect code)
2015-08-04 09:41:14 +03:00
Alexander Udalov 6878453d44 Support KClass.objectInstance for objects and companion objects 2015-08-03 23:33:21 +03:00
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