Mikhail Glukhikh
5126f01452
kotlin.annotation package with annotations "target" and "annotation" and enums AnnotationTarget and AnnotationRetention introduced.
...
Targets for existing built-in annotations.
Access to annotation package from packageFragmentProvider.
Documentation for all classes in the package.
2015-07-14 16:24:45 +03:00
Zalim Bashorov
f7ccb3819e
JS: don't pollute object with $metadata$
...
#KT-8126 Fixed
2015-07-13 15:52:57 +03:00
Alexander Udalov
30794060a9
Simplify property hierarchy in reflection
...
Leave only 3*2 = 6 classes: KProperty0, KProperty1, KProperty2 and their
mutable analogs, depending on the number of receivers a property takes
2015-07-10 20:10:09 +03:00
Alexander Udalov
c3b97e0668
Simplify function hierarchy in reflection
...
Get rid of all classes except kotlin.reflect.KFunction, which will be used to
represent all kinds of simple functions.
Lots of changes to test data are related to the fact that KFunction is not an
extension function (as opposed to KMemberFunction and KExtensionFunction who
were) and so a member or an extension function reference now requires all
arguments be passed to it in the parentheses, including receivers. This is
probably temporary until we support calling any function both as a free
function and as an extension. In JS, functions and extension functions are not
interchangeable, so tests on this behavior are removed until this is supported
2015-07-10 20:10:08 +03:00
Svetlana Isakova
a714de783f
Converted CallResolverUtil to kotlin
2015-07-10 15:05:08 +03:00
Denis Zharkov
5c60a1bdb8
Make project compilable after PurelyImplements annotation introduction
2015-07-09 16:36:48 +03:00
Denis Zharkov
0a19fb7df2
Make project compilable after types enhancement
2015-07-09 16:36:46 +03:00
Yan Zhulanow
9c8ea54946
Use KotlinJvmCheckerProvider to check @publicField
2015-07-07 16:35:24 +03:00
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