Natalia Selezneva
dbd7ceb5fd
Fix Evaluate Expression for inline functions from multifile package class.
...
Find main class generated for debugger by its name instead of relativePath length.
#KT-22311 Fixed
2018-01-16 16:00:32 +03:00
Cuihtlauac Alvarado
c5982e7ff5
Avoid pick environement variables test failures ( #1467 )
...
Remove all lines containing a "Picked up <ENVIRONMENT_VARIALBE>: ..."
Remove empty ERR: section
FIX: KT-22241
2018-01-16 12:33:19 +01:00
Mikhael Bogdanov
b539adf105
Support simple capturing in IR inliner
2018-01-16 11:53:25 +01:00
Mikhael Bogdanov
ca22bc57fd
Don't capture primary constructor variables
2018-01-16 11:53:25 +01:00
Mikhael Bogdanov
28f4cc5b18
Generate parameter name in assertion for lateinit properties
2018-01-16 11:53:24 +01:00
Mikhael Bogdanov
e58558dffd
Support mapped companions
2018-01-16 11:53:24 +01:00
Mikhael Bogdanov
e57efc7233
Support external functions
2018-01-16 11:53:23 +01:00
Mikhael Bogdanov
c1a1a7f9fb
Code clean
2018-01-16 11:53:22 +01:00
Mikhael Bogdanov
9d7eca1376
Support throwNpe intrinsic
2018-01-16 11:53:22 +01:00
Mikhael Bogdanov
d62a7cc9d1
Unwrap fake override on field access
2018-01-16 11:53:21 +01:00
Mikhael Bogdanov
dfbe92344f
Skip setter accessors for val
2018-01-16 11:53:21 +01:00
Mikhael Bogdanov
2b95e6bc0d
Generate proper vararg array
2018-01-16 11:53:20 +01:00
Mikhael Bogdanov
724f3bf714
Return proper type after coercion
2018-01-16 11:53:20 +01:00
Mikhael Bogdanov
77b93ab7ad
Add classType property in IrClassReference, support class references in codegen
2018-01-16 11:53:19 +01:00
Mikhael Bogdanov
b2970ef771
Skip noinline lambdas during inline
2018-01-16 11:53:19 +01:00
Mikhael Bogdanov
ab96e0102a
Support IrGetClass
2018-01-16 11:53:18 +01:00
Mikhael Bogdanov
9a1f484771
Fix equals
2018-01-16 11:53:18 +01:00
Nicolay Mitropolsky
d7f0695a51
Uast: KotlinNullabilityUAnnotation.javaPsi type set to PsiAnnotation?
2018-01-16 13:26:22 +03:00
Ilya Chernikov
c7f8312e1b
Shade kotlinx.coroutines in embeddable artefacts
...
fixes #KT-22196
2018-01-16 09:03:53 +01:00
Sergey Igushkin
3ed7df506b
Bump bootstrap to 1.2.30-dev-441
2018-01-15 22:38:28 +03:00
Nicolay Mitropolsky
9ce9b434fe
Uast: testdata fix for KotlinUastTypesTest.testEa101715
2018-01-15 20:58:18 +03:00
Denis Zharkov
886d3ef3a6
Optimize KotlinScriptDefinitionFromAnnotatedTemplate::isScript
...
Avoid multiple pattern compilation for script file regex
2018-01-15 18:20:27 +03:00
Denis Zharkov
b4e5f8cf1c
Optimize collecting module info in IDE
...
The problem was that there is no special entity for libraries
in the IntelliJ model, and when we have an element for a library
we have to search through all of its dependencies
(see getOrderEntriesForFile call in collectInfosByVirtualFile)
But for popular library there could be quite a lot of dependencies,
while in most cases we need only the first one to obtain module
info for library itself (see changed usage in resolverForElement).
So it's worth replacing List with Sequence here
2018-01-15 18:20:27 +03:00
Denis Zharkov
d848238a46
Add cache for Module::languageVersionSettings
...
It might be useful because getExtraLanguageFeatures might be
rather expensive to compute
#KT-21450 Fixed
2018-01-15 18:20:27 +03:00
Dmitry Jemerov
60874f29fe
Inspection for scope functions conversion
...
#KT-17047 Fixed
2018-01-15 15:37:36 +01:00
Dmitry Jemerov
0b24be9460
Don't enclose 'this' in braces inside string templates
2018-01-15 15:03:39 +01:00
Dmitry Jemerov
560dc920e4
Don't increase nesting level if we aren't processing current expression
2018-01-15 15:03:39 +01:00
Dmitry Jemerov
3a7e4acf22
Reformat and cleanup
2018-01-15 15:03:39 +01:00
Dmitry Jemerov
d15fa83749
API for building visitors from lambdas
2018-01-15 15:03:39 +01:00
Nikolay Krasko
46ac14198c
Don't try to cast light element to KtElement (EA-114820)
2018-01-15 14:05:51 +03:00
Nikolay Krasko
adf6ad6283
Check file before cast in KotlinCompletionContributor (EA-101984)
2018-01-15 14:05:50 +03:00
Nikolay Krasko
eae79e96ee
Fix NPE in PlainTextPasteImportResolver.tryResolveReferences (EA-10589)
2018-01-15 14:05:50 +03:00
Nikolay Krasko
93d40b0492
Fix NPE in SourceNavigationHelper.findFirstMatchingInIndex (EA-91517)
2018-01-15 14:05:50 +03:00
Nikolay Krasko
2ca7045228
Rewrite KotlinNameSuggesterTest test with KotlinLightCodeInsightFixtureTestCase
...
Use proper project descriptors and avoid reconfigure for test project.
2018-01-15 14:05:50 +03:00
Ilmir Usmanov
ed11528664
Ignore unreachable code on tail call optimization
...
#KT-21759: Fixed
2018-01-15 12:57:10 +03:00
Ilmir Usmanov
25998c1f9b
Reformat tail call optimization related code
2018-01-15 12:56:54 +03:00
Yan Zhulanow
2ee23ddd02
EA-101715: Handle also case with IntegerValueTypeConstructor
2018-01-15 12:39:35 +09:00
Yan Zhulanow
108e91f2a2
Kapt: Be less strict when it's impossible to add a generated Kotlin source directory for Android project (KT-22056, EA-114271)
2018-01-15 12:39:34 +09:00
Yan Zhulanow
283c762b8b
Kapt: Remove laziness from diagnosticFactory and javacMessages, use factory from supertype (KT-22189)
...
writeDiagnostic() may be invoked after the 'context' is cleared, and lazy implementations will fail.
2018-01-15 12:39:34 +09:00
Yan Zhulanow
192489ae66
Minor: Remove bulk class added by mistake
2018-01-15 12:39:33 +09:00
Yan Zhulanow
1c5cd1b3a0
Minor: Fix problem in IDE with @TestOnly annotation resolution
2018-01-15 12:39:32 +09:00
Yan Zhulanow
81aae03b57
Use Gradle API to import annotations from compiler plugins instead of nasty data storage tasks
...
Tasks itself will be left for some time until all users migrate to the newer IDE plugin versions.
2018-01-15 12:39:31 +09:00
Yan Zhulanow
e7c1d94c0f
Minor: Fix red code in IDE
2018-01-15 12:39:30 +09:00
Yan Zhulanow
e978c42e52
SamWithReceiver: Add Maven/Gradle importers for SamWithReceiver
2018-01-15 12:39:30 +09:00
Yan Zhulanow
0a3a493f25
AllOpen: Fix incorrect 'accessing non-final property in constructor' warning (KT-16619)
2018-01-15 12:39:29 +09:00
Yan Zhulanow
df19162c8c
Kapt: Store line information in a file doc comment, instead of annotations (KT-21936)
2018-01-15 12:39:28 +09:00
Yan Zhulanow
c66947ba40
NoArg: Parse 'invokeInitializers' option in Maven importer (KT-19900)
2018-01-15 12:39:27 +09:00
Yan Zhulanow
3512675d96
Compiler plugins: Refactor Maven import handlers in order to support other plugin options
2018-01-15 12:39:26 +09:00
Yan Zhulanow
a85b4ddb0f
Kapt: Clear stubs directory on non-incremental stub generation (KT-21735)
2018-01-15 12:39:25 +09:00
Nicolay Mitropolsky
f4a7ecc1bb
Uast: Fix for missing local variables in ctor-s bodies
...
similar to how it is done in `KotlinUBlockExpression`
2018-01-12 22:32:52 +03:00