Pavel V. Talanov
c19b8353d0
Minor, tests: remove some static accesses to builtIns
2015-10-01 17:53:20 +03:00
Pavel V. Talanov
a3fbf2fabc
Test that primitives, arrays, enums are implicitly serializable on jvm and not js
...
Specifically test calling java function that accepts java.io.Serializable
2015-10-01 17:53:19 +03:00
Pavel V. Talanov
7b49baf8c3
Test data adjustment: JetDiagnosticsTest
2015-10-01 17:53:19 +03:00
Pavel V. Talanov
bc8449a70c
Test data adjustment: Resolved calls and constraint system test
2015-10-01 17:53:18 +03:00
Pavel V. Talanov
e263c85142
JetTypeChecker: adjust test data
...
after making some of builtin types serializable
2015-10-01 17:53:17 +03:00
Pavel V. Talanov
1f36b7fbea
Extract FunctionPlaceholders from ErrorUtils to a separate component since they are not really an error
2015-10-01 17:53:16 +03:00
Pavel V. Talanov
d5624708fb
Add "java.io.Serializable" as supertype to java builtIns mapped to classes that are serializable on jvm
...
Implementation is hacky, relies on adding fictional supertype to corresponding classes
2015-10-01 17:53:16 +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
0ae842a05d
'descriptors' module exports 'deserialization', not the other way around
...
Also remove some of redundantly specified dependencies
2015-10-01 17:53:13 +03:00
Pavel V. Talanov
22e3e192ee
ModuleDescriptorImpl: remove KBI as default parameter
2015-10-01 17:53:12 +03:00
Pavel V. Talanov
767950fea3
Tests: Replace some usages of KotlinBuiltIns.getInstance()
...
In cases where platform is either unimportant or predefined in test code
2015-10-01 17:53:11 +03:00
Pavel V. Talanov
b79881848f
jvm-backend, cli: Replace some usages of KotlinBuiltIns.getInstance() by JvmPlatform.builtIns
2015-10-01 17:53:10 +03:00
Pavel V. Talanov
0a2bd257a5
frontend.java: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:08 +03:00
Pavel V. Talanov
315809a34b
Add builtIns property to TargetPlatform
...
Add utility to get TargetPlatform by JetElement
2015-10-01 17:53:03 +03:00
Pavel V. Talanov
0610dd36fa
ConstantExpressionEvaluator: avoid calling KotlinBuiltIns.getInstance()
2015-10-01 17:52:03 +03:00
Pavel V. Talanov
b9da08d11c
TypeIntersector: refactor it to being a static utility
...
Deal with intersecting empty set of types on the call site
2015-10-01 17:52:03 +03:00
Pavel V. Talanov
b85fe40275
ScriptReceiver: Remove usage of KotlinBuiltIns.getInstance()
2015-10-01 17:52:02 +03:00
Pavel V. Talanov
e35e6f7f52
JetTypeCodeFragment: Remove usage of KotlinBuiltIns.getInstance()
2015-10-01 17:52:01 +03:00
Pavel V. Talanov
b5712033a8
Make DataFlowValue.NULL not static
2015-10-01 17:52:01 +03:00
Pavel V. Talanov
a72b050d91
Pass builtIns into CompileTimeConstantChecker constructor
2015-10-01 17:52:00 +03:00
Pavel V. Talanov
9f858cbc56
ControlStructureTypingUtils: use real module descriptor instead of error module
2015-10-01 17:51:59 +03:00
Pavel V. Talanov
6780a1fe90
Make DynamicCallableDescriptors non static and remove static object DynamicType
2015-10-01 17:51:58 +03:00
Pavel V. Talanov
424d71e964
Remove reference to KotlinBuiltIns from CompanionObjectMapping
...
Make it a class
2015-10-01 17:51:57 +03:00
Pavel V. Talanov
d2a4235dd8
Pass KotlinBuiltIns into getExpectedTypePredicate utility
2015-10-01 17:51:56 +03:00
Pavel V. Talanov
22c250778e
Introduce TypeConstructor#getBuiltIns
2015-10-01 17:51:55 +03:00
Alexey Sedunov
2f251b9216
Rename: Drop 'operator' keyword if new name doesn't correspond to any convention
...
#KT-9357 Fixed
2015-10-01 17:35:26 +03:00
Alexey Sedunov
b805645489
Change Signature: Support receiver <-> parameter conversion for function expressions
...
#KT-9309 Fixed
2015-10-01 17:35:20 +03:00
Zalim Bashorov
073b10072a
Minor: fix testdata
2015-10-01 14:57:26 +03:00
Zalim Bashorov
a36e4abf4d
Move visibility check for toplevel private declarations to Visibilities.PRIVATE and fix it.
2015-10-01 14:57:26 +03:00
Zalim Bashorov
94b110936e
Add the ability to get containing source file from SourceElement
2015-10-01 14:37:25 +03:00
Michael Nedzelsky
c7e5eb9ab8
fix AbstractBytecodeTextTest: read expected file with UTF-8 encoding
2015-10-01 12:16:48 +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
Michael Nedzelsky
6466facffa
force UTF-8 encoding in CodegenTestCase.loadFileByFullPath
2015-09-30 22:35:38 +03:00
Mikhail Glukhikh
361448de8b
Rename: private / final property in trait --> in interface
2015-09-30 19:38:19 +03:00
Mikhail Glukhikh
7256a546df
Visibility modifiers are no longer allowed on local classes
2015-09-30 19:38:16 +03:00
Mikhail Glukhikh
6f7d9459fa
Completion for sealed class inheritors and a pair of tests
2015-09-30 19:38:14 +03:00
Mikhail Glukhikh
7a99b3872b
Forbid private functions with no body and private properties in traits which are abstract by default
2015-09-30 19:38:02 +03:00
Mikhail Glukhikh
930402d910
Incorrect 'inner' usage is diagnosed by parent, not by target
2015-09-30 17:54:47 +03:00
Dmitry Petrov
91214c50a6
Unify containing classes mapping for deserialized callable members.
2015-09-30 09:56:06 +03:00
Dmitry Petrov
c17326841a
Inlining package members should use facade class for SMAP.
2015-09-30 09:56:05 +03:00
Dmitry Petrov
9a41ee41d7
Migrate to new storage API.
...
Remove IncrementalPackageFragment::getMultifileFacade.
2015-09-30 09:56:05 +03:00
Dmitry Petrov
3dfe9951ef
Incremental compilation support for multifile classes.
2015-09-30 09:56:05 +03:00
Denis Zharkov
ea8ada4664
Fix accessor naming test: count only method declarations
2015-09-30 08:19:52 +03:00
Denis Zharkov
22d58239e3
Support DefaultImpls in light-classes and indices
...
#KT-4647 Fixed
2015-09-30 08:19:52 +03:00
Denis Zharkov
8b8fa40348
Drop tests with obsolete assumption
...
DefaultImpls classes are not visible in IDE no more because they are inner.
2015-09-30 08:19:52 +03:00
Denis Zharkov
fd0c92e307
Record inner class info for interface and DefaultImpls
2015-09-30 08:19:51 +03:00
Denis Zharkov
c1bed7efc7
Move generation of non-local interface DefaultImpls
...
`DefaultImpls` should be inner class of it's interface,
so for proper light classes building it should be built
before original interface has been done, i.e. `done` method called.
Everything is complicated with local interfaces, so they are just left untouched
2015-09-30 08:19:51 +03:00
Denis Zharkov
a101fffd9a
Change INTERFACE_IMPL_CLASS_NAME: $TImpl -> DefaultImpls
2015-09-30 08:19:51 +03:00
Denis Zharkov
cabf0df5d1
Minor. Rename mapTraitImpl -> mapDefaultImpls
2015-09-30 08:19:51 +03:00