Evgeny Gerashchenko
479711e812
Moved current incremental compiler test data into subdirectory.
...
Tweaked test generator to avoid creating test methods for parent directory of tests.
2014-07-10 15:05:20 +04:00
Evgeny Gerashchenko
62bb3f8782
Renamed CodeTransformationTest -> IntentionTest.
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko
fda7aeecfb
Simplified CodeTransformationTest. Only one doTest method remains, intention class is moved to test data. Merged other intention tests (SpecifyTypeExplicitlyTest, ConvertToBlock/ExpressionBodyTest) into this one.
2014-07-10 15:05:17 +04:00
Evgeny Gerashchenko
b1003fc034
Extracted test for "Join Lines" from CodeTransformationsTest.
2014-07-10 15:05:17 +04:00
Pavel V. Talanov
59e43020c3
Initial version of storing SourceElements in descriptors
...
Introduce SourceElement, JavaSourceElementFactory, DeclarationDescriptorWithSource
Implement getSource() for eager, lazy and java descriptors
2014-07-09 18:19:34 +04:00
Alexander Udalov
b9fd52739f
Move around some descriptor implementations
...
- mutable class, mutable package fragment and their dependencies go to module
'frontend'
- ModuleDescriptorImpl and PackageFragmentDescriptorImpl are moved to the
package "impl" in their module
2014-07-07 18:15:31 +04:00
Mikhael Bogdanov
02c6bdeaa3
Inline test data structure changed
2014-07-07 10:51:46 +04:00
Andrey Breslav
98e87f2f95
Removing unneeded "public override val" from constructors across the project
...
#KT-4295 Fixed
2014-07-05 18:31:55 +04:00
Pavel V. Talanov
55ae3cab19
Drop DependencyClassByQualifiedNameResolver and implementation
2014-07-03 20:46:37 +04:00
Alexander Udalov
aea230d677
Introduce black box with Java codegen tests
...
In contrast to "black box against Java", it supports cyclic dependencies
between Java and Kotlin sources in one test case
2014-06-26 20:57:40 +04:00
Alexander Udalov
09863445bb
Rename tests: boxWithJava -> boxAgainstJava
2014-06-26 20:57:40 +04:00
zarechenskiy
0355b1bd53
Implement JavaTypeSubstitutor without PSI
2014-06-24 20:06:13 +04:00
Natalia Ukhorskaya
b5f6df3144
Cache bytecodes for JetCodeFragment in Evaluate Expression
2014-06-23 17:17:39 +04:00
Andrey Breslav
afca70eb41
Test for nullability annotations generalized and generated
2014-06-19 22:10:57 +04:00
Andrey Breslav
bb581bb645
Only normalize names when accessing PSI, not earlier
...
#KT-4833 Fixed
2014-06-19 22:10:52 +04:00
Andrey Breslav
d25b2459d4
Report clashing signatures in the IDE
...
Expose extra diagnostics about platform signature clashes from light class data
#KT-1 In Progress
2014-06-19 22:10:45 +04:00
Evgeny Gerashchenko
aa41ae09ed
Merge remote-tracking branch 'origin/master' into incremental
2014-06-19 11:43:59 +04:00
Evgeny Gerashchenko
205f99bf60
Made incremental compilation test auto-generated.
2014-06-18 22:56:42 +04:00
Evgeny Gerashchenko
a82849f289
Removed member filter from injectors.
2014-06-18 22:56:33 +04:00
Evgeny Gerashchenko
ca1ee69e4c
Loading descriptors from incremental cache instead of package classes.
2014-06-18 22:56:33 +04:00
Alexander Udalov
ad23a2d05b
Fix equals and hashCode for empty ranges and progressions
...
Empty range is equal to any other empty range
2014-06-18 20:35:25 +04:00
Alexander Udalov
751f062f23
Add *Range.isEmpty(), *Progression.isEmpty()
2014-06-18 20:22:24 +04:00
Evgeny Gerashchenko
7fdd4a339e
KT-5087 Private members of Java classes should be marked as invisible, not unresolved
...
#KT-5087 fixed
2014-06-18 19:52:15 +04:00
Andrey Breslav
fe09bd4fd8
Tests for annotation deserialization when platform names are used
2014-06-10 18:21:37 +04:00
Valentin Kipyatkov
6b11a5b3d9
Java to Kotlin converter: no more 2 conversion modes for each test, just a few tests to test non-standard settings
2014-06-10 14:26:51 +04:00
Evgeny Gerashchenko
c7318b3880
Added slashes in generated tests when they are invoked on directory.
...
This makes it easier to find directory for test using IDEA's go to file/search everywhere features.
2014-06-06 14:33:21 +04:00
Alexey Sedunov
4a5d2e6728
Add tests for element -> pseudo-value mapping
2014-06-03 18:17:07 +04:00
Nikolay Krasko
f1f13d1f2a
Show members from supertypes in file structure view (KT-4448)
...
#KT-4448 Fixed
2014-05-30 00:04:06 +04:00
Nikolay Krasko
dfd66440b4
Tests for file structure
2014-05-30 00:04:03 +04:00
Zack Grannan
b2858e5b82
Added ConvertToConcatenatedStringIntention
2014-05-23 16:27:46 +04:00
Pavel V. Talanov
c9eb313ec4
Add MultiFileHighlightingTest which checks that other files are not parsed during highlighting
2014-05-21 15:40:30 +04:00
Pavel V. Talanov
fbf2cded0d
Refactor AbstractMultiFileJvmBasicCompletionTest to extend CompletionTestCase
...
Extract common code from JetFixtureCompletionBaseTestCase to CompletionTestUtil.kt
Reason for this change is that I couldn't get the check that prohibits tree loading to work with fixture test case
2014-05-21 15:40:12 +04:00
Pavel V. Talanov
fd3d322300
Add LazyResolveByStubTest
...
Tests that lazy resolve uses stubs instead of AST
2014-05-21 15:40:05 +04:00
Alexander Udalov
54c21ffbf3
Delete K*FunctionNImpl classes
...
In favor of KFunctionImpl, KMemberFunctionImpl and KExtensionFunctionImpl
2014-05-19 19:50:59 +04:00
Alexander Udalov
5488a8402f
Move and rename KFunctionImpl classes
...
Move from package "kotlin.reflect" to "kotlin.reflect.jvm.internal". They are
internal detail of the compiler and should not be used directly (especially now
that "kotlin.reflect" is in default import paths).
Also rename "KFunctionImplN" to "KFunctionNImpl", because this name makes more
sense
2014-05-19 19:50:58 +04:00
Alexander Udalov
51a16fe491
Drop FunctionImplN and ExtensionFunctionImplN
...
We have FunctionImpl and ExtensionFunctionImpl classes now (2 classes, not 46)
2014-05-19 19:50:58 +04:00
Alexander Udalov
0c2c203e96
Move KFunctionN classes to package "kotlin.reflect"
2014-05-19 19:50:57 +04:00
Alexander Udalov
c7a7f31e82
Introduce module 'reflection', move KFunctionN to it
...
Metadata for KFunction classes is now longer serialized along with built-in
classes. This effectively means that it's no longer possible to find KFunction
classes via dependency on built-ins. There should be a kotlin-runtime library
in the specified classpath for reflection types to be resolvable.
A lot of tests were moved and changed, because tests on callable references
require stdlib in classpath from now on
2014-05-19 19:50:57 +04:00
Zack Grannan
42f186b33f
Added String Concat -> Interpolation Intention (KT-4750)
2014-05-16 19:00:25 +04:00
Nikolay Krasko
c42908eff7
Rewrite tests for formatting during typing with auto generator
2014-05-16 17:09:48 +04:00
Natalia Ukhorskaya
0677075335
Parser for JetBlockCodeFragment
2014-05-15 13:54:25 +04:00
Alexander Udalov
888a6c0c9b
Add tests on Kotlin against compiled Java+Kotlin
...
The original purpose was to create a test that parameter names are inherited on
a K-J-K hierarchy when "K-J" is compiled to bytecode, but that's not possible
right now because of KT-4509
2014-05-14 18:58:57 +04:00
Jeremy Kaplan
b3842285e8
Implemented Operator To Function intention action.
...
Converts +a, --a, a * b, a..b, a %= b, a in b, etc. to their function call counterparts.
2014-05-12 21:04:51 +04:00
Pradyoth Kukkapalli
5550924dc5
New Intention Action: Invert If Condition
...
Inverts the conditional expression in an if expression.
2014-05-12 19:48:43 +04:00
Valentin Kipyatkov
0920ab2c25
Fixed mock jdk
2014-05-07 22:50:21 +04:00
Valentin Kipyatkov
717977af61
No more java lookup elements in code completion (except for one case)
2014-05-07 22:50:21 +04:00
Pradyoth Kukkapalli
33fd82cf45
New Intention: Replace for loop with forEach
...
Replaces an expression of the form “for (i in list) { … }” with an
expression of the form “list.forEach { i -> … }”
2014-05-07 14:01:37 +04:00
Pradyoth Kukkapalli
dbb28c571b
New Intention Action: Replace a call to forEach function with for loop.
...
Replaces an expression of form x.forEach { … } with for (a in x) { … }.
2014-05-07 14:00:50 +04:00
Alexander Udalov
42d167d17e
Add missing copyrights across the project
2014-05-05 20:43:35 +04:00
Alexander Udalov
b7746cbee7
Move module 'serialization' to core/
2014-05-05 20:43:34 +04:00