Alexander Udalov
4f21caecc4
Simplify AnnotationAndConstantLoader, use NameResolver from ProtoContainer
2015-10-03 00:59:32 +03:00
Alexander Udalov
e4090d3f30
Cleanup descriptors.proto, regenerate
...
- move enums and messages nested in Callable to top level, since they're likely
to be reused in other messages soon
- delete obsolete comments: some did not any value, some became obsolete with
custom options ("id in StringTable" -> name_id_in_table)
2015-10-02 20:30:55 +03:00
Pavel V. Talanov
76029ee9b2
Introduce JvmBuiltIns and DefaultBuiltIns, different instances of KotlinBuiltIns
...
Make KotlinBuiltIns an abstract class
JsPlatform has DefaultBuiltIns
2015-10-01 17:53:14 +03:00
Pavel V. Talanov
22e3e192ee
ModuleDescriptorImpl: remove KBI as default parameter
2015-10-01 17:53:12 +03:00
Pavel V. Talanov
537134613a
js.translator: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:09 +03:00
Pavel V. Talanov
643cb0a5d4
js.frontend: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:08 +03:00
Pavel V. Talanov
424d71e964
Remove reference to KotlinBuiltIns from CompanionObjectMapping
...
Make it a class
2015-10-01 17:51:57 +03:00
Alexander Udalov
34d14939f9
Fix build after change in property accessor names
2015-10-01 02:14:25 +03:00
Valentin Kipyatkov
5afa91d4ec
Restored back temporarily renamed properties
2015-09-30 22:50:27 +03:00
Valentin Kipyatkov
98da621ab3
Temporary rename of properties starting with "is" and used from java code (will revert back after changing accessor naming policy)
2015-09-29 18:32:23 +03:00
Alexander Udalov
3b9d90429b
Simplify local class name serialization, don't go through extension
...
Also fix it for the case of a class in a non-default package
2015-09-29 16:26:28 +03:00
Alexander Udalov
542bfab96f
Don't write unnecessary information to ValueParameter proto
...
Flags can have a default value and the index can be trivially computed almost
all the time
2015-09-29 16:26:28 +03:00
Alexander Udalov
da68c4d9ee
Extract interface out of StringTable
...
Rework SerializerExtension interface: don't pass StringTable to each method
every time, create it in each extension's constructor instead and expose to
DescriptorSerializer with an interface method
2015-09-29 16:26:24 +03:00
Zalim Bashorov
8cb87b3e49
private -> internal where it's necessary
2015-09-25 21:16:00 +03:00
Ilya Gorbunov
0c777b87ed
Add JvmMultifileClass to js as internal annotation.
2015-09-25 21:09:43 +03:00
Denis Zharkov
3f6cadf9b7
Change FUNCTION_EXPRESSION_WITH_NAME severity to ERROR
...
Also drop deprecation related parts and get rid of usages of this `feature` within testData
2015-09-25 08:29:26 +03:00
Denis Zharkov
73799e2c3c
Replace deprecated lambda syntax in testData
...
It's done with similar constructions where possible trying to preserve
intended behavior.
Some usages are removed because they test exactly the feature that
we are going to drop soon.
2015-09-25 08:29:25 +03:00
Stanislav Erokhin
cdcf9f30b7
Minor. Fix compilation.
2015-09-24 14:07:51 +03:00
Zalim Bashorov
967c8eae2e
Minor: fix testdata files which were accidentally reformatted
2015-09-23 18:18:08 +03:00
Denis Zharkov
098f5462eb
Drop inlineOptions and fix forgotten usages
2015-09-23 12:18:12 +03:00
Michael Nedzelsky
bcd85aa30d
changes some internal modifiers to public for elements which are used outside their modules
2015-09-23 07:49:17 +03:00
Alexander Udalov
93b5065cf5
Get rid of SerializationUtil, move methods to DescriptorSerializer
2015-09-22 18:22:55 +03:00
Zalim Bashorov
98867addc9
Regenerate tests for JS reserved words
2015-09-22 15:00:38 +02:00
Dmitry Jemerov
4ca434da54
remove support for 'trait' keyword
2015-09-22 15:00:24 +02:00
Mikhail Glukhikh
831df27cac
"field": refactoring, isBackingFieldReference, referencedProperty
2015-09-21 15:48:11 +03:00
Mikhail Glukhikh
a1e3471d92
"field": deprecated warnings introduced, compiler tests migrated to the new syntax
2015-09-21 15:48:00 +03:00
Mikhail Glukhikh
028e0ec59a
"field": JS translation
2015-09-21 15:47:57 +03:00
Ilya Gorbunov
439d1026bf
Fix deprecations in js and java tests.
2015-09-19 05:04:41 +03:00
Ilya Gorbunov
0e3e33e5c1
Fix deprecations in testData: js semantics.
2015-09-19 05:04:05 +03:00
Stanislav Erokhin
fb14979051
Created object java.util.Collections as workaround for js-stdlib.
2015-09-18 21:00:15 +03:00
Denis Zharkov
9dada595b6
Replace deprecated annotations with modifiers in testData
2015-09-18 10:14:41 +03:00
Denis Zharkov
53bccec50d
Capitalize copies of JVM annotations for js stdlib
2015-09-18 10:14:35 +03:00
Denis Zharkov
e401a98a2b
Replace native with @native in js testData
2015-09-18 10:14:34 +03:00
Denis Zharkov
9adde77c47
Replace inlineOption(ONLY_LOCAL_RETURN) with crossinline in testData
2015-09-18 10:14:33 +03:00
Denis Zharkov
05eaf37123
Get rid of deprecated annotations and modifiers in js-stdlib
2015-09-18 10:14:30 +03:00
Denis Zharkov
9c4564a5a6
Get rid of deprecated annotations and modifiers in project code
2015-09-18 09:34:27 +03:00
Ilya Gorbunov
909cbc6817
Eliminate deprecated language constructions from the generated code.
2015-09-17 02:41:01 +03:00
Alexander Udalov
90cef6553c
Delete all references to removed package 'kotlin.modules'
2015-09-15 15:55:19 +03:00
Alexander Udalov
949144e0c0
Report incomplete hierarchy error for deserialized types
...
#KT-5129 Fixed
Delete a JPS test that was specifically testing that we would not fail in this
situation; now there's a compilation error
2015-09-15 13:11:17 +03:00
Alexander Udalov
a946f787bc
Fix exception from data class codegen for light classes
...
EA-66827
2015-09-15 13:11:16 +03:00
Mikhail Glukhikh
b4399b8b8b
AnnotationTarget.CLASSIFIER and KotlinTarget.CLASSIFIER both dropped (second step)
2015-09-14 12:51:11 +03:00
Nikolay Krasko
3ad6631df3
Remove lazy value as all usages evaluate it right after creation
2015-09-12 15:16:11 +03:00
Zalim Bashorov
7036b36a94
Minor: replace some usages of (old) package facade with new package parts
2015-09-10 18:49:11 +03:00
Ilya Gorbunov
4f9e2c24d1
Exclude common file asserts.kt from tests using StdLib, as its methods conflict with kotlin.test.* methods.
2015-09-08 10:26:54 +03:00
Ilya Gorbunov
e61d202d71
Dropped test that tested nothing: there were no files to compile, except common asserts.kt
2015-09-08 10:26:39 +03:00
Ilya Gorbunov
ea896bd217
JsTestsAsserter implement Asserter.
2015-09-08 10:26:24 +03:00
Ilya Gorbunov
44f7b6d699
Unit testing API: better mapping on JUnit, proper formatting assertion details when message is not specified
...
#KT-8929 Fixed
Sensible default message for assertion methods.
#KT-8314 Fixed
Provide assertFailsWith also with KClass and reified type argument.
2015-09-08 10:26:07 +03:00
Ilya Gorbunov
e20c86c5dc
Add missing equals() to primitive-keyed JS map specialization.
2015-09-08 10:24:25 +03:00
Ilya Gorbunov
c82c914c5d
Before comparing types of data class objects in dataClass.equals ensure that the other comparand is an object too, otherwise it may fail on Rhino.
2015-09-08 10:24:13 +03:00
Michael Nedzelsky
f6892580f6
fix tests in org.jetbrains.kotlin.js.test.semantics
2015-09-08 02:06:19 +03:00