Commit Graph

20777 Commits

Author SHA1 Message Date
Ilya Ryzhenkov bfeb21afb0 stdlib: stream() for Map #KT-6547 Fixed 2015-03-10 11:21:41 +03:00
Valery Kharitonov 8873be22d5 Implemented asList() method for arrays. #KT-1313 Fixed 2015-03-10 11:21:40 +03:00
Valery Kharitonov c8094e7587 Implemented indexOfFirst/Last(predicate). #KT-6577 Fixed 2015-03-10 11:21:40 +03:00
Valery Kharitonov 38a4f86db2 Implemented asIterable method for arrays. #KT-1313 Fixed 2015-03-10 11:21:39 +03:00
Laszlo Hornyak 3954215b50 Add support for + and - operators in immutable maps #KT-6594 Fixed 2015-03-10 11:21:38 +03:00
Ilya Ryzhenkov 1a67e35739 Add more tests to cover stdlib 2015-03-10 11:21:38 +03:00
Alexander Udalov 6fe483f0cf build.xml: use absolute paths, extract some constants 2015-03-07 02:32:59 +03:00
Alexander Udalov a8046020fb Rename kotlin.reflect.IllegalAccessException -> IllegalPropertyAccessException
The former name clashes with java.lang.IllegalAccessException and proved to be
inconvenient because it should always be qualified in the source.

Also use java.lang exception's message as kotlin.reflect exception's message
2015-03-07 02:32:15 +03:00
Alexander Udalov ed022f892b Drop JavaTypeParameter#getIndex 2015-03-07 02:32:14 +03:00
Alexander Udalov ca8831097f Resolve annotations on Java constructors
Also add tests on custom annotations on fields and methods
2015-03-07 02:32:14 +03:00
Alexander Udalov 17c21dcaa2 Test generator: allow to exclude certain test data directories 2015-03-07 02:32:14 +03:00
Alexander Udalov 0bd5264b5e Get rid of module reflection.stub.jvm
Generate K*Function as a supertype for a function reference instead of
K*FunctionImpl; this will allow one binary library to be used with or without
reflection
2015-03-07 02:31:26 +03:00
Alexander Udalov 9c5bcdc72a Prettify code in 'reflection.jvm'
Use stdlib instead of hand-written hacks, fix some warnings and unneeded !!
2015-03-07 02:31:00 +03:00
Alexander Udalov eced3003ad Introduce kotlin-reflect Maven artifact 2015-03-07 02:31:00 +03:00
Alexander Udalov 4f649f5a33 Minor, drop KotlinBuiltIns.nonPhysicalClasses
See b9d47ffe7a
2015-03-07 02:31:00 +03:00
Alexander Udalov 71a3f35b7e Rename LocalClassFinder -> DirectoryBasedClassFinder
It was never related to local classes
2015-03-07 02:30:28 +03:00
Alexander Udalov e136025ac5 Show "kotlin.Any" in decompiled text for local/anonymous types 2015-03-07 02:30:28 +03:00
Alexander Udalov 6287055475 J2K: convert array.length to array.size() 2015-03-07 02:29:13 +03:00
Valentin Kipyatkov 3e85b97e1a Completion after $ in string literal works correctly for classes and objects 2015-03-06 22:04:17 +03:00
Valentin Kipyatkov de7b4dc681 Surround with braces when completing backing field in string template 2015-03-06 22:04:17 +03:00
Valentin Kipyatkov 620fb8683b KT-6191 Support completion for backing field
#KT-6191 Fixed
2015-03-06 22:04:17 +03:00
Valentin Kipyatkov 86272621de More diagnostic 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov efa83000a2 Use of substringBefore/After 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov 2ef80d1b34 Completion after "this@" includes immediate this too
#KT-6836 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov ffff6226b0 KT-6608 Code completion does not work after $ in string literals
KT-5070 Add braces when complete function in string templates

 #KT-6608 Fixed
 #KT-5070 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov c44519fa4e More correct and simple finding of top-level callables 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov 793be62a81 More clear naming 2015-03-06 22:04:16 +03:00
Valentin Kipyatkov 234555bb33 Fixed KT-6890 No autocomplete for receiver methods and properties in extension property
#KT-6890 Fixed
2015-03-06 22:04:16 +03:00
Valentin Kipyatkov c5d21e1f45 Fixed KT-6673 Completion: no properties from outside class inside anonymous object
#KT-6673 Fixed
2015-03-06 22:04:15 +03:00
Valentin Kipyatkov 5e66727ff6 Checked that KT-6623 has been fixed 2015-03-06 22:04:15 +03:00
Valentin Kipyatkov ffc55caadd Minor 2015-03-06 22:04:15 +03:00
Valentin Kipyatkov 114bfbb2ad Fixed bug with wrong completion in class declaration 2015-03-06 22:04:15 +03:00
Andrey Breslav dcfa77c77d completeAnalysisNeeded() removed 2015-03-06 21:59:05 +03:00
Andrey Breslav bbb59773aa filesToAnalyzeCompletely removed 2015-03-06 21:59:05 +03:00
Andrey Breslav 456bbb6b96 Logically missing method added 2015-03-06 21:59:05 +03:00
Andrey Breslav 1c8af2d2fe Rename. LocalClassDescriptorManager -> LocalClassDescriptorHolder 2015-03-06 21:59:04 +03:00
Andrey Breslav 253d76669d resolveMutableClassDescriptor() removed 2015-03-06 21:59:04 +03:00
Andrey Breslav b567356702 Unused code removed from TopDownAnalysisContext 2015-03-06 21:59:04 +03:00
Andrey Breslav 32a3b58f14 ScriptDescriptorImpl and related non-lazy code removed 2015-03-06 21:59:04 +03:00
Andrey Breslav 7d1a826778 Rename. LazinessToken -> TypeLazinessToken 2015-03-06 21:59:04 +03:00
Andrey Breslav 30a84a2bd8 Uneeded usages of LazinessToken.isLazy() are removed 2015-03-06 21:59:03 +03:00
Andrey Breslav d310b0c99d Got rid of the LAZY flag 2015-03-06 21:59:03 +03:00
Andrey Breslav d466533ef2 Missing test added 2015-03-06 21:59:03 +03:00
Alexey Tsvetkov d06b2f4d0a JS: do not inline safe calls
A temporary hack until js inliner learns how to decompose expressions
2015-03-06 21:36:19 +03:00
Alexey Tsvetkov 843bc7956e JS: made JsPropertyInitializer fields not nullable 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov 53dfd77d31 JS: added inline stdlib cases 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov 38efec6886 JS: inline stdlib functions 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov 47064ce03c JS: grouped all scope/name operations in JsParser 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov bb634c6365 JS: restore inline status for calls to functional arguments of inline function 2015-03-06 21:36:19 +03:00
Alexey Tsvetkov 889d39a43e JS: restore names that can be changed by minifier
For example, Kotlin object can be renamed in stdlib,
so when we inline stdlib function in context of other module
renamed Kotlin object reference does not exitst.
2015-03-06 21:36:19 +03:00