Commit Graph

13935 Commits

Author SHA1 Message Date
Andrey Breslav 5378bded1e Minor: reorder methods and constructors 2014-01-30 21:03:52 +04:00
Evgeny Gerashchenko 836077916b Fixed tests after adding JetObject to generic signature. 2014-01-29 21:51:53 +04:00
Evgeny Gerashchenko 8212d591c4 Don't show selection popup when there is only one expression candidate. 2014-01-29 18:58:18 +04:00
Evgeny Gerashchenko abf352cebd KT-4485 getGenericInterfaces vs getInterfaces for kotlin classes
#KT-4485 fixed
2014-01-29 17:57:50 +04:00
Alexey Sedunov 0e9875aec3 Support moving into "else" branch of conditional expression
#KT-3877 Fixed
2014-01-29 15:58:53 +04:00
Alexey Sedunov 609154bab3 Generalize movable element constraint
#KT-4468 Fixed
 #KT-4376 Fixed
2014-01-29 15:58:51 +04:00
Alexey Sedunov 8a0867a9c3 Enable Type Hierarchy for Kotlin classes referenced by non-Kotlin code #KT-4414 Fixed 2014-01-29 15:58:51 +04:00
Alexey Sedunov 774e6e23e9 Support "Find usages" for declarations contained in the library
#KT-4452 Fixed
2014-01-29 15:58:49 +04:00
Andrey Breslav 6a29c38e5b Components across the project use StorageManager 2014-01-29 15:38:44 +04:00
Andrey Breslav d7e256e992 Making deferred types thread-safe 2014-01-29 15:38:44 +04:00
Andrey Breslav 707255eef6 Automatic toString() for LockBasedStorageManager 2014-01-29 15:34:50 +04:00
Nikolay Krasko f95017241b Update to Idea 13.0.2 2014-01-29 13:24:49 +04:00
Natalia Ukhorskaya e6e64c0098 Rename class 2014-01-28 18:21:48 +04:00
Natalia Ukhorskaya 1836c4c560 Add environment property for timeout in android tests 2014-01-28 18:21:47 +04:00
Natalia Ukhorskaya 72dc8ff41b Update Android version in tests (api 19) 2014-01-28 18:21:47 +04:00
Natalia Ukhorskaya 4dbcb256d3 Add JetDiagnosticTest with stdlib 2014-01-28 18:21:46 +04:00
Natalia Ukhorskaya 36810c5bbb Move IS_PURE for constant inside CompileTimeConstant 2014-01-28 18:21:45 +04:00
Natalia Ukhorskaya 3f429116e5 Add constructor parameter for compileTimeConstant (can be used in annotation) 2014-01-28 18:21:44 +04:00
Natalia Ukhorskaya fd3f852a93 Annotation parameter must be constant on vararg and array arguments 2014-01-28 18:21:43 +04:00
Natalia Ukhorskaya 97da2def08 Record COMPILE_TIME_INITIALIZER for all final variables 2014-01-28 18:21:42 +04:00
Natalia Ukhorskaya 2ddda59465 Add tests for concatenation of strings 2014-01-28 18:21:41 +04:00
Natalia Ukhorskaya cf5dc5b98b Fix EvaluateTests for strings 2014-01-28 18:21:41 +04:00
Natalia Ukhorskaya 73de3ae9ab Catch exceptions evaluating expression 2014-01-28 18:21:40 +04:00
Natalia Ukhorskaya e7d31b127d InTextDirectivesUtils: trim line with comment 2014-01-28 18:21:39 +04:00
Natalia Ukhorskaya 694db27da0 Make IntegerValueTypeConstant implements CompileTimeValue<Number>. getValue() method for it is now deprecated - getValue(expectedType) should be used 2014-01-28 18:21:38 +04:00
Natalia Ukhorskaya a71e062504 Insert proper default value when overriding property of type float, double, char 2014-01-28 18:21:37 +04:00
Erokhin Stanislav 84c76507f0 Fixed kotlin-plugin.jar artifact. 2014-01-28 16:01:59 +04:00
Erokhin Stanislav 07ce974f9b Fixed broken reference to jar file. 2014-01-28 16:00:16 +04:00
Evgeny Gerashchenko 15bba63dc1 Removed obsolete workaround for KT-1752. 2014-01-28 00:51:10 +04:00
Alexander Udalov a1fa230d82 Fix built-ins reference resolve tests
Built-in sources are contained now in two directories: compiled and
non-compiled (native). kotlin-plugin.jar has them both under 'jet/', but for
tests we manually specify where to look for the former, as it was for the
latter in LightClassUtil.java.

Simplify code in JetReferenceUtil to have almost the same meaning as in
JetPsiReference.multiResolve()
2014-01-27 20:36:08 +04:00
Alexander Udalov 11c023cfb2 Unmark source roots in 'builtins' and 'runtime.jvm'
This is needed because until we have modules and dependencies implemented in
our IDEA plugin, the whole project always is analyzed to highlight any file in
the project. This resulted in weird errors in different modules in Kotlin
project because two declarations were found for each built-in class: the one in
kotlin-runtime.jar and the one (totally unrelated) in the 'builtins' module
2014-01-27 20:36:08 +04:00
Alexander Udalov 5e99b77de7 Compile built-ins with the new compiler in build.xml
Instead of nested "withKotlin" element in javac2 which launches
bootstrap-compiler, we launch K2JVMCompiler from the newly built compiler
directly
2014-01-27 20:36:07 +04:00
Alexander Udalov 829756dcdb Compile built-ins in ForTestCompileRuntime
Remove references to "out/production/builtins", since those built-ins are
compiled by the bootstrap compiler, whereas we want to test built-ins compiled
by the new (working copy) compiler
2014-01-27 20:36:07 +04:00
Alexander Udalov e46c54f514 Serialize built-ins on 'ant dist'
Don't store binary data in the repository anymore. From now on any test on the
compiler requires that 'ant dist' was executed at least once since the last
update of the built-ins
2014-01-27 18:33:49 +04:00
Alexander Udalov 013d226b50 Update test data after introduction of compilable built-ins
'next()' in primitive iterators is now final, as it always was in module
'runtime' before
2014-01-27 18:33:49 +04:00
Alexander Udalov 5cae5c0338 Don't fail on annotated built-ins
Unit.VALUE is annotated right now (with "suppress"), so deserialization was
throwing an exception from AnnotationDeserializer.UNSUPPORTED. Return empty
collections of annotations instead; here we use the fact that it's the only
annotation in built-ins and its presence is useless to the type checker
2014-01-27 18:33:49 +04:00
Alexander Udalov 61ad9fba4a Remove duplicated sources of built-ins
BuiltInsSerializer now serializes built-ins found in two source roots:
core/builtins/native and core/builtins/src

Add return types to some declarations in core/builtins/src, because now that
BuiltInsSerializer processes them, it launches lazy resolution which can't
always deduce the return type
2014-01-27 18:33:48 +04:00
Alexander Udalov 3b4c341046 Generate Kotlin sources of progression iterators 2014-01-27 18:33:48 +04:00
Alexander Udalov dc66561ca5 Create module 'builtins', move 'runtime' -> 'runtime.jvm'
'builtins' will be used for platform-independent core built-in definitions,
'runtime.jvm' for things that should be present at runtime in order for Kotlin
code to execute correctly on JVM

ProgressionUtil goes to 'builtins' right now because progression iterators
depend on it, but should be rewritten to Kotlin later
2014-01-27 18:33:47 +04:00
Alexander Udalov ca565b9c19 Move toString() from primitive ranges to Range
The same can't be done with progressions, because its toString() checks if an
increment is greater than zero, but Progression.increment is of type Number,
which is not Comparable<Int>
2014-01-27 18:33:47 +04:00
Alexander Udalov d88f76f438 Rewrite Progression, Range, Unit to Kotlin
Delete useless (by now) AssertInvisibleInResolver
2014-01-27 18:33:47 +04:00
Alexander Udalov d66c5b2fbe Fix floating point number hash code in ranges
Don't make 0.0 and -0.0 have the same hash code: they are different in Java (in
the sense that "Double.valueOf(0.0).equals(Double.valueOf(-0.0))" is false),
and they are considered different already in DoubleRange.equals, which calls
Double.compare, which differentiates them
2014-01-27 18:33:46 +04:00
Alexander Udalov d427fcc187 Generate Kotlin sources of progressions
The check in DoubleProgression "if (increment == 0.0 || increment == -0.0)"
(and similar in FloatProgression) was simplified to "if (increment == 0.0)"
because 0.0 == -0.0 on JVM
2014-01-27 18:33:46 +04:00
Alexander Udalov 87a6ca5910 Generate Kotlin sources of ranges 2014-01-27 18:33:46 +04:00
Alexander Udalov f9f1065294 Rewrite built-in primitive iterators to Kotlin 2014-01-27 18:33:45 +04:00
Alexander Udalov 0e7ccec9d4 Rewrite progression iterators to Kotlin 2014-01-27 18:33:45 +04:00
Alexander Udalov 1c2e1cb82f Rewrite built-in annotations to Kotlin 2014-01-27 18:33:45 +04:00
Alexander Udalov bbdc132ccd Generate FunctionN and FunctionImplN classes in Kotlin 2014-01-27 18:33:45 +04:00
Alexander Udalov a59565bfa8 Rewrite PropertyMetadata to Kotlin 2014-01-27 18:33:44 +04:00
Erokhin Stanislav bcfc67a3a6 Drop author annotations from import dart-ast source code 2014-01-27 17:29:49 +04:00