Alexey Sedunov
06960be3ad
Minor: Extract findElementByComment() function
2015-04-09 13:49:18 +03:00
Alexey Sedunov
4af608ef84
Parser: Recovery for parameter with missing name
2015-04-09 13:49:17 +03:00
Alexey Sedunov
7d4d3e537c
Minor: Change signature of JetParameterInfo constructor
2015-04-09 13:49:16 +03:00
Alexey Sedunov
95a8db458b
Minor: Generify KotlinInplaceVariableIntroducer
2015-04-09 13:49:15 +03:00
Alexey Sedunov
ee8df94f19
Minor: Extract container selection logic
2015-04-09 13:49:14 +03:00
Alexey Sedunov
d3605a5352
Minor: Move getValueParameters() function to jetPsiUtil.kt
2015-04-09 13:49:13 +03:00
Alexey Sedunov
b47c700a27
Introduce Variable: Fix replacement of multiple occurrences when variable name is changed in the template editor
...
#KT-7244 Fixed
2015-04-09 13:49:12 +03:00
Michael Bogdanov
20653090d3
Test for KT-7338: Incorrect code is emitted for is-checks with array types, resulting in java.lang.VerifyError
...
#KT-7338 Obsolete
2015-04-09 11:10:33 +03:00
Michael Bogdanov
efd4a3ce84
Print bytecode on test fail
2015-04-09 09:25:26 +03:00
Michael Bogdanov
ce13b3a44a
Optimization fix
2015-04-09 09:25:26 +03:00
Michael Bogdanov
99496f8f52
Update some test due smap generation
2015-04-09 09:25:26 +03:00
Michael Bogdanov
c582b1d9ce
Generate linenumber if needed after inlining
2015-04-09 09:25:26 +03:00
Michael Bogdanov
8cd496556c
Generate local var table
2015-04-09 09:25:26 +03:00
Evgeny Gerashchenko
5c0a81fae1
Minor. Renamed test data. default object -> companion object.
2015-04-08 21:15:28 +03:00
Evgeny Gerashchenko
8ef2718e30
Added assert clarification for EA-66572
2015-04-08 21:15:28 +03:00
Evgeny Gerashchenko
4ba0d2aba5
Updated quasi-indeterministic test data. After introducing new line marker provider, which invokes lazy resolution, diagnostic is reported on different element.
2015-04-08 21:15:28 +03:00
Michael Nedzelsky
c62b1fac69
JS: fix support auto import for class names
2015-04-08 16:50:48 +03:00
Michael Nedzelsky
15ebab4f7e
JS: add tests for quickfix: autoimport for Kotlin/Javascript projects
2015-04-08 16:50:45 +03:00
Evgeny Gerashchenko
53ef521a8f
Deparenthesizing this expression.
2015-04-08 16:44:45 +03:00
Evgeny Gerashchenko
d7928b7251
Added test cases with labeled diff.
2015-04-08 16:43:34 +03:00
Evgeny Gerashchenko
4c5bfaeb8b
Checking for different receiver in implicit calls. They are considered not recursive.
2015-04-08 16:37:41 +03:00
Evgeny Gerashchenko
01b8718ac7
Minor. More proper short-circuit check.
2015-04-08 15:33:49 +03:00
Evgeny Gerashchenko
eeeb741d42
Added test for obsolete bug and removed workaround in code.
2015-04-08 15:14:16 +03:00
Evgeny Gerashchenko
015da2f8ca
More proper code to check if lambda is inlined. Parameter of inline function can be annotated with "noInline".
2015-04-08 15:14:15 +03:00
Evgeny Gerashchenko
d24d750d34
Added workaround for bug in IDEA test framework. Without it, tests didn't make much sense.
2015-04-08 15:14:14 +03:00
Evgeny Gerashchenko
33e34c759d
KT-2190 Highlight usages invoked on "throw" or "return" should highlight all exit-points of function
...
#KT-2190 fixed
2015-04-08 15:14:13 +03:00
Evgeny Gerashchenko
86f91ade1a
Minor. Fixed syntax error in test data.
2015-04-08 15:14:11 +03:00
Evgeny Gerashchenko
6041d566d9
Line markers for recursive calls.
2015-04-08 15:14:10 +03:00
Evgeny Gerashchenko
06c05193a6
Extracted method.
2015-04-08 14:38:04 +03:00
Evgeny Gerashchenko
85e9f2207e
Minor. Moved test data to subdirectory.
2015-04-08 14:38:04 +03:00
Evgeny Gerashchenko
a2bc9cd7de
Added optimization for isReferenceTo. It quickly says false for
...
references from non-source code to anywhere except same file.
2015-04-08 14:38:04 +03:00
Michael Nedzelsky
28f320498c
remove AbstractNavigateToLibraryTest
2015-04-08 01:15:24 +03:00
Michael Nedzelsky
c09acf89e5
NavigateToLibrarySourceTestGenerated: add tests for projects with kotlin/jvm and kotlin/js modules
2015-04-08 01:15:21 +03:00
Michael Nedzelsky
054d905374
add NavigateToStdlibSourceTest
2015-04-08 01:15:18 +03:00
Michael Nedzelsky
7b17ae3b8b
add testUtils
2015-04-08 01:15:15 +03:00
Michael Nedzelsky
c0e6fa62a0
NavigateToLibrarySourceTest -> NavigateToLibrarySourceTestGenerated
2015-04-08 01:15:13 +03:00
Michael Nedzelsky
039b9a8e16
JetCotoImplementationTest -> KotlinGotoImplementationTestGenerated
2015-04-08 01:15:09 +03:00
Alexander Udalov
4956b24810
Merge two DescriptorRenderer parameters about parameter name rendering
...
Also disable parameter name rendering completely in
AbstractJvmRuntimeDescriptorLoaderTest because they can't be obtained anyway in
reflection
2015-04-07 20:25:08 +03:00
Alexander Udalov
47e7235e64
Add different tests on class loaders in reflection
2015-04-07 20:25:07 +03:00
Alexander Udalov
87ef4ff7c5
Fix KClassImpl#toString to render Kotlin FQ name, not JVM one
2015-04-07 20:25:06 +03:00
Alexander Udalov
137ee53e85
Reflection test: only skip Java annotation constructors
...
The order of Kotlin annotation parameters is retained
2015-04-07 20:25:05 +03:00
Alexander Udalov
9c1e7f93d2
Reflection: refactor property construction and fix memory leak
...
Properties obtained by KClass.properties were having strong references to
descriptors (captured by closures, which are strongly retained by
DescriptorBasedProperty). Support initial value in lazy soft properties
2015-04-07 20:22:52 +03:00
Alexander Udalov
715641fb0d
Call getMethod/getDeclaredMethod depending on visibility
2015-04-07 20:20:40 +03:00
Alexander Udalov
0202217135
Fix JVM signatures involving multi-dimensional array types
...
Apparently ASM's Type#getElementType returns the type of the array even if it's
multi-dimensional, so the loop was incorrect
2015-04-07 20:06:23 +03:00
Alexander Udalov
7e86d87133
Move built-in companion intrinsics to core to reuse in reflection
2015-04-07 20:06:23 +03:00
Denis Zharkov
ce51327509
Refine descriptor renderer test
...
Now it checks:
- Whether resolveToDescriptor on secondary constructors works well
- If there is explicit primary constructor declaration
resolveToDescriptor should return it
- Renderer itself works well with constructors
2015-04-07 19:31:31 +03:00
Denis Zharkov
468233b624
Change default visiting behaviour of constructors to proper one
...
visitJetElement -> visitDeclaration
2015-04-07 19:31:31 +03:00
Denis Zharkov
f85e92a247
j2k: Adjust annotation converter to last changes
...
Only parameter named `value` can be marked vararg
2015-04-07 19:31:30 +03:00
Denis Zharkov
37d7327482
Implement visitPrimaryConstructor in LazyDeclarationResolver
...
It's need to prevent exception when trying to analyze each declaration
node within class
#KT-7279 Fixed
#KT-7315 Fixed
2015-04-07 19:31:30 +03:00
Denis Zharkov
1324667bc9
Prohibit use of positioned value arguments for java annotation
2015-04-07 19:31:30 +03:00