Zalim Bashorov
b8559744b0
Js backend: minor fix in test closureInNestedFunctions
2014-02-03 13:31:23 +04:00
Zalim Bashorov
529d7374b8
Stdlib: enabled test List::withIndices.
2014-02-03 13:31:23 +04:00
Zalim Bashorov
edb930fd76
JS stdlib: added missed tests for Set and fixed HashSet implementations. Implemented Set::iterator, AbstractCollection::removeAll, AbstractCollection::retainAll, AbstractCollection::containsAll.
...
#KT-4390 fixed
2014-02-03 13:31:23 +04:00
Zalim Bashorov
ceab4347ec
JS stdlib: added missed tests for Map and fix HashMap implementation.
2014-02-03 13:31:23 +04:00
Zalim Bashorov
15a727c6ed
JS backend: dropped unnecessary tests which checked implementation details of kotlin js runtime.
2014-02-03 13:31:23 +04:00
Zalim Bashorov
a37f5f57e6
JS backend: fix tests after mangling.
2014-02-03 13:31:23 +04:00
Zalim Bashorov
0374ce96b7
JS backend: introduce the stable mangling for functions which belong to the public API or not final.
2014-02-03 13:31:22 +04:00
Zalim Bashorov
0af1ae360f
JS backend: use name of containing declaration when naming local and literal functions.
2014-02-03 13:31:22 +04:00
Zalim Bashorov
1e9defaad3
JS backend: fixed getting qualified reference as JsNameRef for PackageFragmentDescriptor.
2014-02-03 13:31:22 +04:00
Zalim Bashorov
fa552859be
JS backend: introduce constants for default test package(foo) and default test function(box).
2014-02-03 13:31:22 +04:00
Zalim Bashorov
5d94c7e83c
JS backend: fix closure this in extension (literal) function.
2014-02-03 13:31:22 +04:00
Zalim Bashorov
ca4d347658
JS backend: minor -- move test for KT-2388 to ClosureTest.
2014-02-03 13:31:22 +04:00
Zalim Bashorov
c77a1b0fb9
JS backend: fix recursive closure local function by inner function or lambda.
...
#KT-4257 fixed
2014-02-03 13:31:21 +04:00
Zalim Bashorov
1f17b55c27
JS backend: minor refactoring -- make LiteralFunctionTranslator stateful.
2014-02-03 13:31:21 +04:00
Zalim Bashorov
25c43e7bfc
JS backend: refactoring:
...
- make static LiteralFunctionTranslator#translate;
- use TranslationContext#define instead of direct use DefinitionPlace.
2014-02-03 13:31:21 +04:00
Zalim Bashorov
9e97f9615b
JS backend: Minor changes -- added @NotNull to some methods of InnerDeclarationTranslator.
2014-02-03 13:31:21 +04:00
Zalim Bashorov
948827aa06
JS backend: refactoring LiteralFunctionTranslator -- make possible to store translation state and create an instance for each translation instead of one instance for all translations.
...
Introduced DefinitionPlace class and make creating a new definition place more safety.
2014-02-03 13:31:21 +04:00
Zalim Bashorov
1c3c2b2f77
JS backend: minor refactoring in LiteralFunctionTranslator
2014-02-03 13:31:21 +04:00
Zalim Bashorov
24c9d802c2
JS backend: made some asserts in AliasingContext and InnerDeclarationTranslator more informative.
2014-02-03 13:31:20 +04:00
Andrey Breslav
a993dfa177
Merge pull request #350 from voddan/patch-4
...
A small confusing typo
2014-02-02 18:22:26 -08:00
Daniil
c60523c0c6
A small confusing typo
...
Here was an out-of-date error message. It could confuse developers about the function literal syntax.
"To specify it explicitly use the {(p : Type) => ...} notation"
2014-02-02 17:25:10 +03:00
Alexander Udalov
7cf587c493
Delete outdated j2k.ipr and Makefile from j2k
2014-01-31 16:46:18 +04:00
Alexander Udalov
1107ae9a11
Revert hack for annotations on built-ins
...
This reverts commit 5cae5c0338
2014-01-31 16:46:18 +04:00
Alexander Udalov
320a583de8
Check that lazy resolve works correctly on built-ins
...
This test is needed because BuiltInsSerializer uses lazy resolve to load and
serialize built-ins. We need to make sure that lazy resolve works exactly like
deserialization
2014-01-31 16:46:18 +04:00
Alexander Udalov
e28819b42e
Revert "Using default renderer in LoadBuiltinsTest."
...
This reverts commit 1d21ebf882 .
Conflicts:
compiler/testData/builtin-classes.txt
core/descriptors/src/org/jetbrains/jet/renderer/DescriptorRendererImpl.java
Reverting a part of this (related to the field 'prettyFunctionTypes') because
will need to add a test that deserialized built-ins (obtained by
KotlinBuiltIns.getInstance()) are consistent with lazy resolved built-ins. This
test would break because while DescriptorRenderer renders pretty function types
it compares descriptors to the ones from KotlinBuiltIns, but in case of lazy
resolve descriptors created for built-ins would be different from
KotlinBuiltIns, so renderer wouldn't correctly render a function type
2014-01-31 16:46:18 +04:00
Alexander Udalov
c39338798b
Delete outdated hack in Unit
2014-01-31 16:46:18 +04:00
Alexander Udalov
1538191c66
Fix variance in Progression and Range
2014-01-31 16:46:17 +04:00
Alexander Udalov
4a0bfa5434
Remove outdated hack in DeclarationResolver
2014-01-31 16:46:17 +04:00
Alexander Udalov
7edc4b0ff7
Add GenerateBuiltInsTest
...
Tests that generated sources of built-ins (Functions, Ranges, etc.) are
up-to-date
2014-01-31 16:46:17 +04:00
Alexander Udalov
71d956a568
Refactor built-ins source generators
2014-01-31 16:46:17 +04:00
Alexander Udalov
1f15e57918
Change built-ins generators package from 'runtime' to 'builtins'
2014-01-31 16:46:17 +04:00
Alexander Udalov
1c9d614137
Add copyright and auto-generation notice to built-in sources
2014-01-31 16:46:17 +04:00
Alexander Udalov
877d9f2220
Update year to 2014 in generated files
2014-01-31 16:46:16 +04:00
Alexander Udalov
75ab8ac5ec
Don't try to generate optimized "in" for LongRange
...
#KT-4097 Fixed
2014-01-31 16:46:14 +04:00
Alexander Udalov
9b01f01e17
Refactor codegen of "in" expression
...
Use generateIn() twice, for binary expressions and for when clauses
2014-01-31 16:46:14 +04:00
Nikolay Krasko
1832973491
Assertion messages added
2014-01-31 14:52:15 +04:00
Nikolay Krasko
eb2f3eee4d
Refactoring: remove warning
2014-01-31 14:52:15 +04:00
Nikolay Krasko
2bcedf45df
Refactoring: remove unused method
2014-01-31 14:52:14 +04:00
Nikolay Krasko
9a6ac60a5f
Minor: formatting and warnings
2014-01-31 14:52:14 +04:00
Nikolay Krasko
7546a6dc41
Suppressing warnings + update copyright date
2014-01-31 14:52:13 +04:00
Andrey Breslav
d3d2209452
Rename: CancelableResolveSession -> ResolveSessionForBodies
2014-01-30 21:03:53 +04:00
Andrey Breslav
7a6657d2e8
Resolve sessions use exception tracking from StorageManager
2014-01-30 21:03:53 +04:00
Andrey Breslav
0f4994f8b0
Created LockBasedStorageManagerWithExceptionTracking
2014-01-30 21:03:53 +04:00
Andrey Breslav
26ecf7666d
Wrap storage manager inside resolve session
2014-01-30 21:03:53 +04:00
Andrey Breslav
210827b1d5
ExceptionUtils rewritten in Kotlin
2014-01-30 21:03:53 +04:00
Andrey Breslav
d0787795b6
StorageManager supports centralized exception handling
2014-01-30 21:03:52 +04:00
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