Yan Zhulanow
e7703df0b6
Use a single AnnotatedCallableKind enum item for property
2015-08-31 15:33:14 +03:00
Yan Zhulanow
1b9dab47ec
Deserialize property and field annotations
2015-08-31 15:33:03 +03:00
Yan Zhulanow
08c678ef46
Deserialize receiver parameter annotations for extension functions
2015-08-31 15:32:55 +03:00
Denis Zharkov
4a3fbcc16e
Make project compilable after fixes about generic nullability
2015-08-28 18:50:26 +03:00
Ilya Gorbunov
63110dcdf8
Remove StdLibArraysTest and include collections/ArraysTest.kt into StdLibTestToJSTest smoke tests instead.
...
Move helper methods, so they are available in JS semantics tests.
2015-08-27 00:09:04 +03:00
Ilya Gorbunov
6f71e54268
In-place array sorting in JS.
2015-08-27 00:07:56 +03:00
Pavel V. Talanov
2ef5e03f27
Introduce TargetEnvironment and CompilerEnvironment
2015-08-19 21:18:27 +03:00
Zalim Bashorov
6c28dbd407
LookupLocation.NO_LOCATION_FROM_BACKEND -> NoLookupLocation.FROM_BACKEND
2015-08-18 12:34:19 +03:00
Zalim Bashorov
69e0f23db9
Classify Location.NO_LOCATION usages
2015-08-18 12:21:31 +03:00
Mikhail Glukhikh
90f94b47db
Deprecated enum syntax removed: JS plugin tests
2015-08-10 16:24:08 +03:00
Zalim Bashorov
0978e9f169
Minor: move LookupLocation to org.jetbrains.kotlin.incremental.components
2015-08-08 02:08:16 +03:00
Zalim Bashorov
2aa4c383cd
UsageLocation -> LookupLocation
2015-08-08 02:08:15 +03:00
Zalim Bashorov
96696c6846
UsageCollector -> LookupTracker
2015-08-08 02:08:14 +03:00
Alexander Udalov
f3857cbb89
Change overriddenDescriptors' type from Set to Collection
...
So that the easiest way of constructing a HashSet in the implementation will be
not the only possible way to implement getOverriddenDescriptors(). If there's
not too many overridden descriptors, an implementation may decide to return a
small list for example instead
2015-08-07 23:01:23 +03:00
Alexander Udalov
942ab9ef6d
Make 'hasDefaultValue' an extension on ValueParameterDescriptor
...
To avoid storing a Boolean and a boolean. It isn't called frequently enough to
justify this wasted space for each parameter of every function out there
2015-08-07 23:01:20 +03:00
Valentin Kipyatkov
d5f95cf126
Correct visibility for non-public SAM-adapters
2015-08-04 18:05:56 +03:00
Mikhail Glukhikh
61fbe0d1e8
Refactoring of repeatable on retention SOURCE check (correct additional checker usage)
2015-08-03 19:43:24 +03:00
Mikhail Glukhikh
4bd48c4796
Regular modifier checker implemented (initial version). A set of tests fixed accordingly.
...
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT.
A set of modifier diagnostics is not in use now (but not deleted yet).
2015-08-03 19:41:50 +03:00
Sergey Mashkov
0e25a5ea82
JS: arrayToString should use toString() instead of direct join to handle nulls properly
...
#KT-8663 Fixed
2015-07-31 14:28:30 +03:00
Sergey Mashkov
2826f193dd
AbstractCollection should use Kotlin.toString
...
#KT-8662 Fixed
2015-07-31 14:28:30 +03:00
Mikhail Glukhikh
219ffa4fb3
Dead code removed
2015-07-28 17:13:34 +03:00
Mikhail Glukhikh
d6406d8d4a
Annotation repetition checking with a pair of tests, some old tests changes
2015-07-28 17:13:32 +03:00
Pavel V. Talanov
2b9fc5268e
Inject ConstantExpressionEvaluator into JsCallChecker
...
Do not pass expected type into evaluateExpression
2015-07-24 13:47:51 +03:00
Ilya Gorbunov
877cb72ba1
Array.copyOfRange: rename from, to to fromIndex, toIndex
2015-07-24 04:35:21 +03:00
Ilya Gorbunov
12e3542bce
Provide toTypedArray method for primitive arrays.
2015-07-24 04:33:55 +03:00
Ilya Gorbunov
b7829d8471
JS: Make js Error to be mapped to kotlin.Throwable, inherit Exception and Error from Throwable.
2015-07-24 04:32:03 +03:00
Ilya Gorbunov
f604eef2fe
Undeprecate find(predicate) and generate it for all collection-like types. Provide findLast(predicate).
...
Drop deprecated method findNot and extension properties first, last, head, tail
#KT-5185 Fixed
2015-07-24 04:28:46 +03:00
Pavel V. Talanov
8cc9739f72
Refactor: Pass TargetPlatform instead of configurator, hide DynamicTypesSettings inside configurator
2015-07-23 16:15:38 +03:00
Pavel V. Talanov
84b8ed00c5
Refactor: Move TargetPlatform to frontend, make it expose platform dependant resolve services
...
AdditionalCheckerProvider -> PlatformConfigurator which operates directly on container
2015-07-23 16:15:35 +03:00
Pavel V. Talanov
3227ae5577
Inject non-context dependent CallCheckers instead of getting them from context
2015-07-23 16:15:28 +03:00
Zalim Bashorov
679d5fe496
Introduce UsageCollector
2015-07-21 22:27:27 +03:00
Zalim Bashorov
41449c107e
Location.NOWHERE -> UsageLocation.NO_LOCATION
2015-07-21 22:27:25 +03:00
Zalim Bashorov
0f92036353
Add location parameter to JetScope::getFunctions
2015-07-21 22:27:25 +03:00
Pavel V. Talanov
add8387141
Fix some problems with jsCode function
...
1. Fix a bug in frontend when passing non-String constant led to exception
2. Fix a bug in backend when passing non-JetStringTeplate string constant led to exception
3. Avoid recomputing constant argument in backend
2015-07-21 20:52:42 +03:00
Mikhail Glukhikh
94a00540be
Targeting / retention for a set of standard annotations, some inapplicable annotation checks replaced with target check, some fixed tests
2015-07-21 15:36:53 +03:00
Alexander Udalov
b5763e311f
Minor, unworkaround the fixed issue
2015-07-21 13:32:26 +03:00
Dmitry Jemerov
708513ce4c
optimize imports
2015-07-20 18:32:13 +02:00
Dmitry Jemerov
3718a7dd44
code cleanup for JS modules
2015-07-20 18:32:05 +02:00
Pavel V. Talanov
aae8ccfd57
Refactor: AnnotationSerializer does not depend on bultins
2015-07-17 19:21:24 +03:00
Ilya Gorbunov
25e5172591
Rewrite test for overloading plus not to depend on stdlib classes and methods.
2015-07-17 10:54:03 +03:00
Ilya Gorbunov
d89af24d6c
Variance of arrays sorted out.
...
Use concat for array + 1 in JS.
2015-07-17 10:51:22 +03:00
Ilya Gorbunov
7866184eb6
Array.plus — different implementations for JVM and JS.
...
Array.copyOf, copyOfRange available in JS.
2015-07-17 10:51:09 +03:00
Pavel V. Talanov
c313887641
Split CompileTimeConstant into two entities
...
1. ConstantValue
* just holds some value and its type
* implementations for concrete constants
2. CompileTimeConstant
* is only produced by ConstantExpressionEvaluator
* has additional flags (canBeUsedInAnnotation etc)
* has two implementations TypedCompileTimeConstant containing a constant value
and IntegerValueConstant which does not have exact type
* can be converted to ConstantValue
Adjustt usages to use ConstantValue if flags are not needed
Add tests for some uncovered cases
2015-07-16 02:28:05 +03:00
Pavel V. Talanov
5dc5d77e60
Inject builtins in constants
2015-07-15 21:09:52 +03:00
Pavel V. Talanov
0369de86c7
Convert compile constant classes to kotlin: j2k
2015-07-15 20:56:41 +03:00
Mikhail Glukhikh
5126f01452
kotlin.annotation package with annotations "target" and "annotation" and enums AnnotationTarget and AnnotationRetention introduced.
...
Targets for existing built-in annotations.
Access to annotation package from packageFragmentProvider.
Documentation for all classes in the package.
2015-07-14 16:24:45 +03:00
Zalim Bashorov
f7ccb3819e
JS: don't pollute object with $metadata$
...
#KT-8126 Fixed
2015-07-13 15:52:57 +03:00
Alexander Udalov
30794060a9
Simplify property hierarchy in reflection
...
Leave only 3*2 = 6 classes: KProperty0, KProperty1, KProperty2 and their
mutable analogs, depending on the number of receivers a property takes
2015-07-10 20:10:09 +03:00
Alexander Udalov
c3b97e0668
Simplify function hierarchy in reflection
...
Get rid of all classes except kotlin.reflect.KFunction, which will be used to
represent all kinds of simple functions.
Lots of changes to test data are related to the fact that KFunction is not an
extension function (as opposed to KMemberFunction and KExtensionFunction who
were) and so a member or an extension function reference now requires all
arguments be passed to it in the parentheses, including receivers. This is
probably temporary until we support calling any function both as a free
function and as an extension. In JS, functions and extension functions are not
interchangeable, so tests on this behavior are removed until this is supported
2015-07-10 20:10:08 +03:00
Svetlana Isakova
a714de783f
Converted CallResolverUtil to kotlin
2015-07-10 15:05:08 +03:00