Dmitry Gridin
43be01bbc8
Fix false positive 'Introduce import alias' on this/super
2019-03-19 16:42:41 +07:00
Dmitry Gridin
1626bc4751
Optimize "Introduce import alias"
...
Relates to #KT-30462
2019-03-19 16:42:41 +07:00
Dmitry Gridin
ccb1ae13ea
Fix local conflicts in 'Introduce import alias'
2019-03-19 16:42:41 +07:00
Dmitry Gridin
9659453351
Improve: intention "Introduce Import Alias" should suggest new names for the new alias
...
#KT-30456 Fixed
2019-03-19 16:42:41 +07:00
Dmitry Gridin
ff34788eb3
Minor: refactoring KotlinNameSuggester
2019-03-19 16:42:41 +07:00
Nicolay Mitropolsky
0d2426b081
191: Uast: isJvmElement check added to the newly added conversion methods (EA-125791)
2019-03-19 12:24:44 +03:00
Mikhail Glukhikh
a07502374e
Rename (style): russian "С" to english "C"
2019-03-19 12:23:47 +03:00
pyos
82ccf81da8
Fix this remapping in inner class constructors
...
Inner class constructors should use the argument instead of reading
outer `this` from a field because if such an access happens before a
delegating constructor call, e.g. when evaluating an argument, a JVM
bytecode validation error will be thrown. (The only operation on `this`
allowed before a delegating constructor call is SETFIELD, and only if
the field in question is declared in the same class.)
2019-03-19 09:20:41 +01:00
pyos
7e8db4cc4a
Refactor InnerClassesLowering
2019-03-19 09:20:41 +01:00
Toshiaki Kameyama
a2adfd0cc0
Nested lambda has shadowed implicit parameter: do not report when lambda is in scope function
...
#KT-30173 Fixed
2019-03-19 10:37:47 +03:00
Dmitry Gridin
daf8df9e4b
Fix flaky test AddReturnToUnusedLastExpressionInFunction/Nothing
2019-03-19 11:29:53 +07:00
Ilya Matveev
fd9ac54d81
Improve deprecation warning about usage of old binary DSL
...
Previously we showed list of all deprecated APIs even if a user uses
only one of them. This patch changes the behaviour and shows only
APIs really used by the user. An approach similar to the one used by
SingleWarningPerBuild in applied here.
Issue #KT-29998 Fixed
2019-03-19 11:19:49 +07:00
Ilya Matveev
bfb0d738b1
Disable C2 compiler for HotSpot VM when running K/N tools
2019-03-19 11:19:48 +07:00
Ilya Gorbunov
b74fe7c1c3
Clarify floor and ceil docs (KT-30418)
2019-03-19 03:12:12 +03:00
Ilya Gorbunov
b0a234ec74
Minor: collection docs formatting
2019-03-19 03:12:09 +03:00
Ilya Gorbunov
bc444df20c
Clarify behavior of MutableSet.add (KT-29373)
2019-03-19 03:12:04 +03:00
Alexander Gorshenev
e9ad9273b1
Proper KotlinIr protobuf location.
2019-03-18 23:29:44 +03:00
Dmitriy Novozhilov
d01b6ef900
Revert "[NI] Support @OnlyInputTypes annotation. #KT-29307 fixed"
...
This reverts commit 90628112
With that annotation there is complex bug that breaks build of Kotlin compiler
2019-03-18 18:53:38 +03:00
Ilya Gorbunov
25b3f62767
Clarify yield/yieldAll function suspending the caller behavior
2019-03-18 18:01:39 +03:00
Mikhail Glukhikh
16f9eecb29
Fix "/ by zero" in FirResolveBench & switch progress OFF in smoke tests
2019-03-18 17:12:02 +03:00
Mikhail Glukhikh
741bdccca5
Enhance progress logging in FIR total resolve tests
2019-03-18 14:49:11 +03:00
Mikhail Glukhikh
a334ca6224
Move FIR total kotlin resolve in IDE test into performance group
2019-03-18 14:48:50 +03:00
Anton Yalyshev
71eb540eaf
improved english in wizard's descriptions. also now user knows about project's build system from its name
2019-03-18 14:15:35 +03:00
Svyatoslav Kuzmich
1d6cd90043
[JS IR BE] Clean up compiler driver api
...
This is a preparation step for JS-IR CLI:
- CompiledModule was overused. Split it into KlibModuleRef and TranslationResult
- Deserialize klib dependencies from klibs itself
2019-03-18 14:13:28 +03:00
Svyatoslav Kuzmich
e302f63d9a
[JS IR BE] Remove generateModuleInGlobalScope for code generator
...
This method used to be a workaround for test speedup.
Now we use proper close world module with runtime+stdlib module
as pre-serialized klib.
2019-03-18 14:13:28 +03:00
Ilmir Usmanov
d154cf9a59
Fix test data
2019-03-18 14:04:04 +03:00
Ilmir Usmanov
c68413b953
Do not generate StateMachineChecker if CHECK_STATE_MACHINE directive is
...
not present.
Otherwise, since it uses suspend functions, it breaks IR tests.
2019-03-18 14:04:03 +03:00
Ilmir Usmanov
7956ef18b2
Generate RETURN instead of ARETURN if (cross)inline suspend lambda returns Unit
...
#KT-30073 Fixed
2019-03-18 14:04:02 +03:00
Ilmir Usmanov
cc9a0041e0
Check number of suspensions in crossinline tests
2019-03-18 14:04:01 +03:00
Ilmir Usmanov
df52c5217d
Add facility to check number of suspensions in coroutine tests
2019-03-18 14:04:01 +03:00
Maxim Shafirov
ca35c9e2ff
Update copyright dates
2019-03-18 12:52:27 +03:00
Nikolay Krasko
b0156bc5db
Minor: cleanup KotlinTypeCheckerTest.java
2019-03-18 11:56:20 +03:00
Burak Eregar
db4144426a
Fix SimplifiableCallChain inspection quick fix removes comments for intermediate operations
2019-03-18 11:35:32 +03:00
Toshiaki Kameyama
8728bc0820
Convert to scope function: also convert binary expression
...
#KT-30228 Fixed
2019-03-18 11:18:23 +03:00
Toshiaki Kameyama
e340af51df
Add "Rename class to containing file name" intention
...
#KT-25262 Fixed
2019-03-18 11:09:09 +03:00
Toshiaki Kameyama
39016594b1
Replace return with 'if'/'when': don't drop return label
...
#KT-30414 Fixed
2019-03-18 09:46:10 +03:00
victor.petukhov
9a2178d96b
Split 'nothingTypedSuspendFunction' test into two separate tests (for old and new coroutines)
2019-03-16 21:39:44 +03:00
victor.petukhov
29493a4977
Fix 'nothingTypedSuspendFunction' test after 70c35f4186
2019-03-16 14:15:08 +03:00
Alexander Gorshenev
51e862e793
Fix file descriptor unlimited growth.
2019-03-16 13:45:45 +03:00
victor.petukhov
5fc0d85b3c
Regenerate FIR tests (include tests for implicit nothing as type parameter)
2019-03-16 00:41:58 +03:00
Alexander Udalov
2539873492
Remove CommonBackendContext.getClass
...
This function is unused in backend.common (and actually throws exception
in Native), therefore it makes sense to move it down to subtypes
2019-03-15 19:27:48 +01:00
Alexander Udalov
e13b8eb039
Remove CommonBackendContext.getInternalFunctions
...
Similarly to getInternalClass, move to subclasses
2019-03-15 19:27:48 +01:00
Alexander Udalov
bd694105e9
Remove CommonBackendContext.getInternalClass
...
Move to subclasses: getJvmInternalClass, getJsInternalClass and
getKonanInternalClass (in Kotlin/Native). The advantage of this is that
this API need not be shared between backends any longer, which makes
sense because implementation details differ across platforms
2019-03-15 19:27:48 +01:00
Alexander Udalov
4ab1916ebf
Cleanup Symbols and JvmIr.JvmSymbols
2019-03-15 19:27:47 +01:00
Alexander Udalov
e9c2bc81aa
Remove lateinitIsInitializedPropertyGetter, introduce static check function
...
This will be helpful in JVM IR tests without stdlib where it's not
necessary to have 'isInitialized' in dependencies
2019-03-15 19:27:47 +01:00
Alexander Udalov
c730de13df
Minor, add missing copyright to compiler modules
2019-03-15 19:27:46 +01:00
Alexander Udalov
9ca7719d1f
Minor, inline obsolete and deprecated createFunctionSymbol
...
Also undeprecate 'createSymbolForScopeOwner' and make it private
2019-03-15 19:07:16 +01:00
Alexander Udalov
0c8e58936c
Remove DeepCopyIrTree and most "Creates unbound symbol" deprecated members
2019-03-15 19:05:19 +01:00
victor.petukhov
70c35f4186
Introduce warning about implicitly inferred Nothing as a type parameter
...
^KT-20849 Fixed
2019-03-15 19:28:38 +03:00
Roman Artemev
1f98eaa27b
[JS IR BE] Fix Callable reference with vararg
...
* Update tests
2019-03-15 19:21:38 +03:00