Mikhael Bogdanov
cbfcb74b58
Get rid of cli dependencies from ir
2017-11-16 14:46:53 +01:00
Zalim Bashorov
28e34ac39b
Minor: fix IDEA warnings in BasicBoxTest.kt
2017-11-16 15:42:08 +03:00
Zalim Bashorov
291e903ae6
Mark js/js/translator/testData/out-min/ as excluded directory in IDEA
...
It's required to avoid indexing a lot of js files (> 200MB)
after each run of js tests.
2017-11-16 15:41:45 +03:00
Zalim Bashorov
4849bddde1
KJS: write minification's test results to separate directory
...
It allows excluding this directory from indexing inside IDEA
and probably simplifies the main workflow.
2017-11-16 15:36:20 +03:00
Alexey Tsvetkov
18261838b6
Avoid deserializing .kotlin_module as class proto
...
#KT-20184 fixed
2017-11-16 14:47:59 +03:00
Alexander Udalov
c55ac55526
Restore and deprecate JvmFileClassesProvider.getFileClassInternalName
...
#KT-21270 Fixed
2017-11-16 11:24:11 +01:00
Dmitry Petrov
4193fae9fa
Fix floating point comparison generation for range literals
2017-11-16 10:54:25 +03:00
Dmitry Petrov
354d54aef6
Don't generate DUPX instructions for in-range-literal expressions
...
Store argument into a local variable instead.
2017-11-16 10:54:25 +03:00
Vladimir Kasatkin
9b49e9139c
Added samples for map filtering operators (KT-20357)
...
Fix map transformations sample names.
2017-11-15 23:58:51 +03:00
Ilya Gorbunov
dca23e339a
Improve iterator samples, add explanatory comments (KT-20357)
2017-11-15 23:58:49 +03:00
kenji tomita
4d13ea89b2
Add samples for iterator-related extensions (KT-20357)
2017-11-15 23:39:07 +03:00
Ilya Gorbunov
94f77c773c
Remove unused function, simplify outdated runtime version tests
2017-11-15 17:53:18 +03:00
Ilya Gorbunov
18611343f2
Do not infer artifact version from build.txt #KT-21150
2017-11-15 17:53:18 +03:00
Ilya Gorbunov
9de6dd814b
Docs: clarifications on LazyThreadSafetyMode
2017-11-15 17:41:43 +03:00
Nikolay Krasko
0768e7404b
Stop overwriting values with defaults in compiler arguments
...
'verbose' option was always lost.
2017-11-15 16:12:41 +03:00
Nikolay Krasko
0480042ffd
Log incremental options before passing them to kotlin daemon
2017-11-15 16:12:40 +03:00
Nikolay Krasko
643f771c24
Report rebuild reason in rebuild function
2017-11-15 16:12:38 +03:00
Nikolay Krasko
97c1e58149
Minor: reformat too long lines
2017-11-15 16:12:37 +03:00
Alexander Udalov
ad730cedf6
Rename idea/src/META-INF/extensions/{common.xml -> compiler.xml}
...
To emphasize that this file declares extensions to be registered in the
compiler, not only in the IDE
2017-11-15 11:05:16 +01:00
Alexander Udalov
afc9d3ef8b
Remove idea/src/META-INF/extensions/{kotlin2jvm.xml,kotlin2js.xml}
...
Keep the EnvironmentConfigFiles enum because its values are used in
determining whether the environment is going to be used for JVM or
non-JVM project analysis, but remove the actual files.
Drop EnvironmentConfigFiles.EMPTY and replace its only usage in
preprocessor with JVM_CONFIG_FILES: it's easier and won't affect
anything
2017-11-15 11:05:15 +01:00
Alexander Udalov
7ace303add
Fix ambiguity on callable reference for expect members
...
Expect members should always lose in resolution to non-expect members,
be it simple calls or callable references. Note that there should be
exactly one actual member for each expect member in correct code, so
both ways to check for expect vs non-expect are correct: either before
signature comparison, or after.
#KT-20903 Fixed
2017-11-15 11:02:29 +01:00
Ilya Gorbunov
27546546fa
Minor: specify explicit name for lambda parameter, use also instead of let
2017-11-15 12:01:22 +03:00
Sergey Ryabov
7fe7b6d6e1
Change FileReadWrite to more idiomatic code
2017-11-15 12:01:22 +03:00
Ilya Gorbunov
f4015b48f7
Run configuration for generator: configure-on-demand
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
7c543b6b28
Rewrite array and specialized operations in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
c4ac2548d9
Rewrite Mapping.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
efefa64ac5
Rewrite snapshot and set operations in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
3b6c5880e2
Rewrite range operations in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
c3b894f041
Rewrite Guards, Numeric, SequenceOps, StringJoinOps in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
d2e1baa9d4
Rewrite Ordering.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
ff336cdf84
Rewrite Generators.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
eb2db85c46
Rewrite Filtering.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
d8455ba765
Rewrite Elements.kt in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
012d3804f0
Rewrite Aggregates.kt to the new template DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
dd0e04edd5
Switch production generated stdlib sources to the new DSL and remove old DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
db049c0ab6
Introduce deprecated helpers to ease migration
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
9f57a2c0d5
Make generated code ordered same as before
...
Allow to fix signature for sorting when overriding it
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
31e00efa8f
Legacy mode for non-multiplatform stdlib sources
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
4404257329
Improve new stdlib generator DSL
...
- Add Kotlin/Native platform.
- Rename classes.
- Introduce TemplateGroup and TemplateGroupBase to group template values.
- MemberBuilder: add support for more properties.
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
e68a6651d2
Prototype new version of stdlib generator template DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
9e34e20338
Refactor stdlib generator: extract common types to be reused in new DSL
2017-11-15 09:17:42 +03:00
Ilya Gorbunov
dcd0a94d76
Minor: fix extra space in return type of chunked and windowed
2017-11-15 09:17:42 +03:00
Pavel V. Talanov
cf2e9c7002
Fix compilation: erroneous import
2017-11-14 20:30:13 +03:00
Pavel V. Talanov
70b22e7f85
Highlighting: never highlight errors for compiled files
2017-11-14 18:29:58 +03:00
Pavel V. Talanov
9db9750e67
Light classes: do not fail when classfile is in src root
2017-11-14 18:29:53 +03:00
Pavel V. Talanov
6667732dd4
Do not hide kotlin class files in source roots
...
This fixes a problem where file is indexed but querying
index fails with an exception because file has no PSI
#KT-21061 Fixed
2017-11-14 18:26:53 +03:00
Pavel V. Talanov
8696b37cdb
Minor, tests: make collection synchronized
...
Attempt to fix flaky test test that use LightClassComputationControl
2017-11-14 17:47:55 +03:00
Denis Zharkov
1f9d56439a
Fix KNPE caused by optimizations in control-flow analysis
...
The problem is that when performing full analysis we do it in
a backward order while result for trivial vals is filled
in a forward one.
It turns out that reversedInstuctions might return a superset of
forward traversed instructions, e.g. in case of dead code in lambda.
At the same time result for trivial vals is constant
for any instruction, thus we can just return its constant value
and use it in the full analysis
#KT-20895 Fixed
2017-11-14 16:38:28 +03:00
Denis Zharkov
2a0b937aac
Revert "Add diagnostic for unexpected KNPE in control-flow analysis"
...
This reverts commit f24f0017a0 .
2017-11-14 16:37:24 +03:00
Denis Zharkov
f24f0017a0
Add diagnostic for unexpected KNPE in control-flow analysis
...
See KT-20895
2017-11-14 16:32:34 +03:00