Ilya Chernikov
4571e273a4
Add shared script instances support, fix and refactor evaluation accordingly
...
also fix arguments order in the evaluator
2019-01-10 10:59:32 +01:00
Ilya Chernikov
7bb4233e17
Add mapping function for transformations with ResultsWithDiagnostics
...
also improve chaining helpers
2019-01-10 10:59:32 +01:00
Ilya Chernikov
01f2a21192
[minor] add comment to the "Fix locking in script definition provider" commit
2019-01-10 10:59:32 +01:00
Ilya Chernikov
e5febddaf7
[minor] fix scripting test on windows
2019-01-10 10:59:32 +01:00
denisgaebler
1ca2e4fdba
Update JavaSdkUtil.java
...
Added path for IBM JDK on platform z/OS
2019-01-10 12:46:05 +03:00
Anton Yalyshev
c809cfd800
Merge branch 'rr/ayalyshev/KT-29062'
2019-01-10 12:05:53 +03:00
Mikhail Glukhikh
7095182e2d
FIR: support suspend functions #KT-24084 Fixed
2019-01-10 10:51:28 +03:00
Mikhail Glukhikh
7aba441234
FIR tree: support const expressions (adds IR dependency) #KT-24023 Fixed
...
Also support generic tree elements in FIR visitor generator
2019-01-10 10:51:08 +03:00
Mikhail Glukhikh
18ea86cfb4
Remove parentheses: add semicolon before lambda if necessary
...
In 2010b175 , it was suggested just not to suggest parentheses removal.
However, it contradicts with behaviour of "Replace contains" which
adds semicolon before lambda in this case. So in this commit I made
behaviour of remove parentheses the same.
This commit reverts production part of 2010b175
Fixes failing test of "replace contains"
2019-01-10 10:45:46 +03:00
Sergey Rostov
62222460b6
JPS build, workarounds for idea importing: fix runtime classpath
2019-01-10 08:50:41 +03:00
Sergey Rostov
5cda676c9f
JPS: Print components of CacheVersion, add tests
2019-01-10 08:50:39 +03:00
Sergey Rostov
b3985d2735
JPS: remove cache version from test data
2019-01-10 08:50:38 +03:00
Andrey Uskov
b6aed5b98a
Change task creation with task registration in Kotlin plugin
...
#KT-27657 Fixed
2019-01-10 01:41:21 +03:00
Yan Zhulanow
7d660834e1
Fix 'CommandLineProcessor' extension point calling, switch it to using ServiceLoaderLite
2019-01-09 21:54:52 +03:00
Yan Zhulanow
34818b0bbe
Remove JPS support for Android Extensions
2019-01-09 21:54:52 +03:00
Alexander Udalov
cca6ba38be
Add tests for obsolete codegen issues
...
#KT-16790 Obsolete
#KT-16858 Obsolete
#KT-17441 Obsolete
2019-01-09 19:18:54 +01:00
Mikhael Bogdanov
0bb97cf590
Add test for Obsolete issue
...
#KT-12208 Obsolete
2019-01-09 16:00:03 +01:00
Ilya Matveev
dcaa56bc0b
Fix MinGW path in Kotlin/Native runner
2019-01-09 20:43:29 +07:00
Anton Yalyshev
ef8bbafeff
Checked null condition for JPanel createDestinationRootPanel() #KT-29062 Fixed
2019-01-09 13:04:23 +03:00
Anton Yalyshev
bec07ae7d9
createFileFromTemplate() call from ExtractSuperRefactoring doesn't affect statistics trigger anymore
2019-01-09 12:29:15 +03:00
Anton Yalyshev
a893a26585
Added statistics for Scratches to new_file_templates collector
2019-01-09 12:29:15 +03:00
Anton Yalyshev
6510c17804
Added statistics collector for new_file_templates and set trigger to createFileFromTemplate
2019-01-09 12:29:14 +03:00
Mikhael Bogdanov
f7ce8c18c6
Add tests for Obsolete issues
...
#KT-18977 Obsolete
2019-01-09 10:20:54 +01:00
Toshiaki Kameyama
f389c31d8e
Replace with binary operator: don't highlight when receiver is dynamic type
...
#KT-28773 Fixed
2019-01-09 12:17:40 +03:00
Toshiaki Kameyama
2010b1756e
Remove unnecessary parentheses: don't suggest when parentheses are for lambda
2019-01-09 12:16:01 +03:00
Toshiaki Kameyama
05d8932fa6
Remove useless cast: don't remove parentheses for lambda
...
#KT-28641 Fixed
2019-01-09 12:16:01 +03:00
Toshiaki Kameyama
d02867a831
Add "Wrap with array literal" quick fix for annotation parameters
...
#KT-28969 Fixed
2019-01-09 12:12:27 +03:00
Toshiaki Kameyama
53b0aa5813
"Wrap element with arrayOf() call": don't suggest for annotation parameters
...
#KT-28969 Fixed
2019-01-09 12:12:27 +03:00
Nicolay Mitropolsky
41b6bcf8c3
Converting object literal to class allows to choose a name (KT-19254)
2019-01-09 11:12:47 +03:00
Alexander Udalov
a9afee77d7
Add tests for obsolete codegen issues
...
#KT-8203 Obsolete
#KT-15950 Obsolete
2019-01-08 20:43:46 +01:00
Mikhael Bogdanov
9a059809bf
Add test for Obsolete issues
...
#KT-15956 Obsolete
#KT-15751 Obsolete
#KT-16417 Obsolete
#KT-21787 Obsolete
2019-01-08 13:52:47 +01:00
Mikhael Bogdanov
6a19e45e27
Avoid ConcurrentModificationException
...
#KT-26384 Fixed
2019-01-08 13:52:46 +01:00
Mikhael Bogdanov
8ce7112123
New tests for TYPE_USE annotations in enums and inner classes
...
Main test data (testName.txt) a not totally valid cause of IDEA-205039.
Javac test data (testName.javac.txt) a not valid
cause of type annotations support absence.
Runtime tests are disabled cause reflection support absence.
2019-01-08 13:52:45 +01:00
Mads Ager
57489febf0
JVM IR: simplify chains of negations in if conditions.
...
Introduce lowering phase that turns !!exp -> exp for the boolean
'not' builtin. This makes sure that code such as
```
if (!!!!!booleanValue) {
doStuff()
}
```
generates only one branch.
2019-01-08 12:09:23 +01:00
Mikhael Bogdanov
90c787e102
Minor. Reformat code
2019-01-07 15:49:27 +01:00
Mikhael Bogdanov
cfc21ffa56
Test for obsolete KT-16496
...
#KT-16496 Obsolete
2019-01-07 15:49:26 +01:00
Nikolay Krasko
c968a362f6
Fix test data after file rename
2019-01-06 01:08:25 +03:00
Toshiaki Kameyama
827e04ae3e
Keyword completion: add "class/interface/object + filename" completion for top level (KT-28394)
...
#KT-28394 Fixed
2019-01-05 19:06:22 +03:00
Toshiaki Kameyama
ed9d53acaa
Keyword completion: do not add braces after 'companion object' (KT-27915)
...
^KT-27915 Fixed
2019-01-05 19:00:25 +03:00
Toshiaki Kameyama
18ed031e7e
Fix completion for back-ticked name (KT-19863, KT-19864)
...
^KT-19863 Fixed
^KT-19864 Fixed
2019-01-05 18:52:26 +03:00
Mads Ager
864b90f8c0
JVM_IR: Do not materialize negated boolean for branches.
...
Instead, flip the branch targets. This generates java byte code
such as:
L2
IFNE L3
ALOAD 0
INVOKEVIRTUAL A.getX ()F
GOTO L4
L3
instead of:
L2
IFNE L3
ICONST_1
GOTO L4
L3
ICONST_0
L4
IFEQ L5
ALOAD 0
INVOKEVIRTUAL A.getX ()F
GOTO L6
L5
2019-01-03 08:21:31 +01:00
Mikhael Bogdanov
02d9c526e2
Proper resort variables on inlining lowered ir closures
...
Original problem is that lowered ir closures doesn't meet inliner expectations
about captured variable position in inlining method.
E.g.: Call 'foo(valueParam) { capturedParam }' to
inline function 'foo' with declaration
inline fun foo(valueParam: Foo, inlineParamWithCaptured: Bar.() ->) ....
is reorganized through inlining to equivalent call foo(valueParam, capturedParam1, cp2 ...).
But lowered closure for lambda parameter has totally different parameters order:
fun loweredLambda$x(extensionReceiver, captured1, cp2..., valueParam1, vp2...)
So before inlining lowered closure should be transformed to
fun loweredLambda$x(extensionReceiver, valueParam1, vp2..., captured1, cp2..)
#KT-28547 Fixed
2019-01-03 07:57:36 +01:00
Mikhael Bogdanov
fcf8ea44b2
Update copyright in generated FIR related stuff
2019-01-03 07:45:16 +01:00
Mikhael Bogdanov
dfee1787e5
Regenerate builtins
2019-01-02 14:47:48 +01:00
Mikhael Bogdanov
e963c52c80
Update copyright in generated non-compiler tests
2019-01-02 13:34:03 +01:00
Mikhael Bogdanov
e0bcba5c0e
Add test for obsolete KT-17431 issue
...
#KT-17431 Obsolete
2019-01-02 12:37:07 +01:00
Mikhael Bogdanov
cf47bc0130
Update copyright in generated compiler tests
2019-01-02 12:37:06 +01:00
Mikhael Bogdanov
6bf70a5dd2
Properly find invoke method on default lambda inlining
...
In general case parameter type could differ from actual default lambda type.
E.g.: fun inlineFun(s: (Child) -> Base = { a: Base -> a as Child}),
where type of default lambda is '(Base) -> Child'.
In such case we should find somehow actual invoke method in bytecode knowing
only name, number of parameters and that's actual invoke is non-synthetic
regardless of bridge one.
#KT-21946 Fixed
2019-01-02 12:37:06 +01:00
Toshiaki Kameyama
3040a2b145
Add quickfix for RETURN_TYPE_MISMATCH_ON_OVERRIDE
...
#KT-27972 Fixed
2018-12-29 10:41:14 +03:00
Vyacheslav Gerasimov
683ed4eb95
Build: Add asm-7 sources
...
#KT-29044 Fixed
2018-12-28 21:18:33 +03:00