Commit Graph

20792 Commits

Author SHA1 Message Date
Pavel V. Talanov 3cfcef9da4 Render warning on 'class object' as deprecated 2015-03-10 18:21:32 +03:00
Pavel V. Talanov 581e163031 Report warning on 'class object' 2015-03-10 18:21:32 +03:00
Pavel V. Talanov 8fef31ee5b Replace 'class object' with 'default object' in builtins 2015-03-10 18:07:56 +03:00
Pavel V. Talanov 9a844d2feb Minor: replace some missed mentions of 'class object' with 'default object' 2015-03-10 18:07:54 +03:00
Pavel V. Talanov 9ecf95532e Replace 'class object' with default object in project code 2015-03-10 18:07:46 +03:00
Alexander Udalov dc7bb32a3b Refactor runtime library configuration in IDE 2015-03-10 16:15:20 +03:00
Alexander Udalov dab18f7d4e Minor, fix typos: existed, deffer, shouldExists 2015-03-10 16:15:17 +03:00
Alexander Udalov a01ffd70e7 Fix NoInternalVisibilityInStdLibTest in maven build
Create disposable in setUp(), destroy in tearDown()
2015-03-10 16:13:50 +03:00
Alexander Udalov 611700c998 Fix "mvn clean" in libraries/ project
JS examples were failing on "clean" because no phases were set for compilation
and thus they required kotlin-maven-plugin on every phase which is obviously
not built yet when we're running "clean"
2015-03-10 16:13:45 +03:00
Natalia Ukhorskaya 3eb2182ef0 Evaluate expression: find local variable using callText from extract function instead of function parameter names 2015-03-10 15:27:38 +03:00
Natalia Ukhorskaya cdf081ddc3 Fix for exception: JetCodeFragment with context null
#KT-6876 Fixed
2015-03-10 15:27:37 +03:00
Natalia Ukhorskaya f6162dc726 JetCodeFragment: increment modification count after inserting import 2015-03-10 15:27:37 +03:00
Natalia Ukhorskaya c4f7bf6815 Add test for inserting imports in JetCodeFragment after completion 2015-03-10 15:27:36 +03:00
Zalim Bashorov f49e4ca3e9 JS backend: fixed accessing to native enum entries. 2015-03-10 14:30:45 +03:00
Ilya Ryzhenkov e00cdfc8e1 toSortedMap() without a comparator requires keys that are Comparable. 2015-03-10 11:21:41 +03:00
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