Commit Graph

1180 Commits

Author SHA1 Message Date
Zalim Bashorov a2584dc6d7 JS backend: added entrySet to HashMap implementations and fixed iteration over maps. 2014-06-20 16:42:43 +04:00
Zalim Bashorov 516af6c908 JS backend: added expected receiver type for intrinsics. 2014-06-20 16:42:43 +04:00
Evgeny Gerashchenko b76a9e8e27 Merge remote-tracking branch 'origin/master' into incremental 2014-06-19 15:49:33 +04:00
Evgeny Gerashchenko aa41ae09ed Merge remote-tracking branch 'origin/master' into incremental 2014-06-19 11:43:59 +04:00
Zalim Bashorov 865880f196 Minor in JS backend: added missed test case -- when inside when w/o braces. 2014-06-18 23:18:23 +04:00
Michael Nedzelsky 209315baad JS backend: fix translation when statement -- now WhenTranslator returns JsBlock instead of hackish adding statements to context block.
It fixed the compiler crashing when translating `for`/`when`/`if` with `when` statement(KT-5234) and KT-5058.

 #KT-5234 fixed
 #EA-57346 fixed
 #KT-5058 fixed
2014-06-18 21:20:28 +04:00
Alexander Udalov 751f062f23 Add *Range.isEmpty(), *Progression.isEmpty() 2014-06-18 20:22:24 +04:00
Pavel V. Talanov 2673510e8b Minor: do not access static method of ScriptHeaderResolver through instance
Clean up after 024ed5a236
2014-06-17 18:19:00 +04:00
Pavel V. Talanov 024ed5a236 Drop JetTypeName and related code 2014-06-11 21:22:28 +04:00
Ilya Ryzhenkov 9ec78a437d Throw NoSuchElementException in appropriate cases #KT-4998 Fixed 2014-06-10 11:11:00 +04:00
Alexander Udalov d78d4bc44c Disallow extension properties with backing fields
#KT-1682 Fixed
2014-05-29 21:24:05 +04:00
Pavel V. Talanov 9aa5681d80 Introduce JetParameter#hasValOrVarNode() and use it instead of getValOrVarNode() 2014-05-21 15:39:35 +04:00
Pavel V. Talanov 66aae37bc6 Refactor: add hasBody() to JetDeclarationWithBody interface
Use it where appropriate
2014-05-21 15:38:09 +04:00
Svetlana Isakova f109cfc303 Replaced PrefixExpression with LabeledExpression
where labeled expression is used

Added 'visitLabeledExpression'
2014-05-20 15:07:02 +04:00
Svetlana Isakova 07c0d87a8f Rename
JetLabelQualifiedExpression -> JetExpressionWithLabel
JetLabelQualifiedInstanceExpression -> JetInstanceExpressionWithLabel
2014-05-20 15:07:00 +04:00
Svetlana Isakova 9b70ab7d16 Removed AT, ATAT tokens
Checks 'in LABELS token set' replaced with LABEL_IDENTIFIER equality
2014-05-20 15:07:00 +04:00
Alexander Udalov 9503056dd5 Add default import "kotlin.reflect" 2014-05-19 19:50:57 +04:00
Andrey Breslav aa20af3cf3 Minor. Unused code removed
Follow-up for https://github.com/JetBrains/kotlin/commit/db00500404e4862548ed5eb49f7289e1e8eba99c#commitcomment-6242775
2014-05-12 19:02:17 +04:00
Zalim Bashorov 399c9c1175 JS backend: fixed compiler crash when use compareTo in infix call.
#EA-54661 fixed
2014-05-08 19:57:28 +04:00
Zalim Bashorov a578fc6762 JS backend: fixed infix calls.
#KT-3998   fixed
#EA-56241 fixed
2014-05-08 19:57:28 +04:00
Zalim Bashorov 898275e658 JS backend: added tests for infix calls.
#KT-3998   in progress
 #EA-56241 in progress
2014-05-08 19:57:28 +04:00
Zalim Bashorov 235b03c407 Minor in JS backend: added useful message to assert(for EA-48931) and drop unnecessary code. 2014-05-08 19:57:27 +04:00
Alexander Udalov c7277250d9 Use ReflectionTypes instead of KotlinBuiltIns in type checker 2014-05-08 16:45:15 +04:00
Zalim Bashorov d02e4bd1ec Minor in JS backend: added test for the overriding in data class. 2014-05-06 15:45:28 +04:00
Peter Rybin ab81d2e261 Supporting data class for JS backend 2014-05-06 15:45:28 +04:00
Alexander Udalov 42d167d17e Add missing copyrights across the project 2014-05-05 20:43:35 +04:00
Andrey Breslav db00500404 Unused code removed 2014-04-30 16:30:17 +04:00
Svetlana Isakova 703e4d7c4e Refactoring: separated VariableAsFunctionResolvedCall interface and implementation 2014-04-30 13:34:32 +04:00
Andrey Breslav bac82935c3 Minor. Unused method removed 2014-04-29 19:12:56 +04:00
Ilya Ryzhenkov d06b9abd4f Add platform independent part of Range tests to JS stdlib test run 2014-04-24 12:59:43 +04:00
Ilya Ryzhenkov ee8a7d6825 Include Ranges extension functions and Numbers NaN checks for JS 2014-04-24 12:59:43 +04:00
Ilya Ryzhenkov aee199b5b0 Add reverse() function to js version of StringBuilder 2014-04-24 12:59:40 +04:00
Ilya Ryzhenkov 962a738f1e Fix js RangeIterator and NumberProgression. 2014-04-24 12:59:40 +04:00
Andrey Breslav 4839f7a230 Make lazy analysis accessible to clients 2014-04-18 21:28:22 +04:00
Andrey Breslav 7d688e5bec LazyTopDownAnalyzer extracted as a separate component 2014-04-18 21:28:21 +04:00
Andrey Breslav c57243035e Factory method introduced for TopDownAnalysisParameters 2014-04-18 21:28:21 +04:00
Alexander Udalov 34e7584aec Move some utilities from OverridingUtil to OverrideResolver
OverridingUtil will be present at runtime and we should strive to minimize the
size of our runtime classes

Also add a comment to getOverriddenDescriptors()
2014-04-17 19:51:30 +04:00
Zalim Bashorov 23922c1387 Fixed line separators for fix maven build on Windows. 2014-04-16 20:33:42 +04:00
Zalim Bashorov 336ff43b26 JS backend: - test both versions of Set(Complex and Primitive)
- added size in PrimitiveSet
 - fixed contains in PrimitiveSet

 #KT-4796 fixed
2014-04-02 17:50:40 +04:00
Andrey Breslav b8119a57ab Script parameters supported in LAZY mode 2014-04-01 12:36:51 +04:00
Andrey Breslav 77261330b9 Only use script parameters from definition
Passing parameters of a _single_ script into TopDownAnalyser makes no sense
2014-04-01 12:25:33 +04:00
Andrey Breslav 6ac2e2da8a Support scripts in LAZY mode 2014-04-01 12:25:32 +04:00
Andrey Breslav 76e286aacc ScriptParameterResolver extracted 2014-04-01 12:25:31 +04:00
Andrey Breslav 9a1f8b9cc6 Trace is not injected into ScriptBodyResolver any more 2014-04-01 12:25:31 +04:00
Zalim Bashorov fd165f055f Minor in JS backend:
- use constants from Namer in JsAstUtils#createPackage;
  - dropped extra JsInvoke node when create IIF;
  - create new JsName for Kotlin object in IIF scope.
2014-03-31 16:07:55 +04:00
Zalim Bashorov 0a546ebb40 Merge pull request #428 from alextkachman/kotlin-as-var
added Kotlin as parameter for module wrapping function
2014-03-31 15:58:18 +04:00
Zalim Bashorov 0d61fbb8f7 Merge pull request #427 from alextkachman/master
Avoid unnecessary null checks in'!!' and 'as'
2014-03-31 15:57:24 +04:00
Nikolay Krasko b779141845 Refactoring: move methods about override to OverridingUtil 2014-03-31 14:09:50 +04:00
Alex Tkachman 82a25c8b07 added Kotlin as parameter for module wrapping function. this is for better obfuscation 2014-03-31 10:25:02 +03:00
Alex Tkachman 371dfc6ec4 avoid unnecessary null checks when receiver of '!!' or 'as' operator is not nullable 2014-03-29 21:28:00 +03:00