Commit Graph

1939 Commits

Author SHA1 Message Date
Ilya Gorbunov 80074c71fa Minor: Correct typo in 'intrinsic' 2015-07-04 04:47:12 +03:00
Ilya Gorbunov 1605027b19 Change return type of Char plus Int and Char minus Int binary operations.
JS: Remove unnecessary intrinsic binary operation patterns, adjust intrinsics for binary operations with char.
2015-07-04 04:47:00 +03:00
Ilya Gorbunov 39b27751df Drop deprecated char operations: correct test data. 2015-07-04 04:46:23 +03:00
Alexander Udalov c8439ae6fc Minor, rename val EXTENSION_REGISTRY -> extensionRegistry 2015-07-03 15:32:16 +03:00
Alexander Udalov 110d6fa7f1 Don't load irrelevant classes by accident, if resource happens to exist
Check with the containing class or package first, don't load the class if the
container doesn't know about it. This also makes the workaround for
case-insensitive file systems unnecessary
2015-07-03 15:31:48 +03:00
Pavel V. Talanov 15a4782a0c Move CompilationCanceledStatus and related utils to "util" module
It should not be in "frontend" since "jps bare plugin" artifact does not include "frontend" module
2015-07-01 21:21:35 +03:00
Pavel V. Talanov b173f96505 Refactor: Remove ScopeProvider, introduce FileScopeProviderImpl
Rename NoFileScopeProvider -> FileScopeProvider.ThrowException, ScopeProvider.AdditionalScopeProvider -> FileScopeProvider.AdditionalScopes
2015-06-30 16:12:23 +03:00
Nikolay Krasko 8bea21a847 Introduce BodyResolveCache for storing resolve function body task in IDE 2015-06-30 13:54:42 +03:00
Ilya Gorbunov 0e896ea1bb Drop streams and iterators: correct test data. 2015-06-29 17:06:49 +03:00
Ilya Gorbunov 6d4e48ab9a Compiler&plugin deprecations cleanup: string operations. 2015-06-29 17:06:43 +03:00
Ilya Gorbunov 86f4a1b6e4 Compiler&plugin deprecations cleanup: replace streams with sequences. 2015-06-29 17:06:40 +03:00
Ilya Gorbunov 5779b89ff0 Deprecations cleanup: sequence -> asSequence 2015-06-29 17:06:33 +03:00
Ilya Gorbunov 2c31a1a345 Compiler&plugin deprecations cleanup: *array -> *arrayOf, copyToArray -> toTypedArray. 2015-06-29 17:06:12 +03:00
Michael Nedzelsky c462d23a0e add support for cancel compilation from IDE
#KT-8158 Fixed
2015-06-29 16:41:16 +03:00
Pavel V. Talanov 65c6adfaa4 Drop "injector-generator" module, tests and existing generated injectors
Move GeneratorsFileUtil to "generators" module
Drop "Generate Injectors" run configuration
2015-06-26 15:21:43 +03:00
Pavel V. Talanov df529f1a4b Convert usages of existing generated injectors to dynamic injectors
Rewrite RuntimeModuleData to use hand-written code as we do not pack container module into runtime
This change introduces some overhead (up to 10% for the tests I ran) in some scenarios in IDE, that should be addressed later
2015-06-26 15:21:41 +03:00
Ilya Gorbunov d20d8e2106 2nd stage of replaceFirst semantics change: remove deprecated String.replaceFirst(String), rename replaceFirstLiteral to replaceFirst. 2015-06-24 21:48:09 +03:00
Ilya Gorbunov 249106647c 2nd stage of split semantics change: remove deprecated String.split(String), rename splitBy back to split. Provide replacement for splitBy and splitWithRegex (JS). 2015-06-24 21:48:07 +03:00
Ilya Gorbunov d04e94c826 Use NoSuchElementException instead of KeyMissingException. Deprecate KeyMissingException. 2015-06-24 21:39:40 +03:00
Sergey Mashkov ab5d8d12ea IDL2K declarations order stability 2015-06-23 17:21:13 +03:00
Pavel V. Talanov 37bcd455b5 Make ModuleDescriptor#getPackage() return not null lazy object with lazy scope
Refactor: no need to create package view in order to obtain its subpackages
LazyPackageViewDescriptorImpl to replace PackageViewDescriptorImpl
This allows to avoid computations when package views are requested but their contents not necessarily queried
For example: DescriptorResolver.resolvePackageHeader()
2015-06-23 15:19:06 +03:00
Pavel V. Talanov 1cf38e4799 Convert PackageViewDescriptor to Kotlin 2015-06-23 15:18:57 +03:00
Sergey Mashkov 0e518e46bb JS and IDL2K: make dictionary builder functions public 2015-06-22 12:57:23 +03:00
Ilya Gorbunov 346ea28337 lazyOf to create already initialized lazy value. 2015-06-19 23:08:17 +03:00
Ilya Gorbunov 536e669023 Provide Lazy<T> in kotlin package — an interface that represents lazily computed value. Read-only properties can be delegated to lazy with the extension getter. Delegates.lazy and blockingLazy are deprecated. 2015-06-19 23:08:09 +03:00
Alexander Udalov 1a3209e1dc Drop traits with required classes
#KT-4771 Rejected
2015-06-17 16:23:58 +03:00
Sergey Mashkov 342f35fb65 IDL2K better dictionary support: generate interfaces with builder function
suppress inline warning, replace Long with Int
2015-06-17 15:26:06 +03:00
Sergey Mashkov 8238883ac4 IDL2K better dictionary support: generate interfaces with builder function 2015-06-17 15:26:06 +03:00
Sergey Mashkov c4d53e1e16 IDL2K introduce required parameters list to avoid possible ambiguous calls 2015-06-17 15:26:06 +03:00
Sergey Mashkov 2cc708c5a9 IDL2K restrict readonly attributes to vals 2015-06-17 15:26:05 +03:00
Sergey Mashkov c0c0f6152a IDL2K avoid unnecessary super() calls in secondary constructors 2015-06-17 15:26:05 +03:00
Sergey Mashkov 1a5e6634e2 JS generate new stubs with latest IDL2K 2015-06-17 15:26:04 +03:00
Sergey Mashkov 5000fe8133 IDL2K Multiple constructors (via secondary constructors when needed) 2015-06-17 15:26:03 +03:00
Zalim Bashorov 289efb8984 JS backend: don't fail when invoke call got extension receiver implicitly
#EA-67456 Fixed
2015-06-17 11:17:08 +03:00
Zalim Bashorov fe7ee3fb66 JS backend tests: replace run with myRun in closure tests 2015-06-17 11:17:08 +03:00
Zalim Bashorov d63dbf9a3e Minor in JS backend: don't fail when name is null
#EA-66032 Obsolete
2015-06-17 11:17:08 +03:00
Zalim Bashorov 65adc3ac02 JS backend: don't use octal numbers when render non-latin symbols, because of it prohibited in strict mode
#KT-7921 Fixed
2015-06-17 11:17:08 +03:00
Sergey Mashkov 4949624a2a Revert IDL2K Multiple constructors (via secondary constructors when needed) 2015-06-15 20:17:23 +03:00
Sergey Mashkov 6d9413f02e IDL2K Multiple constructors (via secondary constructors when needed) 2015-06-15 20:15:36 +03:00
Pavel V. Talanov 705f35450f Refactor setting dependencies for ModuleDescriptors 2015-06-13 20:36:47 +03:00
Denis Zharkov eb7114bd53 Add 'constructor' keyword in whole project where needed 2015-06-12 09:55:15 +03:00
Denis Zharkov 200dee2761 Replace deprecated annotations in whole project 2015-06-12 09:23:32 +03:00
Denis Zharkov c9f79c2d05 Adjust testData: get rid of obsolete annotations 2015-06-12 09:23:31 +03:00
Michael Nedzelsky 999c83240c JS: error message (not exception) for incompatible abi version during compilation 2015-06-10 05:37:57 +03:00
Ilya Gorbunov 705c9089f0 Provide replacement for methods deprecated in favor of SAM-constructors.
Provide replacement for isNotEmpty on nullable receiver.
JS: Provide SAM-like constructor for Runnable.
2015-06-04 16:32:19 +03:00
Zalim Bashorov 9d32f5e8ed Minor in JS backend tests: use checkFooBoxIsOk instead of fooBoxIsValue 2015-06-03 23:09:17 +03:00
Zalim Bashorov 92457543bc JS backend: fix equality check for nullable types
* Generate simple check when compare with `null` literal.
* Use Kotlin.equals if type of receiver or argument is nullable.
* Don't call equals method if any of receiver or argument is null (at runtime, not only literal). For more information see KT-4356.

 #KT-7530 fixed
 #KT-7916 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov 6aaccae6a9 JS backend: compare enum entries strictly
#KT-7840 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov 4f0a858e93 JS backend: fix tests after move testTrue and testFalse to common place 2015-06-03 23:09:16 +03:00
Zalim Bashorov 430a3c121d Minor in JS backend: move testFalse and testTrue to common place 2015-06-03 23:09:16 +03:00