Alexey Andreev
93ec81d2eb
Add source information to parsed JS AST
2017-06-07 11:13:50 +03:00
Alexey Andreev
1d1da326be
Refactor JS parser
2017-06-07 11:13:49 +03:00
Alexey Andreev
3a3720db8d
Reformat JS parser for conformance with project's style settings
2017-06-07 11:13:49 +03:00
Alexey Andreev
41ad637bad
Fix warnings in JS parser
2017-06-07 11:13:48 +03:00
Alexey Andreev
9d186cfc66
Fix JS source maps for temporary variables
2017-06-07 11:13:47 +03:00
Alexey Andreev
27a44f3282
Fix JS source maps for complex enum entry
2017-06-07 11:13:47 +03:00
Alexey Andreev
b70c52e41f
Fix JS source maps for optional arguments
...
Also, when function has expression body, use expression instead
of function declaration to mark return statement.
2017-06-07 11:13:46 +03:00
Alexey Andreev
6f0e4c4deb
Fix JS source maps for data class synthetic methods
2017-06-07 11:13:46 +03:00
Alexey Andreev
5bc6c07f9e
Fix JS source maps for companion objects of enum
2017-06-07 11:13:45 +03:00
Alexey Andreev
c9545f291a
Fix JS source maps for properties without initializer
2017-06-07 11:13:44 +03:00
Vyacheslav Gerasimov
fdf098d65c
Add gutter icon with navigation to related files for Android components
2017-06-06 20:47:30 +03:00
Vyacheslav Gerasimov
3f03b05bd3
Fix Android gutterIcon test, use findGuttersAtCaret method
2017-06-06 20:47:21 +03:00
Vyacheslav Gerasimov
643e3587cc
Kotlin UAST should visit property delegate expression
...
#KT-15164 Fixed
2017-06-06 20:47:01 +03:00
Vyacheslav Gerasimov
15bfd4439a
Fix AddTargetVersionCheckQuickFix, generate else branch with TODO
...
when surrounded statement used as expression
#KT-17786 Fixed
#KT-17788 Fixed
2017-06-06 20:46:53 +03:00
Vyacheslav Gerasimov
33c3ba815f
Fix Android SuppressLint and Api quickfixes: proper annotation placing
...
#KT-17783 Fixed
#KT-17787 Fixed
2017-06-06 20:46:40 +03:00
Alexander Udalov
e6001f57fa
Remove dependency of module 'backend' on 'backend.jvm' and 'ir.tree'
...
This breaks the circular dependency between 'backend' and 'backend.jvm'
2017-06-06 19:55:06 +03:00
Alexander Udalov
cf04157ec8
Ignore gradle build directories in the root module
2017-06-06 19:52:43 +03:00
Alexander Udalov
5e6db3d4a6
Fix broken source and class roots of project libraries
2017-06-06 19:52:42 +03:00
Alexander Udalov
fb520e3040
Maven: do not set JVM target to null
...
After a236400 , it's expected that the value of jvmTarget should not be
null. Otherwise ArgumentUtils.convertArgumentsToStringList fails with
NPE
2017-06-06 19:52:04 +03:00
Alexander Udalov
a802e7fb71
CLI: fix non-XML rendering of argument parse error, simplify code
...
If the compiler is invoked through JPS, an instance of
XmlMessageRenderer is used and the output should be a valid XML.
Previously, we reported the argument parse error (and the note to try
"-help") before calling messageRenderer.renderPreamble, which resulted
in invalid XML. The same was happening for the usage printed on "-help".
Both of these problems are fixed
#KT-14848 Fixed
2017-06-06 19:52:04 +03:00
Alexander Udalov
a67382fdec
Daemon: do not exit with internal error on invalid arguments
...
Invalid compiler arguments should lead to a compilation error, not
internal error. This has been fixed by splitting the
"parseArguments(...)" call (which does parsing + validation) in
CompileServiceImpl into two calls of parseCommandLineArguments +
validateArguments, and returning with a compilation error if the latter
did not succeed
#KT-16057 Fixed
#KT-14848 In Progress
2017-06-06 19:52:02 +03:00
Sergey Igushkin
2cad64881d
(minor) Improve exception message in case no Android plugin was found
2017-06-06 17:21:20 +03:00
Sergey Igushkin
21b88995ab
Add tests for the introduced fixes
...
Add a test for applying kotlin-android plugin with com.android.feature
Add a test for Databinding (not passing yet with 3.0.0+, until
3.0.0-alpha4 is released, which contains the fix from the Android side).
Add missing test project android-databinding.
Refactor and improve the tests
* Remove redundant files from test project 'android-databinding'
* Refactoring and minor improvements in the tests
2017-06-06 17:21:20 +03:00
Sergey Igushkin
483218e491
Fix for the Databinding issue where the kapt task started to early, not
...
letting the Databinding pre-process the project.
2017-06-06 17:21:20 +03:00
Sergey Igushkin
f053d79994
Add support for com.android.feature plugin.
2017-06-06 17:21:20 +03:00
Pavel V. Talanov
bdf76f23c4
Jvm Codegen: do not throw on malformed delegation to a type parameter
...
Fix exception on light class building
See KT-15931
2017-06-06 17:11:19 +03:00
Pavel V. Talanov
19db4304bd
Use clsDelegate to calculate hasModifierProperty("final") for light psi
...
AllOpen plugin can make some changes and we don't have the tools to make
correct decision based on psi
#KT-17857 Fixed
2017-06-06 17:11:18 +03:00
Pavel V. Talanov
f3f2379e5a
KtLightMemberModifierList:hasExplicitModifier("default") returns false
...
#KT-18070 Fixed
2017-06-06 17:11:17 +03:00
Mikhail Glukhikh
f54267eab4
Revert 'configureSilently' removal
2017-06-06 16:14:50 +03:00
Nikolay Krasko
0980446836
Fix running Android tests locally on windows
2017-06-06 14:56:22 +03:00
Nikolay Krasko
45958e630d
Refactoring: move method
2017-06-06 14:56:21 +03:00
Nikolay Krasko
cb4c840d3b
Remote old tasks for fetching continuous branches
2017-06-06 14:56:21 +03:00
Alexander Udalov
6a4c1b138f
Remove dependency of module 'cli' on 'builtins-serializer'
...
This breaks the circular dependency between them
2017-06-06 14:29:27 +03:00
Alexander Udalov
7febd846e8
Export 'intellij-core' in module 'frontend'
...
Remove intellij-core from dependencies of modules which already depend
on frontend or any module that exports frontend (such as frontend.java)
2017-06-06 14:29:26 +03:00
Alexander Udalov
2ed027219c
Remove dependency of module 'frontend' on 'plugin-api'
...
This breaks the circular dependency between them
2017-06-06 14:29:25 +03:00
Alexander Udalov
cc2f607be3
Remove dependency of module 'frontend.java' on 'javac-wrapper'
...
This breaks the circular dependency between them
2017-06-06 14:29:24 +03:00
Alexander Udalov
1df13e0bc9
Move TopDownAnalyzerFacadeForJVM to module 'cli'
...
It's only used in the command line compiler and in tests
2017-06-06 14:29:23 +03:00
Alexander Udalov
f6c263b54d
Remove dependency of module 'javac-wrapper' on 'cli' and 'cli-common'
...
This breaks the circular dependency between them
2017-06-06 14:29:22 +03:00
Alexander Udalov
1273ac9647
Remove dependency of module 'descriptors' on 'deserialization'
2017-06-06 14:29:21 +03:00
Alexander Udalov
751ff48301
Extract logic of builtins package fragment provider creation
...
This allows to drop the compile dependency of module 'descriptors' on
'deserialization', breaking the circular dependency between them
2017-06-06 14:29:20 +03:00
Alexander Udalov
1728b77b2c
Minor, refactor createBuiltInsPackageFragmentProvider
2017-06-06 14:29:19 +03:00
Alexander Udalov
cbaa676c3d
Move some declarations between 'descriptors' and 'deserialization'
...
- Move the following from 'deserialization' to 'descriptors':
NotFoundClasses.kt
AdditionalClassPartsProvider.kt
ClassDescriptorFactory.kt
PlatformDependentDeclarationFilter.kt
findClassInModule.kt
- Move the following form 'descriptors' to 'deserialization':
BuiltInSerializerProtocol.kt
builtInsPackageFragmentProvider.kt
- Extract a marker interface from BuiltInsPackageFragment and move its
implementation to 'deserialization'
- Change the type of parameters in PlatformDependentDeclarationFilter
and AdditionalClassPartsProvider to ClassDescriptor
This will help in getting rid of the circular dependency of
'descriptors' <-> 'deserialization'
2017-06-06 14:29:18 +03:00
Alexander Udalov
a4931568ba
Relocate service definition files for kotlin-reflect
...
See
http://imperceptiblethoughts.com/shadow/#merging_service_descriptor_files
#KT-16810 Fixed
2017-06-06 14:29:17 +03:00
Alexander Udalov
2b878f863c
CLI: report error if kotlinc is invoked on Java 6 or 7
...
#KT-17297 Fixed
2017-06-06 14:17:28 +03:00
Alexander Udalov
ea9194e1fb
CLI: compile preloader against JDK 1.6
...
To be able to detect the Java runtime version at startup to report an
error if it's < 1.8
2017-06-06 14:17:27 +03:00
Alexander Udalov
a236400785
CLI: drop CommonCompilerArguments.createDefaultInstance
...
Move the corresponding default value initializers to the field
declarations
2017-06-06 14:17:26 +03:00
Alexander Udalov
26e3d2cf5d
Use TopLevelDeclarations analysis mode in REPL
...
#KT-12564 Fixed
2017-06-06 14:00:45 +03:00
Alexey Andreev
b6d12fe7f3
Fix bug in re-importing modules from inline declarations in JS
...
Fix another case in KT-18201
2017-06-06 13:36:19 +03:00
Alexey Andreev
67f9474e2e
Update changelog for 1.1.3
2017-06-06 11:40:36 +03:00
Dmitry Petrov
fd1866b838
Do not check argumentMapping.isError()
...
Argument matching status can be considered an "error" in resolve,
even though it is not a compilation error and doesn't prevent code
from being generated.
Actually, we should only check if the argument matching status is
ArgumentMatch.
#KT-18294 Fixed
2017-06-06 10:19:18 +03:00