Ilya Gorbunov
a4f82a2dc4
Sensible behavior for File.startsWith and File.endsWith
2015-12-14 06:10:26 +03:00
Ilya Gorbunov
d2e22dc794
Fix tests on linux.
...
Add tests for File.startsWith
2015-12-14 06:10:24 +03:00
Ilya Gorbunov
645c78e2f4
Do not use assert in test, use assertTrue or assertEquals
2015-12-14 06:10:22 +03:00
Ilya Gorbunov
cb71e05c51
Deprecate File.directory, root, rootName as properties with unclear behavior.
2015-12-14 06:10:21 +03:00
Ilya Gorbunov
7c9b53c75c
Do not convert separatorsToSystem in file path extensions.
...
Do not require network host in network share root to contain dot.
File.root now is always non-null to be consistent with File.toComponents().root.
Introduce invariantSeparatorsPath property.
Deprecate relativeTo to make it return File later. Introduce toRelativeString instead.
Introduce relativeToOrNull and relativeToOrSelf extensions.
2015-12-14 06:10:18 +03:00
Ilya Gorbunov
52eb9e4276
Refactor FilePathComponents: rename properties, deprecate constructor, rename filePathComponents extension.
2015-12-14 06:09:55 +03:00
Ilya Gorbunov
8deefd56db
Rename FileTreeWalk public parameters and builder methods.
...
Directory filtering now is performed in newly introduced onEnter predicate.
2015-12-14 05:16:06 +03:00
Ilya Gorbunov
e24dbcefb6
Move all mutable state from FileTreeWalk to its iterator implementation, allowing this sequence to be iterated several times.
...
Introduce SingleFileState for single file walks.
Do not check isDirectory in DirectoryState constructor unless assertions are enabled.
2015-12-14 05:16:04 +03:00
Ilya Gorbunov
061803d7b1
Compare root of FilePathComponents according to case-sensitivity rules of current file system.
2015-12-14 05:16:02 +03:00
Ilya Gorbunov
4f2887df64
FileTreeWalk tests: do not remove failed directory from stack as leave is also called on failed dirs.
2015-12-14 05:16:01 +03:00
Ilya Gorbunov
162b152133
Improve File.relativeTo handling relative paths. Paths are normalized before calculating relative path. "x".relativeTo("../y") now is considered to have incompatible roots.
2015-12-14 05:15:59 +03:00
Ilya Gorbunov
9f5a972816
Improve resolve and resolveSibling for relative paths.
2015-12-14 05:15:57 +03:00
Ilya Gorbunov
923effe11d
Change FilePathComponents parsing for file with empty name to enhance finding relative path between relative paths.
2015-12-14 05:15:55 +03:00
Ilya Gorbunov
6301c707cd
Ensure resolveTo fails as expected.
...
Change UNC paths not to be misinterpreted on *nix.
2015-12-14 05:15:53 +03:00
Ilya Gorbunov
c23c2dbe85
FileTreeWalk: correct usage not to filter out subdirectories
2015-12-14 05:15:52 +03:00
Ilya Gorbunov
515d2cd3e7
FileTreeWalk.filter was dropped, use treeFilter otherwise filtering result becomes different.
...
Refactor walking tests.
2015-12-14 05:15:50 +03:00
Ilya Gorbunov
27551a8399
Make some io test classes non-nested as it's not supported by runners.
2015-12-14 05:15:48 +03:00
Ilya Gorbunov
33967a09f6
Unify minBy and maxBy for Maps with other families.
2015-12-14 04:56:47 +03:00
Ilya Gorbunov
33b366b9b9
Relax upper bound of T for minBy and maxBy to be nullable.
...
Swap type parameters of minBy and maxBy.
#KT-10099 Fixed
2015-12-14 04:56:45 +03:00
Ilya Gorbunov
58e93d5e1b
Update testData for LoadBuiltinsTest and BuiltInDecompilerTest
2015-12-14 04:29:28 +03:00
Ilya Gorbunov
bf9d50ccc4
Fix testData for LookupTracker
2015-12-14 04:29:27 +03:00
Ilya Gorbunov
59a9e2549c
Fix tests: codegen, completion, decompiler consistency, quickdoc, intentions, navigation, reference resolver, quick fixes
2015-12-14 04:29:25 +03:00
Ilya Gorbunov
f55b421853
Partially support default imports when analyzing ReplaceWith annotation pattern.
2015-12-14 04:29:23 +03:00
Ilya Gorbunov
d296d91272
Fix fq-names of top-level extensions in intentions.
2015-12-14 04:29:21 +03:00
Ilya Gorbunov
5df94da216
Fix fq-name of listOf in extract function.
2015-12-14 04:29:20 +03:00
Ilya Gorbunov
4dde59368c
Fix tests not to duplicate array constructor definitions as they are available now in builtins.
2015-12-14 04:29:18 +03:00
Ilya Gorbunov
f509937037
Move array constructors to builtins module back to kotlin package.
2015-12-14 04:29:11 +03:00
Ilya Gorbunov
5aff07561d
Move jvm annotations and class mapping intrinsics to runtime.jvm module to kotlin.jvm package.
...
Make annotationClass to be a property.
Deprecate with error javaClass property on KClass<T>
2015-12-14 03:51:07 +03:00
Ilya Gorbunov
feff5b2327
Stdlib generators: change values back to function.
2015-12-14 03:49:59 +03:00
Ilya Gorbunov
2d85c437cd
Final moves: BigInteger and BigDecimal operations
2015-12-14 03:49:58 +03:00
Ilya Gorbunov
0ab33ab075
Final moves: map delegating accessors and timing utils, provide deprecated methods in the old place
2015-12-14 03:49:56 +03:00
Ilya Gorbunov
597f2c0a8c
Final moves: map delegating accessors and timing utils
2015-12-14 03:49:55 +03:00
Ilya Gorbunov
16fbdcf107
For migration: provide deprecated classes inheriting multifile facade classes moved out of kotlin package.
2015-12-14 03:49:53 +03:00
Ilya Gorbunov
ae3135c770
For migration: Make an option "Xmultifile-facades-open" for compiler to generate open multifile facade classes.
2015-12-14 03:49:51 +03:00
Ilya Gorbunov
594d981094
Provide deprecated AbstractIterator in the old package kotlin.support.
2015-12-14 03:49:49 +03:00
Ilya Gorbunov
91b920f18e
Move IndexedValue, IndexingIterable and IndexingIterator back to kotlin package
2015-12-14 03:49:48 +03:00
Ilya Gorbunov
871c5c66b4
Move code between packages (JS)
2015-12-14 03:49:46 +03:00
Ilya Gorbunov
dd2ae15531
Move code between packages.
2015-12-14 03:49:45 +03:00
Ilya Gorbunov
81e7826568
Move generated code between packages.
2015-12-14 03:49:43 +03:00
Alexander Udalov
477e25ae2f
Remove Intrinsic annotation from *arrayOf functions
2015-12-14 03:49:41 +03:00
Ilya Gorbunov
09191622e5
Fix testData: import became not required.
2015-12-14 01:07:51 +03:00
Ilya Gorbunov
42565129ee
Add packages kotlin.collections, kotlin.ranges, kotlin.sequences, and kotlin.text to default imports.
2015-12-14 01:07:49 +03:00
Alexander Udalov
65c5c99c68
Render decompiled annotations on enum entries
2015-12-13 17:49:44 +03:00
Alexander Udalov
6f347f351a
Load annotations on compiled Kotlin enum entries
...
#KT-10339 Fixed
2015-12-13 03:52:42 +03:00
Alexander Udalov
3e2eb8c1a0
Serialize/deserialize annotations on enum entries
...
#KT-10338 Fixed
2015-12-13 03:52:41 +03:00
Alexander Udalov
5e421b4024
Improve type parameter bound diagnostic location
...
If there's only one erroneous bound (vast majority of cases), report it on the
bound; otherwise (to avoid reporting it several times) report on the type
parameter declaration
2015-12-13 02:06:07 +03:00
Michael Bogdanov
39d9b35e27
Force resolve companion in light class generation
2015-12-12 11:41:37 +03:00
Michael Bogdanov
a849f3f5d4
Fixed filtering error
2015-12-12 11:41:37 +03:00
Michael Bogdanov
4ad113d836
Removed redundant check
2015-12-12 11:41:36 +03:00
Michael Bogdanov
7c7786f7d0
Generate private methods in TraitImpl as private, don't generate delegation to private trait methods
2015-12-12 11:41:36 +03:00