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
Zalim Bashorov
ca4ce48801
JS backend: fix compiler crash on for with empty body
2015-06-03 23:09:15 +03:00
Zalim Bashorov
f90df7aa35
JS backend: fix compiler crash on empty then if block
...
#EA-68941 fixed
2015-06-03 23:09:15 +03:00
Zalim Bashorov
779a0373c7
JS backend: generate better code for secondary constructor calls -- don't generate undefined when it possible
2015-06-03 23:09:15 +03:00
Zalim Bashorov
79b5652ce6
JS backend: added test which check that name of classes not mangled when we have a function with the same name in non-public API
2015-06-03 23:09:15 +03:00
Zalim Bashorov
33fb3fb6e4
JS backend: support secondary constructors in native classes
2015-06-03 23:09:15 +03:00
Valentin Kipyatkov
8fd6a64be9
Refactored methods for val/var in PSI
2015-06-01 18:23:34 +03:00
Zalim Bashorov
f1d37572c8
JS backend: fix missed variable declarations for tmps in class primary/default constructor
...
#KT-7864 Fixed
2015-05-29 20:09:46 +03:00
Valentin Kipyatkov
eef0e8e447
JetBlockExpression.getStatements() returns List<JetExpression> instead of List<JetElement>
2015-05-29 14:22:56 +03:00
Zalim Bashorov
68eca8bc00
JS backend: add the support secondary constructors
2015-05-28 11:06:06 +03:00
Zalim Bashorov
016534b487
Minor: change package in astUtils.kt: ast -> jsAstUtils
2015-05-28 11:06:05 +03:00
Zalim Bashorov
e11d61d68a
JS backend: move all class creation logic from FileDeclaration to ClassTranslator
2015-05-28 11:06:04 +03:00
Zalim Bashorov
6e7be78b98
Minor improvments in ClassTranslator after conversion
2015-05-28 11:06:03 +03:00
Zalim Bashorov
c589026a47
Convert ClassTranslator.java to Kotlin
2015-05-28 11:06:02 +03:00
Zalim Bashorov
b61c1376a2
ClassTranslator.java -> ClassTranslator.kt
2015-05-28 11:06:02 +03:00
Zalim Bashorov
ef5ee5100a
JS backend: make CallTranslator more comfortable to use from java
2015-05-28 10:38:30 +03:00
Zalim Bashorov
3fe363e72b
Minor: split test to access to companion and to nested object
2015-05-28 10:25:11 +03:00
Zalim Bashorov
dc1b91eacd
JS: prepare tests for secondary constructors
2015-05-28 10:24:48 +03:00
Zalim Bashorov
72c2648fc8
JS frontend: remove diagnostics about the secondary constructors are not supported
2015-05-28 10:24:47 +03:00
Ilya Gorbunov
ae60f7a32f
Prettify kdocs and exception messages in the generated code.
2015-05-27 22:16:15 +03:00