Alexey Tsvetkov
5f54f67f70
Stop using -Xbuild-file in Gradle Plugin
...
#KT-27640 fixed
#KT-27778 fixed
#KT-27638 fixed
2019-03-25 16:39:47 +03:00
Nikita Skvortsov
9b5b0447fa
only load inspections when groovy plugin is present KT-30579
...
otherwise, a user who disables Groovy support gets NoClassDefFound errors
2019-03-25 16:06:55 +03:00
Svyatoslav Kuzmich
0504635254
Remove -ProperIeee754Comparisons test directive duplicate
2019-03-25 15:55:06 +03:00
Svyatoslav Kuzmich
70ef0e9431
Add '-ProperIeee754Comparisons' to some tests and disable them in JS_IR
2019-03-25 12:57:26 +03:00
Dmitriy Novozhilov
d3e98bc434
[NI] Update test data for diagnostic tests
2019-03-25 12:38:37 +03:00
Dmitry Gridin
74cd53963d
Fix false positive "Unused symbol" for type alias & private nested class/object
...
#KT-21526 Fixed
#KT-30527 Fixed
2019-03-25 16:32:28 +07:00
Dmitry Gridin
4441b1579f
Minor: refactoring UnusedSymbolInspection
2019-03-25 16:32:28 +07:00
Mikhail Zarechenskiy
3eda7c462b
[NI] Add Nothing constraint if it was inferred from a call
2019-03-25 12:17:28 +03:00
Mikhail Zarechenskiy
ca894a6a71
[NI] Don't complete nested call if there's no constraints at all
2019-03-25 12:17:28 +03:00
Dmitriy Novozhilov
9825984bc5
[NI] Update test data for diagnostic tests
2019-03-25 12:17:27 +03:00
Dmitry N. Petrov
c2a0e73a79
Merge pull request #2207 from ting-yuan/ieee754improper
...
Label improper IEEE 754 tests.
2019-03-25 12:10:59 +03:00
Mikhail Glukhikh
73ed52a511
Get rid of binding context in FirBodyResolveTransformer
2019-03-25 12:04:28 +03:00
Dmitry Petrov
8664fc3b28
psi2ir: add test for implicit cast on values of intersection type
2019-03-25 11:50:14 +03:00
Dmitry Petrov
d4525e19dd
IR: get rid of descriptors in local delegated properties rendering
2019-03-25 11:50:14 +03:00
Dmitry Petrov
12e9943f8f
IR: IrCallableReference now implements IrDeclarationReference
2019-03-25 11:50:14 +03:00
Dmitry Petrov
6ca61cf347
IR: symbol for IrLocalDelegatedProperty
2019-03-25 11:50:14 +03:00
Mikhail Glukhikh
aa6ba1cd4a
Introduce typeRef for FirExpression
...
This helps both body resolve & conversion to IR
2019-03-25 10:38:45 +03:00
Ilya Gorbunov
adeeeeee48
Fix embedded version of kotlin-stdlib in buildSrc
...
To avoid bringing stdlib:1.2.30, which is a transitive dependency of
com.jakewharton.dex:dex-method-list:3.0.0, into compile classpath of
the project build scripts.
2019-03-25 03:28:06 +03:00
Georgy Bronnikov
7f8cbf5434
JVM_IR: handle new JVM targets in AdditionalClassAnnotationsLowering
2019-03-25 02:18:57 +03:00
Georgy Bronnikov
0a2450bcd5
Remove duplicate definitions
2019-03-23 19:04:36 +03:00
Georgy Bronnikov
451cda79de
Rewrite AnnotationCodegen for IR, removing descriptors
2019-03-23 19:04:36 +03:00
Nikolay Krasko
8bd6e1b8e4
Rename action for throwing exception from Kotlin plugin
...
Make the name similar to other internal actions for throwing exceptions.
2019-03-23 11:54:57 +03:00
Nikolay Krasko
0c2bdc68f1
Additional checks for listed and approve in fetching release date (KT-30388)
2019-03-23 11:53:29 +03:00
Nikolay Krasko
27397f4131
Use xmlId for fetching release date (KT-30388)
2019-03-23 11:53:29 +03:00
Nikolay Krasko
fb2e5f970d
Add intention/inspections/quickfix contribution quick notes
2019-03-23 11:53:29 +03:00
Nikolay Krasko
fdf2482600
Clean up findUsages package
2019-03-23 11:53:29 +03:00
Nikolay Krasko
046a35bcda
Hide concrete classes for Kotlin nodes to avoid more compatibility problems
2019-03-23 11:53:28 +03:00
Nikolay Krasko
8ab10ebda3
Minor: remove warnings in CommonIntentionActionsTest.kt
2019-03-23 11:53:28 +03:00
Ilya Chernikov
99a5885aa7
Fix ScriptingCompilerPluginTest after creating a separate jar with shared plugin code
2019-03-23 09:52:02 +01:00
Abduqodiri Qurbonzoda
636ed025da
Replace "binary representation of" with "bits of"
2019-03-22 21:18:27 +03:00
Abduqodiri Qurbonzoda
960797b926
Replace mistaken "bit sign" with "sign bit"
2019-03-22 21:18:27 +03:00
Abduqodiri Qurbonzoda
f36a8db8eb
More detailed Primitive.toChar conversion documentation
2019-03-22 21:18:27 +03:00
Ting-Yuan Huang
caccb79324
Label improper IEEE 754 tests.
...
Those tests don't expect ProperIeee754Comparisons.
See KT-22723 for details.
2019-03-22 11:07:35 -07:00
Alexander Udalov
87c6b723f0
Add JvmBuiltIns.Kind instead of boolean flags in constructor
2019-03-22 14:59:03 +01:00
Alexander Udalov
c32d7ef116
Do not create additional module for built-ins in reflection
2019-03-22 14:59:03 +01:00
Alexander Udalov
ed86757817
Rework how built-in types are loaded in compiler for JVM
...
In TopDownAnalyzerFacadeForJVM, we now always use the "load built-ins
from module dependencies" behavior that was previously only enabled with
the dedicated CLI argument -Xload-builtins-from-dependencies. However,
sometimes we compile code without kotlin-stdlib in the classpath, and we
don't want everything to crash because some standard type like
kotlin.Unit hasn't been found.
To mitigate this, we add another module at the end of the dependencies
list, namely a "fallback built-ins" module. This module loads all
built-in declarations from the compiler's class loader, as was done by
default previously. This prevents the compiler from crashing if any
built-in declaration is not found, but compiling the code against
built-ins found in the compiler is still discouraged, so we report an
error if anything is resolved to a declaration from this module, via a
new checker MissingBuiltInDeclarationChecker.
Also introduce a new CLI argument -Xsuppress-missing-builtins-error
specifically to suppress this error and to allow compiling code against
compiler's own built-ins.
#KT-19227 Fixed
#KT-28198 Fixed
2019-03-22 14:59:03 +01:00
Alexander Udalov
8ce7742e7c
Inject DeserializationConfiguration into JvmBuiltInsPackageFragmentProvider
2019-03-22 14:59:03 +01:00
Alexander Udalov
05700b8c43
Use JvmResolveUtil.createContainer in AbstractDescriptorRendererTest
2019-03-22 14:59:03 +01:00
Alexander Gorshenev
a3b1d3ff62
Allow forward declarations bring additional IR dependencies
...
for modules present in metadata.
2019-03-22 16:47:08 +03:00
Alexander Gorshenev
674580fdef
File annotation deserialization is triggered by the first file use
2019-03-22 16:47:08 +03:00
Alexander Gorshenev
215da10687
A little refactoring of deserializer in preparation for the next commit.
2019-03-22 16:47:08 +03:00
Alexander Gorshenev
3bc4616a17
Eliminated global state in IR deserializer.
2019-03-22 16:47:08 +03:00
Ilya Matveev
8f9189d61e
Update Kotlin/Native: 1.2-eap-8879
2019-03-22 20:27:18 +07:00
Simon Ogorodnik
b617c40051
FIR: Update testData for fir multi-module test (rendering+body resolve)
2019-03-22 16:25:24 +03:00
Simon Ogorodnik
85a096029c
FIR: Do not fail on not calculated type
2019-03-22 16:25:24 +03:00
Simon Ogorodnik
70e324277e
FIR: Stub for super references
2019-03-22 16:25:23 +03:00
Mikhail Glukhikh
9b4fe2f991
FIR: Fix part of problems with smoke tests
2019-03-22 16:25:22 +03:00
Simon Ogorodnik
3e7e9269ab
FIR: Fix 2^n transform complexity in blocks/whens
2019-03-22 16:25:22 +03:00
Simon Ogorodnik
6799eeb084
FIR: Add CallKind
2019-03-22 16:25:21 +03:00
Simon Ogorodnik
a562f3db3c
FIR: Re-implement call resolver with proper architecture
2019-03-22 16:25:21 +03:00