Commit Graph

1180 Commits

Author SHA1 Message Date
Zalim Bashorov 38d1142c39 Minor change: reformat code in testData files. 2014-03-11 20:03:59 +04:00
Zalim Bashorov 7374d3ab76 Minor changes: drop the copyright comment from testData files. 2014-03-11 20:03:58 +04:00
Zalim Bashorov f5b1b4252d JS backend: use constants for default test package(foo) and default test function(box). 2014-03-11 20:03:58 +04:00
Zalim Bashorov 33360c2528 Dropped some TODOs
#KT-2564 Obsolete. Looks like, it's fixed in dcddd04.
2014-03-11 20:03:58 +04:00
Steven Allen 7e1e697a5b Avoid throwing unchecked exceptions
Make `ResolvedCall.getValueArgumentsByIndex` return null instead of
throwing an InvalidStateException when resolving invalid arguments.
Invalid arguments are a user error (the user specified the invalid
arguments in their code), not a program error.
2014-03-10 10:46:29 -04:00
Natalia Ukhorskaya d9d045cbb2 Fix line separators for windows in tests 2014-03-07 18:05:12 +04:00
Ladislav Thon 36bc7580aa fix main function detection to rely on actually resolved types 2014-03-04 19:18:14 +04:00
Alexander Udalov d5e9cadccf Delete default "import jet.*" from JS analyzer 2014-03-04 18:19:43 +04:00
Alexander Udalov 154f2c0a13 JS: update mangled names after moving built-ins from "jet" to "kotlin" 2014-03-02 19:55:27 +04:00
Alexander Udalov 11cc7f46f4 Remove "Iterator.iterator()" intrinsic, add stdlib function 2014-03-02 19:55:24 +04:00
Alexander Udalov 6b0fce8cd5 Unsorted replacements "jet" -> "kotlin"
#KT-2896 Fixed
2014-03-02 19:55:15 +04:00
Alexander Udalov ac71911720 Get rid of "jet" in comments, assertions, READMEs, etc.
Replace with "kotlin"

 #KT-2896 Fixed
2014-03-02 19:55:11 +04:00
Alexander Udalov 410b7985e1 Replace "jet" with KotlinBuiltIns.FQ_NAME
#KT-2896 Fixed
2014-03-02 19:54:59 +04:00
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00
Zalim Bashorov 6127d53eac JS backend: fixed an equals behavior after it became a member of jet.Any. 2014-03-02 19:54:48 +04:00
Alexander Udalov ec30d52978 Delete Hashable, pull up its members to Any
Extensions on nullable types remain in Library.kt

 #KT-1741 Obsolete
 #KT-2805 Obsolete
 #KT-1365 Fixed
 #KT-4517 In Progress
2014-03-02 19:54:08 +04:00
Andrey Breslav da83154454 Nullability fixed for a JS DOM stub 2014-02-25 15:12:20 +04:00
Andrey Breslav b999174432 Do not pass BindingTrace into TopDownAnalyzer 2014-02-24 17:27:06 +04:00
Andrey Breslav 23527c927b Unused parameter removed 2014-02-24 17:27:01 +04:00
Andrey Breslav 50a160afb1 Do not pass TopDownAnalysisParameters to injectors 2014-02-24 17:26:04 +04:00
Andrey Breslav c4dbfbf1a9 Do not inject TopDownAnalysisParameters into ScriptHeaderResolver 2014-02-24 17:26:03 +04:00
Andrey Breslav 153d8c2a52 Do not inject TopDownAnalysisParameters into OverrideResolver 2014-02-24 17:26:02 +04:00
Andrey Breslav d4a6374d76 Do not inject TopDownAnalysisParameters into ControlFlowAnalyzer 2014-02-24 17:26:02 +04:00
Andrey Breslav 42c7c54ea0 Do not inject TopDownAnalysisParameters into BodyResolver 2014-02-24 17:26:02 +04:00
Andrey Breslav fb0713d1c2 Do not inject TopDownAnalysisParameters into TopDownAnalyzer 2014-02-24 16:40:05 +04:00
Andrey Breslav 4e0df6fd80 Do not create TopDownAnalysisContext in injectors 2014-02-24 15:52:57 +04:00
Andrey Breslav f5d2e1f7aa Do not inject TopDownAnalysisContext into TypeHierarchyResolver 2014-02-24 15:52:56 +04:00
Andrey Breslav 8b88cc8aec Do not inject TopDownAnalysisContext into OverrideResolver 2014-02-24 15:52:55 +04:00
Andrey Breslav 1abaa9ff20 Do not inject TopDownAnalysisContext into OverloadResolver 2014-02-24 15:52:55 +04:00
Andrey Breslav 25e533a42d Do not inject TopDownAnalysisContext into ScriptHeaderResolver 2014-02-24 15:52:55 +04:00
Andrey Breslav 7e43f2e61e Do not inject TopDownAnalysisContext into ImportsResolver 2014-02-24 15:52:54 +04:00
Andrey Breslav 72a62626df Do not inject TopDownAnalysisContext into DeclarationResolver 2014-02-24 15:52:54 +04:00
Andrey Breslav e3744cff7c Do not inject TopDownAnalysisContext into ScriptBodyResolver 2014-02-24 15:52:54 +04:00
Andrey Breslav 5976a91998 Do not inject TopDownAnalysisContext into TopDownAnalyzer 2014-02-24 15:52:53 +04:00
Andrey Breslav f32d8b1d06 Do not inject BodiesResolveContext into BodyResolver 2014-02-24 15:52:53 +04:00
Andrey Breslav 5b67cf67eb Usages of expressionTypingServices from ExpressionTypingContext are replaced with injection
The basic principle behind this change is that no context object should store components.
Components should be injected instead, and contexts only carry parameters around.

Particular changes:
- resolveCallWithGivenName() and resolveBinaryCall() moved to CallResolver
- ForLoopConventionsChecker introduced to confine checking conventions for Iterator and Iterable
- ExpressionTypingComponents introduced to deliver necessary components to ExpressionTypingVisitor's
- Some static methods became non-static to get access to injected components
- ExpressionTypingUtils and ControlStructureTypingUtils became components (got state injected) to avoid passing parameters around
2014-02-24 15:52:52 +04:00
Andrey Breslav 5478204e2d PlatformToKotlinClassMap can be obtained from the module 2014-02-18 19:51:49 +04:00
Pavel V. Talanov 4c57aa9f23 Generate Injectors: minor, remove redundant GenerateInjectors class 2014-02-14 16:47:23 +04:00
Pavel V. Talanov f8a8bbe9b0 Generate Injectors: add ability to specify that a field is a context
Context field's properties can injected into other components
Use it in GenerateInjectors.kt
2014-02-14 16:47:22 +04:00
Pavel V. Talanov 6c77ea91c5 Generate Injectors: simplify and remove redundancy 2014-02-14 16:47:21 +04:00
Svetlana Isakova 9ed57a5767 removed AutoCastReceiver
check subtype for receiver by AutoCastUtils.isSubTypeByAutoCast directly
 #KT-4403 Fixed
 #KT-4415 Fixed
2014-02-12 12:48:10 +04:00
Zalim Bashorov 37154e42d2 JS backend: fixed smartcast when a call have implicit this or receiver. 2014-02-11 13:50:16 +04:00
Nikolay Krasko 1d884912a0 Minor: call overloaded constructor 2014-02-06 15:52:04 +04:00
Erokhin Stanislav a7eb143cff JS backend: Fix aliasing in CallTranslator for cases noReceiver & receiverObject & add hack for thisObject 2014-02-06 14:01:11 +04:00
Erokhin Stanislav 5d4cb1e065 JS backend: Fix safe call side effects 2014-02-06 14:01:11 +04:00
Erokhin Stanislav 7f8c17d6af JS backend: drop CallType 2014-02-06 14:01:11 +04:00
Erokhin Stanislav e9b1ae7cb1 JS backend: Move CallTranslator to new package & create CallTranslator object 2014-02-06 14:01:11 +04:00
Erokhin Stanislav 47ed126aa4 JS backend: Move CallInfo extension to separate file. 2014-02-06 14:01:11 +04:00
Erokhin Stanislav a4436806f7 JS backend: cosmetic changes & class for cases remake to object 2014-02-06 14:01:11 +04:00
Erokhin Stanislav 97955776c4 JS backend: simplify DelegatePropertyAccessIntrinsic 2014-02-06 14:01:11 +04:00