Commit Graph

22233 Commits

Author SHA1 Message Date
Ilya Gorbunov 44d7f768c7 Visibility of Regex primary constructor. Provide adapting methods Pattern.toRegex and Regex.toPattern. 2015-05-09 01:11:24 +03:00
Ilya Gorbunov 6c9ca39286 Implement CharSequence.isEmpty method in stdlib.js. Remove corresponding intrinsic. 2015-05-09 01:11:22 +03:00
Ilya Gorbunov 7a51123d26 Make native* methods internal in stdlib.js as it was intended.
They are not checked with stdlib-validator, so it is possible.
2015-05-09 01:11:20 +03:00
Ilya Gorbunov ae13359adc Change package of extensions and other top-level declarations from kotlin.js to kotlin to match corresponding ones in stdlib for JVM. 2015-05-09 01:11:18 +03:00
Ilya Gorbunov 908864b0c0 Move native RegExp to kotlin.text.js package 2015-05-09 01:11:16 +03:00
Ilya Gorbunov a5177b785d Add String.replaceFirst methods.
String.replaceFirst(String, String) temporary named as replaceFirstLiteral.
2015-05-09 01:11:14 +03:00
Ilya Gorbunov 157c86b9c6 Empty string is supported as a delimiter in split and as an oldValue in replace. 2015-05-09 01:11:12 +03:00
Ilya Gorbunov 43dd23bd4b Remove some conflicting declarations from test, convert code to new Regex API 2015-05-09 01:11:10 +03:00
Ilya Gorbunov 2ae767a049 Add deprecated matcher() method to Regex to fix build. 2015-05-09 01:11:08 +03:00
Ilya Gorbunov 5f4e3ae6af Documentation and visibility of members.
Add hasMatch method to check whether there is at least one match exists.
IGNORE_CASE always includes UNICODE_CASE on JVM.
2015-05-09 01:11:07 +03:00
Ilya Gorbunov db13705506 Tests for match and replace. 2015-05-09 01:11:04 +03:00
Ilya Gorbunov 0b03caf3e7 Uniform implementation of String.replace and String.matches(Regex) across JVM and JS.
Deprecated String.matches(String) and String.replaceAll methods.
2015-05-09 01:11:03 +03:00
Ilya Gorbunov 01ace84070 Regex implementation: split, replace and replaceFirst. 2015-05-09 01:11:00 +03:00
Ilya Gorbunov 559c1604d7 Rename Pattern to Regex.
toRegex now converts string to our regex, and toPattern converts to JVM Pattern.
2015-05-09 01:10:59 +03:00
Ilya Gorbunov a4784dfa78 Pattern implementation for JS. 2015-05-09 01:10:57 +03:00
Ilya Gorbunov da1641e0f8 Pattern implementation: JVM and partially JS.
Common tests.
2015-05-09 01:10:55 +03:00
Ilya Gorbunov 459e95d1d9 Pattern (Regex) API. 2015-05-09 01:10:53 +03:00
Ilya Gorbunov 370a67e753 js.stdlib: native replace made private. 2015-05-09 01:10:51 +03:00
Ilya Gorbunov 69a5d27c74 js.stdlib: Native RegExp. 2015-05-09 01:10:49 +03:00
Ilya Gorbunov 18f3018ce7 js.stdlib: js-only tests now included in kotlin-js-tests module. 2015-05-09 01:10:47 +03:00
Valentin Kipyatkov 837e46a9b8 Big change in quickfix tests: no stupid test data format with "before" and "after" file prefixes 2015-05-08 22:29:42 +03:00
Yan Zhulanow a1acc60ed3 Update Gradle API and Android Gradle plugin dependency versions in kotlin-android-extensions 2015-05-08 18:19:26 +03:00
Yan Zhulanow 7639ab4f41 Separate support and normal properties 2015-05-08 18:19:26 +03:00
Yan Zhulanow 1ae2719d34 Visit children nodes even if layout XML tag is ignored 2015-05-08 18:19:25 +03:00
Yan Zhulanow c774eac0e3 IDEA dependency version check for main IDEA and Android Extensions IDEA plugins 2015-05-08 18:19:25 +03:00
Yan Zhulanow dbc0099e6e Fix usage printing for compiler plugins 2015-05-08 18:19:25 +03:00
Yan Zhulanow fdc253b67f Bugfix: support several resource directories in AndroidPsiTreeChangePreprocessor 2015-05-08 18:19:24 +03:00
Yan Zhulanow 77be78b627 Support Android flavors 2015-05-08 18:19:24 +03:00
Yan Zhulanow bf707ec3f7 Minor: code clean, remove obsolete functions 2015-05-08 18:19:24 +03:00
Yan Zhulanow 3645dfc5af Support several res/ directories 2015-05-08 18:19:23 +03:00
Yan Zhulanow 7a685b8c56 Support Fragment synthetic properties 2015-05-08 18:19:23 +03:00
Yan Zhulanow d7488023d2 Add compiler tests for support.v4.app.Fragment 2015-05-08 18:19:22 +03:00
Yan Zhulanow 514bc74e9c Support android.support.v4.Fragment classes 2015-05-08 18:19:22 +03:00
Yan Zhulanow cc697d2c1a Minor: remove isResourceDeclarationOrUsage 2015-05-08 18:19:22 +03:00
Yan Zhulanow bc4a342a38 Refactoring: handle base AndroidResource class (in order to support <fragment>) 2015-05-08 18:19:21 +03:00
Zalim Bashorov 2cf478c864 Update to IDEA 14.1 EAP (141.1009.5) 2015-05-08 17:21:13 +03:00
Ilya Gorbunov 02b8394cb2 Change JetCodeFragment.IMPORT_SEPARATOR back to String 2015-05-08 16:48:11 +03:00
Alexey Sedunov f13eb038e1 Introduce Parameter: Java -> Kotlin Interoperability 2015-05-08 11:43:00 +03:00
Denis Zharkov 93861e16c8 Prohibit non-constant default values for annotation parameter
#KT-7449 Fixed
2015-05-07 22:36:17 +03:00
Denis Zharkov 585a437b2e Parse '@' annotations on enum entries
Just drop truncating builder's creation as we parse only escaped annotations
and will not `eat` entry identifier
2015-05-07 22:36:17 +03:00
Denis Zharkov e2cd983d49 Add quickfix for replacing deprecated annotations 2015-05-07 22:36:17 +03:00
Denis Zharkov e59a0dd0c6 Adjust KotlinSuppressIntentionAction to syntax with '@' 2015-05-07 22:36:16 +03:00
Denis Zharkov 849b8acbf8 Replace annotations with brackets in testData
Just in tests that changed after deprecation
2015-05-07 22:36:16 +03:00
Denis Zharkov 5bc7c9600f Deprecate annotations in brackets 2015-05-07 22:36:16 +03:00
Denis Zharkov 1d77f50903 Refine highlighting of '@'
- Do not highlight '@' as separate token.

- Highlight '@' the same way as element where it's located: annotation, label or modifier.

- Extend text range when positioning unresolved reference in annotation with '@'.

Note that currently '@' is collapsed with modifiers tokens
2015-05-07 22:36:16 +03:00
Denis Zharkov aa7bae213d Introduce ++ operator into grammar 2015-05-07 22:36:16 +03:00
Denis Zharkov b924f35ed3 Resolve annotations on multi-declaration for parameter 2015-05-07 22:36:16 +03:00
Denis Zharkov 3d810ffe61 Parse modifier list of multi-declaration and for parameters 2015-05-07 22:36:16 +03:00
Denis Zharkov e236d04957 Minor, drop unused method createConstructorModifierList 2015-05-07 22:36:16 +03:00
Denis Zharkov 9e23698fe3 Unwrap annotated expression in deparenthesize
It's needed to complete resolved call with annotated function literal
2015-05-07 22:36:15 +03:00