Alexander Udalov
6db5ad7310
IR: remove cast to IrStatement in IrDeclarationBase.transform
...
Default implementation of `IrStatement.transform` contained a cast to
`IrStatement`. Since almost all IR elements inherit from IrStatement,
this implementation was used in many subclasses. However, checkcast to
interface is slow and this place was indeed noticeable in the profiler
snapshot. Since not that many places really expected to get IrStatement
out of IrStatement.transform, introduce a new method
`transformStatement` that does this cast, and use it in all those
places. Meanwhile, most implementations will use the IrElement's
implementation of `transform` which merely invokes `accept` without
casts.
2020-08-14 21:55:37 +02:00
Alexander Udalov
fb8e39a621
IR: optimize transformation of declarations/statements lists in-place
...
Also, inherit IrDeclarationBase from IrElementBase to be able to use a
cast to IrElementBase, which is faster than a cast to IrElement or
IrDeclaration.
2020-08-14 21:55:36 +02:00
Alexander Udalov
4f0585950e
IR: inline some transformChildren calls in IrElementTransformer{,Void}
...
IrElementTransformer.visitDeclaration/visitExpression are very prominent
hotspots, and it seems that HotSpot doesn't optimize the inlined Kotlin
bytecode there well enough. Reduce the bytecode in these and similar
methods by inlining calls to also/apply/transformChildrenVoid.
2020-08-14 21:55:36 +02:00
Nikolay Krasko
3a883e1236
Replace bintray bootstrap with space bootstrap repo
2020-08-14 17:31:13 +03:00
Nikolay Krasko
f484ceec80
Use GPG agent for signing in PublishedKotlinModule (KTI-314)
2020-08-14 17:31:13 +03:00
Nikolay Krasko
bbf8b12c65
Sign with GnuPG agent (KTI-314)
2020-08-14 17:31:13 +03:00
Nikolay Krasko
635ffcd53b
Update maven signing for working with gpg 2 (KTI-314)
...
Update to maven-gpg-plugin 1.6 and add workaround for https://issues.apache.org/jira/browse/MGPG-59
2020-08-14 17:31:13 +03:00
Ilya Matveev
a121ec1e39
Update Kotlin/Native: 1.4.20-dev-16314
2020-08-14 09:41:47 +00:00
Roman Artemev
fa2c49a311
[Plugin API] Add extension point to contribute synthetic properties
...
- needs to fix KT_41006
2020-08-14 11:59:37 +03:00
Denis Zharkov
5ede37d6ab
Report warnings on safe call + nullable extension operator
...
^KT-41034 In Progress
2020-08-14 11:12:34 +03:00
Roman Golyshev
852d22470e
Revert "FIR Completion: Add idea-fir dependency to run completion tests"
...
This reverts commit 7d883f18
2020-08-13 23:12:34 +03:00
Toshiaki Kameyama
89cc5777ce
Put parameters on line: don't suggest if parameters has end-of-line comments
...
#KT-35214 Fixed
2020-08-13 19:53:46 +03:00
Toshiaki Kameyama
efa981db36
"Create class from usage": add visibility to primary constructor if needed
...
#KT-29844 Fixed
2020-08-13 19:51:01 +03:00
Toshiaki Kameyama
b1e8238ea2
"Convert reference to lambda" intention: handle extension function reference with extension function call
...
#KT-35558 Fixed
2020-08-13 19:48:07 +03:00
Toshiaki Kameyama
9ff7539ff0
"Merge 'if's" intention: do not remove nested comments
...
#KT-33258 Fixed
#KT-39552 Fixed
2020-08-13 19:43:39 +03:00
Toshiaki Kameyama
f6e70cfed8
Wrap with let: fix it works correctly for invoking function type
...
#KT-39182 Fixed
2020-08-13 19:30:34 +03:00
Ilya Goncharov
babdeacdaf
[Gradle, JS] Add resolution configuration method
...
^KT-41054 fixed
2020-08-13 18:04:44 +03:00
Ilya Goncharov
85f23d8c6e
[Gradle, JS] Fix test with new API
...
^KT-41054 fixed
2020-08-13 18:04:44 +03:00
Ilya Goncharov
5eda8e95bf
[Gradle, JS] Revert kotlinTargets
...
^KT-41054 fixed
2020-08-13 18:04:44 +03:00
Ilya Goncharov
855554ac38
[Gradle, JS] Move yarn resolutions from dependency constraints
...
^KT-41054 fixed
2020-08-13 18:04:43 +03:00
Ilya Goncharov
fecda8548b
[Gradle, JS] Override maven and ivy publishing aware context
...
^KT-41054 fixed
2020-08-13 18:04:43 +03:00
Ilya Goncharov
58284c8b08
[Gradle, JS] Add yarn resolution gradle integration test
...
^KT-41054 fixed
2020-08-13 18:04:43 +03:00
Ilya Goncharov
9df604cb3d
[Gradle, JS] Migrate on set for npm ranges
...
^KT-41054 fixed
2020-08-13 18:04:43 +03:00
Ilya Goncharov
1dd92f011c
[Gradle, JS] Compare range lists as sets
...
^KT-41054 fixed
2020-08-13 18:04:43 +03:00
Ilya Goncharov
50ccb522b9
[Gradle, JS] Add intersect tests
...
^KT-41054 fixed
2020-08-13 18:04:43 +03:00
Ilya Goncharov
bd01ac52af
[Gradle, JS] Add union test with fixed issue in union method
...
^KT-41054 fixed
2020-08-13 18:04:43 +03:00
Ilya Goncharov
7aaa1cf556
[Gradle, JS] Add invert test
...
^KT-41054 fixed
2020-08-13 18:04:42 +03:00
Ilya Goncharov
9b8a64ef7b
[Gradle, JS] Add hasIntersection test
...
^KT-41054 fixed
2020-08-13 18:04:42 +03:00
Ilya Goncharov
814c0b73e3
[Gradle, JS] Add doc into NpmRange
...
^KT-41054 fixed
2020-08-13 18:04:42 +03:00
Ilya Goncharov
dc7d7135f8
[Gradle, JS] Add min start, max end, min end tests
...
^KT-41054 fixed
2020-08-13 18:04:42 +03:00
Ilya Goncharov
c25bcb4028
[Gradle, JS] Add max start test
...
^KT-41054 fixed
2020-08-13 18:04:42 +03:00
Ilya Goncharov
42090e4839
[Gradle, JS] Add failing test
...
^KT-41054 fixed
2020-08-13 18:04:42 +03:00
Ilya Goncharov
d4524e4050
[Gradle, JS] Small refactoring
...
^KT-41054 fixed
2020-08-13 18:04:42 +03:00
Ilya Goncharov
b95eb66032
[Gradle, JS] RejectAll => reject wildcard
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
d4c0d62eeb
[Gradle, JS] Require version use caret
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
3ed42d394b
[Gradle, JS] Support hyphenated range
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
a4de85da13
[Gradle, JS] Right wildcard range
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
f848b7cbeb
[Gradle, JS] Right equals and hashCode for npm range
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
68880e6f47
[Gradle, JS] NpmRangeVisitor without nulls
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
7f3a2ac953
[Gradle, JS] Renames
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
fec8c6c0ae
[Gradle, JS] Min and max are not nullable
...
^KT-41054 fixed
2020-08-13 18:04:41 +03:00
Ilya Goncharov
966c9dae68
[Gradle, JS] Use not inverted visitor but straightforward visitor
...
^KT-41054 fixed
2020-08-13 18:04:40 +03:00
Ilya Goncharov
9bb49ac370
[Gradle, JS] Union of Npm Ranges
...
^KT-41054 fixed
2020-08-13 18:04:40 +03:00
Ilya Goncharov
14fac83e2b
[Gradle, JS] Intersect of NpmRange
...
^KT-41054 fixed
2020-08-13 18:04:40 +03:00
Ilya Goncharov
90bee78dda
[Gradle, JS] None range instead of none version
...
^KT-41054 fixed
2020-08-13 18:04:40 +03:00
Ilya Goncharov
f1b8c62231
[Gradle, JS] Use rejected versions
...
^KT-41054 fixed
2020-08-13 18:04:40 +03:00
Ilya Goncharov
d232e2ceb3
[Gradle, JS] Add ANTLR visitor for inverting of npm versions
...
^KT-41054 fixed
2020-08-13 18:04:40 +03:00
Ilya Goncharov
768b9a0340
[Gradle, JS] Use NpmVersionConstraint
...
^KT-41054 fixed
2020-08-13 18:04:40 +03:00
Ilya Goncharov
bb569f36b1
[Gradle, JS] Implement reason and other methods beside version
...
^KT-41054 fixed
2020-08-13 18:04:39 +03:00
Ilya Goncharov
30f78847b1
[Gradle, JS] Not publish npm dependency constraints in metadata
...
^KT-41054 fixed
2020-08-13 18:04:39 +03:00