Commit Graph

27730 Commits

Author SHA1 Message Date
Stanislav Erokhin 2c3f58eeb7 Renamed methods in MemberScope from getSmth to getContributedSmth 2015-11-05 14:34:00 +03:00
Stanislav Erokhin 6f9d9759ce Renamed KtScope to MemberScope 2015-11-05 14:34:00 +03:00
Alexander Udalov 748c0e7149 Don't assert that annotation class has constructor in AnnotationDeserializer
#KT-9758 Fixed
2015-11-05 13:42:31 +03:00
Ilya Gorbunov 1a0c2e2cf6 In-place sorting.
#KT-9034
2015-11-05 09:04:31 +03:00
Ilya Gorbunov 5e9b7b9e60 Collections.sort without comparator now uses natural order.
#KT-9771 Fixed
2015-11-05 09:03:30 +03:00
Ilya Gorbunov d5edbfd005 Refactoring: do not use own classes for nullsFirst and nullsLast wrappers of natural order. 2015-11-05 09:03:29 +03:00
Ilya Gorbunov fa261a7697 Add override for default method of Comparator from JDK8 2015-11-05 09:03:07 +03:00
Ilya Gorbunov 2b676e08bc Introduce naturalOrder<T> and reverseOrder<T> comparators. 2015-11-05 09:03:05 +03:00
Ilya Gorbunov 83fef68876 Add more cases to array in-place reversing test.
Add array of objects case to all reversing tests.
2015-11-05 09:03:03 +03:00
Ilya Gorbunov 4fc54a12b8 In-place reversing.
#KT-9034
2015-11-05 09:02:58 +03:00
Ilya Gorbunov 1400bdc09a Do not allow removeSurrounding remove overlapping prefix and suffix. 2015-11-04 22:19:59 +03:00
Ilya Gorbunov 05fd2b012a Provide overloads both for Strings and CharSequences of filter, filterNot, reversed and partition 2015-11-04 22:19:57 +03:00
Ilya Gorbunov 62d6bcaa6d Provide overloads both for Strings and CharSequences of removePrefix, removeSuffix, removeSurronding, trim* and pad*, replaceRange & removeRange 2015-11-04 22:19:55 +03:00
Ilya Gorbunov 2ed611e2c5 Docs corrections. 2015-11-04 22:19:52 +03:00
Ilya Gorbunov 0dd7e398c7 Use reverse indexed iteration in last and lastOrNull with predicate for CharSequences and Strings. 2015-11-04 22:19:50 +03:00
Ilya Gorbunov 8c16fad8b1 Make more string tests cross-platform. 2015-11-04 22:19:48 +03:00
Ilya Gorbunov 5373c380ac Remove obsolete extensions conflicting with stdlib 2015-11-04 22:19:46 +03:00
Ilya Gorbunov f20bfa7fb8 Fix test expectation failures caused by changed signatures. 2015-11-04 22:19:45 +03:00
Ilya Gorbunov d021a324aa Test CharSequence extension methods both for String and StringBuilder 2015-11-04 22:19:43 +03:00
Ilya Gorbunov 64338e896d Use CharSequence in split, splitToSequence, lines 2015-11-04 22:19:41 +03:00
Ilya Gorbunov 8c5ac26613 Use CharSequence in repeat and joinToString. 2015-11-04 22:19:39 +03:00
Ilya Gorbunov b4b84a38d5 Use templating in the docs for generated code to name things properly. 2015-11-04 22:19:37 +03:00
Ilya Gorbunov 5b055ac663 Preserve type of subsequence in drop* and take* operations.
Validate argument of drop (required in JS, more meaningful exception in JVM)
2015-11-04 22:19:35 +03:00
Daniel Rothmaler 67229401c6 Add set operator to make the work with StringBuilder more list-like.
Make StringBuilder.set jvm-only.
Move jvm-specific test.
2015-11-04 22:19:33 +03:00
Ilya Gorbunov e155e426c2 Implement CharSequence.regionMatches and generalize depending String extensions to take CharSequence.
Add hidden declarations for replaced overloads with String receiver in hand-written code.
2015-11-04 22:19:31 +03:00
Ilya Gorbunov 47560d3db1 Add hidden declarations for replaced overloads with String receiver in hand-written code. 2015-11-04 22:19:29 +03:00
Ilya Gorbunov 59b67b32c4 Add hidden declarations for replaced overloads with String receiver in generated code. 2015-11-04 22:19:27 +03:00
Ilya Gorbunov 935e606b64 Generalize String extensions to take CharSequence as receiver and parameters where applicable: generated code.
Exclude Strings family from default families.
2015-11-04 22:19:26 +03:00
Ilya Gorbunov 4a621cbb5f Generalize String extensions to take CharSequence as receiver and parameters where applicable. 2015-11-04 22:19:24 +03:00
Ilya Gorbunov 05615dd48b Introduce String.toByte()
#KT-8833 Fixed
2015-11-04 22:19:22 +03:00
Ilya Gorbunov 9bbe0d67ff Do not treat directory with copied test sources for js library as source root, as it confuses debugger under certain circumstances.
Remove duplicated test.
2015-11-04 22:19:20 +03:00
Zalim Bashorov c456ab0f74 Minor: refactoring ExpressionTypingUtils#checkVariableShadowing -- inline the search older descriptor 2015-11-04 22:15:39 +03:00
Zalim Bashorov 1eb9bf2592 Minor: remove accidentally forgotten Deprecated annotation 2015-11-04 22:15:37 +03:00
Zalim Bashorov 04fed203e4 Add tests for lookups to enum static scope and to companion object scope 2015-11-04 22:15:37 +03:00
Zalim Bashorov 1e51e333ab Minor: add comments to LazyJavaStaticClassScope, LazyJavaPackageScope and StaticScopeForKotlinClass 2015-11-04 22:11:34 +03:00
Zalim Bashorov a6855116b8 Track lookups for nested/inner Java classes 2015-11-04 22:09:55 +03:00
Stanislav Erokhin 87f32ef07b Minor. fix testdata 2015-11-04 14:28:29 +03:00
Stanislav Erokhin a90ca14033 Removed KtScope.Empty and created util function emptyScope 2015-11-04 14:28:28 +03:00
Stanislav Erokhin 4e891a3f98 Minor. moved util method to Companion of LexicalScope 2015-11-04 14:28:27 +03:00
Stanislav Erokhin 2c7746cafd Minor. Simplified code. 2015-11-04 14:28:27 +03:00
Stanislav Erokhin b02da0dc2f Created custom LexicalScope wrapper for resolving callable reference. 2015-11-04 14:28:26 +03:00
Stanislav Erokhin f7629b0c84 Removed getAllDescriptors() and getOwnDeclaredDescriptors() from KtScope 2015-11-04 14:28:25 +03:00
Stanislav Erokhin 0b5de434fa Removed usages KtScope.getAllDescriptors 2015-11-04 12:41:34 +03:00
Stanislav Erokhin 21fdd2ffc3 Created common supertype for LexicalScope & ImportingScope -- HierarchicalScope 2015-11-04 12:41:33 +03:00
Stanislav Erokhin 4c36e20242 Moved FilteringScope to frontend module 2015-11-04 12:41:32 +03:00
Stanislav Erokhin 6412df2e0b Change return type of KtScope.getProperties() 2015-11-04 12:41:32 +03:00
Stanislav Erokhin 7cd667c0e3 Removed unused methods from KtScope. 2015-11-04 12:41:31 +03:00
Stanislav Erokhin cc56cf6292 Removed several hacks from ScopeUtils.kt 2015-11-04 12:41:30 +03:00
Stanislav Erokhin 711daa459a Minor. Removed util method LexicalScope.asKtScope() 2015-11-04 12:41:30 +03:00
Stanislav Erokhin 40146a0df8 Minor. Make WritableScopeStorage abstract class 2015-11-04 12:41:29 +03:00