Commit Graph

24142 Commits

Author SHA1 Message Date
Ilya Ryzhenkov eb97005cb5 Avoid creating SimpleResolutionContext in ConstantExpressionEvaluator to updateNumberType 2015-07-20 20:58:20 +03:00
Ilya Ryzhenkov 84236992cb Replace Injected properties with constructor parameters when it doesn't cause cycles 2015-07-20 20:58:19 +03:00
Ilya Ryzhenkov 76b9ac0f63 FileScopeProviderImpl dependencies 2015-07-20 20:58:18 +03:00
Ilya Ryzhenkov 04e71234a1 LocalClassifierAnalyzer dependencies 2015-07-20 20:58:17 +03:00
Ilya Ryzhenkov 5398de22f9 Container structure dump facilities. 2015-07-20 20:58:16 +03:00
Dmitry Jemerov 7192bc8798 restore fix for highlight usages which was lost during merge against J2K 2015-07-20 18:51:36 +02:00
Dmitry Jemerov 708513ce4c optimize imports 2015-07-20 18:32:13 +02:00
Dmitry Jemerov 3718a7dd44 code cleanup for JS modules 2015-07-20 18:32:05 +02:00
Natalia Ukhorskaya 973fa21fe9 Include snappy-in-java-0.3.1.jar in kotlin-compiler 2015-07-20 12:56:43 +03:00
Ilya Gorbunov 78b4c13d8f apply() got to smart completion where this was expected. 2015-07-20 02:16:38 +03:00
Ilya Gorbunov 1857725629 Unify documentation for scope functions. 2015-07-20 02:16:26 +03:00
Ilya Gorbunov 8a578a46f6 Introduce apply() scope function.
#KT-6903 Fixed
2015-07-20 02:06:38 +03:00
Ilya Gorbunov 3e231f2e44 Generalize run() scope function.
#KT-5235 Fixed
2015-07-20 02:05:22 +03:00
Ilya Gorbunov 21ee2c1cfd Cleanup Array.plus usages after bootstrap. 2015-07-20 01:55:13 +03:00
Alexey Sedunov 41aed73ebd Find Usages: Copy options used for highlighting (to prevent spoiling of default search scope used in the full usage search) 2015-07-17 21:19:28 +03:00
Nikolay Krasko 87e94aa20b Minor test data update after moving to new idea 2015-07-17 20:59:08 +03:00
Nikolay Krasko cac62fe4c8 Test fix after idea update 2015-07-17 20:59:07 +03:00
Nikolay Krasko f3c2de5287 Update to idea 142.3230.1 2015-07-17 20:59:05 +03:00
Nikolay Krasko 9648338b19 Enum with interface keywords leads to fail in DeclarationChecker 2015-07-17 20:59:03 +03:00
Nikolay Krasko 71b406d792 Fix class kind detector: prioritize enum over annotations. Introduce new error about enum annotations classes. 2015-07-17 20:59:02 +03:00
Pavel V. Talanov b2b8f1aabb Minor: prettify converted code a little bit 2015-07-17 19:21:25 +03:00
Pavel V. Talanov aae8ccfd57 Refactor: AnnotationSerializer does not depend on bultins 2015-07-17 19:21:24 +03:00
Pavel V. Talanov 251ebc7ca8 Inject ConstantExpressionEvaluator to some points of usage 2015-07-17 19:21:24 +03:00
Pavel V. Talanov 92161370f1 Refactor: Make some of utils in ConstantExpressionEvaluator non static 2015-07-17 19:21:23 +03:00
Pavel V. Talanov 855bff39fe Refactor: move annotation arguments resolve related utils from AnnotationResolver to ConstantExpressionEvaluator 2015-07-17 19:21:23 +03:00
Pavel V. Talanov a84da2bb0c Minor: move utilities closer to their only usage 2015-07-17 19:21:22 +03:00
Pavel V. Talanov f2016c8033 Minor: remove usage of KotlinBuiltins.getInstance() 2015-07-17 19:21:22 +03:00
Pavel V. Talanov 5ba2cda95d Minor refactor: Extract visitor from ConstantExpressionEvaluator into a separate class 2015-07-17 19:21:21 +03:00
Nikolay Krasko 67492ad5dd Disable kotlin sdk annotation check
#KT-7517 Fixed
2015-07-17 16:16:41 +03:00
Nikolay Krasko 9366652537 Disable annotation check for Android Studio and non-android sdk
Android studio always creates that sdk from scratch so no configuration will be stored after restart (KT-7517)
2015-07-17 16:16:40 +03:00
Pavel V. Talanov 3412febe59 Minor: better message in assertion 2015-07-17 16:06:17 +03:00
Nikolay Krasko e7f50982ca Merge pull request #726 from flire/master
Added export for completion visibility filter tests
2015-07-17 15:19:37 +03:00
Mikhail Glukhikh 0d0fc2802f Built-in test fixed 2015-07-17 13:26:49 +03:00
Mikhail Glukhikh af5e7f58da Implementation of Kotlin's 'target' annotation mapping to Java's 'Target' annotation + tests 2015-07-17 12:05:27 +03:00
Mikhail Glukhikh 2a1058ed63 Some usages of JetClassOrObject.isAnnotation() are removed. Related test fixed. 2015-07-17 12:05:19 +03:00
Mikhail Glukhikh 7f12965741 Suppress test corrected 2015-07-17 12:05:15 +03:00
Ilya Gorbunov 2c396cf28e Add clarification about the lazy nature of Sequence.plus and Sequence.minus operations. 2015-07-17 10:54:54 +03:00
Ilya Gorbunov 8ac613dd67 Fix docs for String.partition
#KT-8493 Fixed
2015-07-17 10:54:40 +03:00
Ilya Gorbunov fbd0c16551 Merging arrays without creating iterators. 2015-07-17 10:54:28 +03:00
Ilya Gorbunov b5b6e2e598 Usages of Array.plus: return type changed. 2015-07-17 10:54:16 +03:00
Ilya Gorbunov 25e5172591 Rewrite test for overloading plus not to depend on stdlib classes and methods. 2015-07-17 10:54:03 +03:00
Ilya Gorbunov 35959c49b3 Cast Set to Collection to choose right overload of plus. 2015-07-17 10:53:50 +03:00
Ilya Gorbunov 690a536734 Tests for minus operation for collections, sets, iterables and sequences. 2015-07-17 10:53:31 +03:00
Ilya Gorbunov 9d120dcd44 Provide minus and minusAssign for iterables, collections, sets, sequences.
removeAll and retainAll special case optimizations.
#KT-3721 Fixed
#KT-7466 Fixed
2015-07-17 10:53:18 +03:00
Ilya Gorbunov 048a3ebcc1 Implement plus for sequence as operand and refactor plus tests. 2015-07-17 10:53:05 +03:00
Ilya Gorbunov 0ee960da50 Change removeAll extension implementation to match the contract of member removeAll.
Add retainAll for sequences.
2015-07-17 10:52:51 +03:00
Ilya Gorbunov ecba29a08a Reword contract of Collection's removeAll and retainAll to emphasize that the criteria to remove or retain element is the containment in the specified collection.
Collection.remove(element): clarify docs.
2015-07-17 10:52:38 +03:00
Ilya Gorbunov 2c28c5a8e8 Define plusAssign operator for mutable collections.
#KT-4020 Fixed
2015-07-17 10:52:25 +03:00
Ilya Gorbunov dd945f4d1a Tests for plus on collections, sets, sequences. 2015-07-17 10:52:12 +03:00
Ilya Gorbunov 0f340c8f62 Make primitive array tests run both in JVM and JS 2015-07-17 10:52:00 +03:00