Jake Wharton
b22f051edb
Add support for nullability annotations in androidx package.
2018-03-15 10:34:33 +03:00
Toshiaki Kameyama
a3b35cbfe0
Reformat: ConvertToStringTemplateIntention
2018-03-15 10:32:07 +03:00
Toshiaki Kameyama
66906e2c80
Process '$' correctly in "Convert concatenation to template"
...
So #KT-12226 Fixed
2018-03-15 10:29:58 +03:00
Alexey Belkov
3b2bbee595
Standardize and improve descriptions of intentions/inspections
2018-03-15 09:56:47 +03:00
Nikolay Krasko
bc7ccbc39b
Fix stub mismatch for top level declaration with JvmPackageName (KT-21831)
...
ClassId stores jvm name and it differs from kotlin name in that case.
#KT-21831 Fixed
2018-03-14 21:16:58 +03:00
Toshiaki Kameyama
c1f43558b9
Unwrap: function parameter (KT-14788)
...
#KT-14788 Fixed
2018-03-14 21:16:58 +03:00
Ilya Chernikov
6838873a93
Fix local build problem - task compileJava not found
...
The problem is happening because our plugin deletes the task from
common projects, which may lead to such errors. The proper fix is
planned in our gradle plugin.
2018-03-14 15:39:30 +01:00
Ilya Chernikov
755f05e669
Switch to gradle 4.6
2018-03-14 15:39:30 +01:00
Ilya Chernikov
07b82ff1cc
Fix noDefaultJar helper - remove the disabled jar from archives
...
before this fix switching to the gradle 4.6-rc1 caused the problem on
local publish task - kotlin-compiler.jar not found
2018-03-14 15:39:30 +01:00
Mikaël Peltier
d0ed0c4049
KT-14258 Optimize accesses to properties defined into companion
...
- Use direct access to property defined into companion object when
it is possible rather than always use an accessor to access the
property.
- Use direct access will speedup runtime performance.
- Avoid to generate useless accessors for companion properties.
Fix of https://youtrack.jetbrains.com/issue/KT-14258
2018-03-14 15:30:40 +01:00
Anton Bannykh
fd244be9ca
JS: add tests to make sure KT-22019 is fixed
2018-03-14 17:15:16 +03:00
Natalia Selezneva
a5ac8abc7c
Run Script Action should add script dependencies to classpath
2018-03-14 16:09:03 +03:00
Natalia Selezneva
7d76554966
Run script action in IDE should use kotlin compiler from plugin
...
^KT-22647 Fixed
2018-03-14 16:08:57 +03:00
Natalia Selezneva
2486be0f86
'Configure kotlin' should set 1.2-SNAPSHOT version in build.gradle for snapshot version of kotlin plugin
2018-03-14 16:08:33 +03:00
Mikhael Bogdanov
cdcb651c8e
Get rid of 'BRIDGE' flag on $default functions
2018-03-14 13:57:49 +01:00
Zalim Bashorov
ac5ef57876
Regenerate tests
2018-03-14 15:06:35 +03:00
Zalim Bashorov
055b900d8a
Add generating tests using "whitelist" of target backend; add new target backends: JS_IR and JVM_IR
2018-03-14 15:06:31 +03:00
Zalim Bashorov
82f41a1125
J2K TargetBackend
2018-03-14 15:06:31 +03:00
Zalim Bashorov
9970dd051f
Fix copyright's start year in generated tests
2018-03-14 15:04:58 +03:00
Zalim Bashorov
814be1810c
Don't write copyright to *.gradle.kts and *.gradle files
2018-03-14 15:04:57 +03:00
Zalim Bashorov
c0ce3f849d
Fix copyright's start year
2018-03-14 15:04:57 +03:00
Alexander Udalov
e21c73229c
Throw exceptions explicitly in protoTypeTableUtil
...
Previously, if both type and typeId messages were missing (for example,
ProtoBuf.Function.returnType/returnTypeId) because of some bug, the
behavior was unpredictable because a type with id 0 from the type table
would be returned, which could be a completely irrelevant type. This is
an incorrect situation and we should report a diagnostic instead.
Temporarily throw an exception instead, since this only affects how the
compiler works on bad metadata
2018-03-14 12:25:23 +01:00
Alexander Udalov
0a78fe8ae3
Move some serialization helpers to metadata/metadata.jvm
2018-03-14 12:25:22 +01:00
Alexander Udalov
779290be0c
J2K Interner: convert and prettify
2018-03-14 12:25:22 +01:00
Alexander Udalov
bda7514b43
J2K Interner: rename .java -> .kt
2018-03-14 12:25:21 +01:00
Alexander Udalov
acf357e9b5
Extract descriptor-related behavior in StringTable to separate interface
...
Descriptor-related code is only needed to be able to compute
"replacement" names for local classes, which are different in JVM and JS
2018-03-14 12:25:20 +01:00
Alexander Udalov
043f4c3d01
Increase patch number of metadata versions
...
After adding inline classes in 915455ebe9
2018-03-14 12:25:19 +01:00
Alexander Udalov
407de206a3
Minor corrections in proto schemas, mostly in comments
...
Also set up code style for the protobuf plugin
2018-03-14 12:25:19 +01:00
Alexander Udalov
9d8d4b837b
Minor, move JavaFlexibleTypeDeserializer.id to JvmProtoBufUtil
...
To be able to read platform types with metadata.jvm
2018-03-14 12:25:18 +01:00
Alexander Udalov
241673c6a1
Add forgotten SinceKotlin to Metadata.pn
...
kotlin.Metadata is internal, so it shouldn't have any visible effect
2018-03-14 12:25:17 +01:00
Alexander Udalov
3f3e05a9d2
Move essential metadata-related classes to 'metadata' and 'metadata.jvm'
2018-03-14 12:25:16 +01:00
Alexander Udalov
88dea9aa70
Move NameResolver to module 'metadata' and J2K
...
Also move NameResolverImpl to 'metadata' and JvmNameResolver to
'metadata.jvm'
2018-03-14 12:25:16 +01:00
Alexander Udalov
0ba42850f9
Drop ClassData and PackageData, rename ClassDataWithSource -> ClassData
...
Use pairs in JvmProtoBufUtil for simplicity
2018-03-14 12:25:15 +01:00
Alexander Udalov
5ed5ac8291
Minor, use stdlib instead of ifEmpty
2018-03-14 12:25:14 +01:00
Alexander Udalov
a5a69c5099
Remove dependency of ClassMapperLite on JavaToKotlinClassMap
...
There are two reasons for this. First, this class will be used in the
metadata reading library which should not have dependencies on lots of
compiler stuff JavaToKotlinClassMap depends on.
Second, it was easy to accidentally break the deserialization in old
compilers by adding another mapping to JavaToKotlinClassMap. This was
possible because ClassMapperLite is used to decide whether or not the
JVM signature is "trivial" and should be written to the metadata (at
JvmSerializerExtension.SignatureSerializer.requiresSignature). If the
signature is trivial but mentions a type added in JavaToKotlinClassMap
in the new compiler, the old compiler will not be able to load the
signature correctly. See the comment on ClassMapperLite for more
information
2018-03-14 12:25:14 +01:00
Alexander Udalov
070effc69d
Minor, drop unnecessary ClassDescriptor.classId implementation
2018-03-14 12:25:13 +01:00
Alexander Udalov
b07c6086cd
Remove dependency of NameResolverImpl on FqName
...
Remove AbstractJsProtoComparisonTest.getProtoData in favor of
(apparently copy-pasted) IncrementalJsCache.getProtoData
2018-03-14 12:25:12 +01:00
Alexander Udalov
4f81e572c7
Make NameResolver.getName extension instead of member
...
To get rid of dependency of NameResolver on Name
2018-03-14 12:25:11 +01:00
Alexander Udalov
e31f286444
Make NameResolver.getClassId extension instead of member
...
To get rid of dependency of NameResolver on ClassId
2018-03-14 12:25:11 +01:00
Alexander Udalov
27ad4f7d5d
Move ProtoBuf classes to package org.jetbrains.kotlin.metadata
2018-03-14 12:25:10 +01:00
Alexander Udalov
575a388b11
Move core protobuf schemas to 'metadata' and 'metadata.jvm'
2018-03-14 12:25:09 +01:00
Alexander Udalov
368af867b8
Add modules metadata and metadata.jvm
2018-03-14 12:25:08 +01:00
Alexander Udalov
54d6710923
Regenerate gradle/project-schema.json
2018-03-14 12:25:07 +01:00
Alexander Udalov
99964cd030
Move descriptor-related utilities from Flags to ProtoEnumFlags
2018-03-14 12:25:07 +01:00
Alexander Udalov
ec67a878a0
Minor, rename Deserialization -> ProtoEnumFlags
...
Also fix warnings and remove unneeded JvmStatic
2018-03-14 12:25:06 +01:00
Alexander Udalov
7e1b1db7cc
Minor, don't use BitEncoding where it's not necessary
2018-03-14 12:25:05 +01:00
Alexey Tsvetkov
ceb243c096
Don't pack kotlin-daemon-client and daemon-common into kotlin-compiler-runner jar
2018-03-14 13:29:32 +03:00
Alexey Tsvetkov
c736f229ce
Always depend on runtimeJar of kotlin-daemon-client
2018-03-14 13:29:32 +03:00
Sergey Igushkin
0039be6972
Fix binary incompatibility with Android Gradle plugin 3.2.0-alpha06
...
Remove a non-reflective usage of the ResourceSet class, which has been
moved to a different package between versions. Access it through
reflection instead. This is a workaround. We can introduce a proper
fix once we have a public API in the Android plugin.
The test case that could detect the compatibility issue is
`testAndroidExtensionsManyVariants` (it uses experimental Android
extensions), but we did not run it with 3.2.0-alpha6. This commit
adds a test class with the same tests for 3.2.0-alpha6.
Issue #KT-23192 Fixed
2018-03-14 04:11:35 +03:00
Alexey Tsvetkov
3a7a34cc4e
Add all necessary compile dependencies to 'pill:generate-all-tests'
...
Before this change running the pill:generate-all-tests:testClasses
task (which is run by Intellij on "Build" invocation) led to compile error
2018-03-13 21:26:28 +03:00