Andrey Breslav
db635c0e44
is<TYPE>() made static in KotlinBuiltIns
2014-12-03 15:39:10 +03:00
Andrey Breslav
7a41e37655
isNothing() made static
2014-12-03 15:39:10 +03:00
Andrey Breslav
ea4f0ab214
Methods in KotlinBuiltIns made static where already possible
2014-12-03 15:39:09 +03:00
Stanislav Erokhin
99ec8952e1
Temporary hack for KT-6320
2014-12-02 18:09:01 +03:00
Stanislav Erokhin
b55114055e
Change usage "v == Visibilities.PRIVATE" to Visibilities.isPrivate(v)
2014-12-02 14:30:17 +03:00
Stanislav Erokhin
b3f3b3946e
Add receiver to Visibility#isVisible
2014-12-02 14:30:16 +03:00
Stanislav Erokhin
d997a6cb35
Fix protected visibility in class object.
2014-12-02 14:30:16 +03:00
Stanislav Erokhin
c2d99a40cd
Create VarianceChecker
2014-12-02 14:06:07 +03:00
Stanislav Erokhin
a8be80328f
Convert Variance.java -> .kt
2014-12-02 13:48:44 +03:00
Stanislav Erokhin
a5c0dda10f
Add TypeBinding.
2014-12-02 13:48:44 +03:00
Denis Zharkov
8b80daa2a1
Replaced filterIsInstance with class-literal argument with simplified version
2014-12-01 22:28:34 +03:00
Andrey Breslav
d2e6767c07
Delegation and nullability turned into capabilities
...
Otherwise they did not sustain substitutions
2014-12-01 20:43:39 +03:00
Andrey Breslav
d5932e1a33
Nullability of dynamic types
2014-12-01 20:43:38 +03:00
Andrey Breslav
e0bd881c1e
Rendering for dynamic types
2014-12-01 20:43:38 +03:00
Andrey Breslav
65794183e7
Specificity supported for dynamic types
2014-12-01 20:43:38 +03:00
Andrey Breslav
20513abe04
Allow dynamic types only in some contexts
2014-12-01 20:43:38 +03:00
Zalim Bashorov
7073f20484
JsDescriptorUtils#(isExtension, isOverride, getContainingClass) -> DescriptorUtils#(*)
2014-12-01 15:27:35 +03:00
Alexander Udalov
d1425c14ba
Test built-ins serializer, untie built-ins from class loader resources
2014-11-28 15:39:03 +03:00
Alexander Udalov
44b8f3045f
Introduce PackageFragmentProviderImpl
...
It works with a read-only collection of package fragments, passed to it in the
constructor
2014-11-28 15:35:59 +03:00
Alexander Udalov
fd2ddff750
Minor, simplify serialization of enum entries
...
Enum entries are never reordered during sort (see MemberComparator)
2014-11-28 15:35:59 +03:00
Pavel V. Talanov
0a4f93ddb0
Move check for special annotation to an abstract class
2014-11-27 21:17:21 +03:00
Pavel V. Talanov
0d6555cc63
Prettify code in BinaryClassAnnotationAndConstantLoaderImpl
2014-11-27 21:17:20 +03:00
Pavel V. Talanov
bd575c39dd
Fix calling toString() on ProtoContainer
2014-11-27 21:17:20 +03:00
Pavel V. Talanov
f0a9c4f683
Extract non-descriptor specific abstract ancestor for BinaryClassAnnotationAndConstantLoader
2014-11-27 21:17:19 +03:00
Pavel V. Talanov
39e1dfbcc0
Merge AnnotationLoader and ConstantLoader into single interface
...
Merge all implementation classes into single BinaryClassAnnotationAndConstantLoader
2014-11-27 21:17:18 +03:00
Pavel V. Talanov
1652157ec7
Prettify AnnotationDescriptorLoader, ConstantDescriptorLoader and DescriptorLoadersStorage after conversion
2014-11-27 21:17:18 +03:00
Pavel V. Talanov
09ff1128ea
Convert AnnotationDescriptorLoader, ConstantDescriptorLoader and DescriptorLoadersStorage
2014-11-27 21:17:17 +03:00
Pavel V. Talanov
81ddd16df2
Rename AnnotationDescriptorLoader, ConstantDescriptorLoader and DescriptorLoadersStorage before conversion
2014-11-27 21:17:17 +03:00
Pavel V. Talanov
e4d3a65124
Make AnnotationLoader and ConstantLoader accept descriptor-independent data
...
Rewrite BaseDescriptorLoader to operate on data derived from proto
Intdoduce ProtoContainer to replace containing descriptor as input data
2014-11-27 21:17:16 +03:00
Pavel V. Talanov
c73ac97ecf
Minor: simplify code
2014-11-27 21:17:15 +03:00
Pavel V. Talanov
d2fc7c7fd3
Inline BaseDescriptorLoader#getPackagePartClassName utilities
2014-11-27 21:17:15 +03:00
Pavel V. Talanov
38725687fc
Prettify code in BaseDescriptorLoader after conversion
2014-11-27 21:17:14 +03:00
Pavel V. Talanov
bd540d5f80
Convert BaseDescriptorLoader to kotlin
2014-11-27 21:17:14 +03:00
Pavel V. Talanov
5aebc2fecd
Rename BaseDescriptorLoader before conversion
2014-11-27 21:17:13 +03:00
Alexander Udalov
8dae1b62dd
Add CharSequence.subSequence
...
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.
#KT-5956 Fixed
2014-11-27 20:38:19 +03:00
Alexander Udalov
4d95bcfc7e
Rename CharSequence.get to charAt
...
This is done for JVM interoperability. There's still a member function
String.get() and an extension function "get" on CharSequence
#KT-1730 Fixed
#KT-5389 Fixed
2014-11-27 20:38:18 +03:00
Alexander Udalov
a7b88e9485
Make CharSequence.length a function instead of property
...
And String.length as well.
This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.
A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)
#KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Denis Zharkov
3b2d0b88f3
Supported nested reified parameter declarations
...
Also switched to using type names as identifiers instead of their
indices
2014-11-27 15:15:04 +04:00
Svetlana Isakova
724f2e6e7b
KT-6081 Chained generic method calls: wrong type inference
...
#KT-6081 Fixed
2014-11-27 02:28:10 +03:00
Alexander Udalov
8cb1c7f0e6
Pass NameResolver to loadClassAnnotations()
...
It's not used at the moment, but will be in the upcoming implementation of
annotation loader (for JS, built-ins and type annotations)
2014-11-26 17:27:08 +03:00
Alexander Udalov
e0c842b3d8
Convert BuiltInsSerializationUtil to Kotlin
2014-11-25 23:17:01 +03:00
Alexander Udalov
4e735878cf
Minor, add "storageManager" property to context for convenience
2014-11-25 23:16:28 +03:00
Alexander Udalov
c35ddc3616
Minor, make ownTypeParameters a property in TypeDeserializer
2014-11-25 23:16:28 +03:00
Alexander Udalov
3a066dfd07
Rename "context" -> "c" in deserialization for brevity
2014-11-25 23:16:27 +03:00
Alexander Udalov
1c04a6052f
Get rid of unnecessary list in Interner
2014-11-25 23:16:27 +03:00
Alexander Udalov
1f68c94ce6
Fix several bugs in serialization of inner generic classes
...
- Interner was working incorrectly with parents
- nested classes were serialized in codegen out of any context
#KT-5660 Fixed
2014-11-25 23:16:26 +03:00
Alexander Udalov
36c65e4264
Minor, drop strange method from SerializerExtension
2014-11-25 23:16:26 +03:00
Alexander Udalov
b56076bd6a
Merge LazyJavaResolverContext and LazyJavaResolverContextWithTypes
2014-11-25 23:16:26 +03:00
Alexander Udalov
60662e5831
Fix double laziness of annotations introduced in 149a90d
2014-11-25 23:16:21 +03:00
Alexander Udalov
75851d44cc
Minor, inline method from LazyJavaPackageFragmentProvider
2014-11-25 23:15:50 +03:00