Commit Graph

576 Commits

Author SHA1 Message Date
Andrey Breslav 784bf31a3e Store resolved calls for loop range's iterator(), next(), hasNext()
+ code duplication removed from expression typing visitor
2012-08-24 19:49:30 +04:00
James Strachan cbde1e1e46 added a little test case to see if using $ variables works in kotlin for JS generation (e.g. for angularjs support) 2012-08-22 16:17:40 +01:00
Pavel V. Talanov 0a044b18d5 Remove VariableDescriptor#isObjectDeclaration and usages.
Replace with BindingContext trace slice OBJECT_DECLARATION_CLASS.
Remove corresponding field from constructor.
Introduce hack in JavaDescriptorResolver which creates dummy class descriptors for enum entry objects.
2012-08-22 18:06:37 +04:00
Svetlana Isakova f817eba7aa removed check for 'hasNext' val in frontend 2012-08-20 16:05:16 +04:00
Pavel V. Talanov 52a933e179 Iterating over iterator. 2012-08-16 20:24:57 +04:00
Pavel V. Talanov e184bf7a8f Remove Iterator#get_hasNext since val hasNext convention is dropped. 2012-08-16 20:24:37 +04:00
Svetlana Isakova ec556e2abc val hasNext changed to fun in test 2012-08-16 18:39:24 +04:00
Svetlana Isakova 293452e375 removed not further generated file
from standard library
2012-08-16 18:39:24 +04:00
Svetlana Isakova f3146a9697 hasNext changes to fun in js tests 2012-08-16 18:39:24 +04:00
Svetlana Isakova a5aaa3dadc remove java's Iterator,Iterable
from java script mirror to java standard library
2012-08-16 18:39:24 +04:00
Svetlana Isakova 1b28604268 java Iterable/Iterator replaced to jet ones
in completion, js tests
2012-08-16 18:39:23 +04:00
Pavel V. Talanov ced3209170 Merge remote-tracking branch 'origin/master' 2012-08-16 13:21:49 +04:00
Andrey Breslav 00305ba920 Fixing interdependency between delegation and fake overrides
Main changes sit in OverrideResolver::generateOverridesAndDelegationInAClass()

Now fake overrides AND delegation are generated for supertypes before any processing is done for subclasses.
2012-08-15 16:15:04 +04:00
Pavel V. Talanov 758254a5b4 Attempt to fix mvn build. 2012-08-14 18:48:26 +04:00
Pavel V. Talanov b0856cb364 Do not translate library (marked by annotation) declarations. 2012-08-14 18:48:24 +04:00
Nikolay Krasko cf6787b798 Inject context for body resolve 2012-08-14 14:15:10 +04:00
Pavel V. Talanov 954c1ee29f Fix test file name. 2012-08-14 14:01:27 +04:00
Pavel V. Talanov 6845a8fbc0 Replace symbols preventing compilation on build server. 2012-08-14 13:10:28 +04:00
Pavel V. Talanov 298f1da9dd Fix logger in LibrarySourcesConfig. 2012-08-14 13:09:49 +04:00
Pavel V. Talanov 362a75bb9c Fix import after rebase. 2012-08-14 13:08:47 +04:00
Pavel V. Talanov 9dce8a9f33 Merge remote-tracking branch 'origin/master'
Conflicts:
	js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/factories/RangesFIF.java
	js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/patterns/NamePredicate.java
2012-08-14 13:04:38 +04:00
Pavel V. Talanov 71adfb57db Drop libraryDirectories CLI option. 2012-08-14 12:44:52 +04:00
Pavel V. Talanov 4320a5fb61 Don't generate code for javautilCode.kt. 2012-08-14 12:44:51 +04:00
Pavel V. Talanov d633722cdb Remove localFunction test since it was not really supported. 2012-08-14 12:44:50 +04:00
Pavel V. Talanov 554b43df68 Use jshint instead instead of jslint in js.tests.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:48 +04:00
Pavel V. Talanov 53994f15d3 Utilities in JsDescriptorUtils.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:47 +04:00
Pavel V. Talanov 22c0bf656d Use isExtension utility in JsDescriptorUtils.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:46 +04:00
Pavel V. Talanov f85da9154f Change translation logic in PropertyTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:45 +04:00
Pavel V. Talanov 310d926747 Test for KT-2388: if function passed as setTimeout callback, all "this" references will be point to HTML window instead of real object.
#KT-2388 fixed
2012-08-14 12:44:44 +04:00
Pavel V. Talanov 8ec0f8af3f IndentifierCashTest#testUseVariableOfNameOfFunction uncommented. 2012-08-14 12:44:42 +04:00
Pavel V. Talanov 235aed0131 Tests: use JsTestUtils#successOnEcma5 instead of EnumSet#of.
Uncomment test which succeded on ecma5.
2012-08-14 12:44:41 +04:00
Pavel V. Talanov de3ebf9baa Tests:ObjectInheritingFromATrait test enhanced, ObjectInheritingFromClass test added. 2012-08-14 12:44:40 +04:00
Pavel V. Talanov 6febebc7b3 Tests: drop EcmaVersions usage, add test inheritFromJetIterator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:39 +04:00
Pavel V. Talanov 0a002bcc53 Test for calling functions in initializers.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:38 +04:00
Pavel V. Talanov d734cbb5b5 Enhanced test data: KT-1361-1, toArray.kt, objectDeclaration.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:37 +04:00
Pavel V. Talanov c48e1d6319 Tests: added package declaration in hexademicalConstant, enclosingThis tests. 2012-08-14 12:44:36 +04:00
Pavel V. Talanov d0d08b16be Changes to js_libs.js:
Extract maps into separate file.
Straight forward solution for "JS_TESTS" hack.
Numerous optimizations.
2012-08-14 12:44:35 +04:00
Pavel V. Talanov f54c5fad29 Drop unused stuff in *Utils.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:32 +04:00
Pavel V. Talanov 40ea266a8a Use DEFAULT_ECMA_VERSIONS constant in tests instead of EcmaVersions#all(). Some code style issues as well.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:29 +04:00
Pavel V. Talanov a7c6776876 Code style issues: use iterable instead of enum set, remove public in interface.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:25 +04:00
Pavel V. Talanov fe9a2b6e5e Enhanced logic in EqualsIntrinsic.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:24 +04:00
Pavel V. Talanov 8ed7e7de50 Better logic for "invoke" call.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:23 +04:00
Pavel V. Talanov 60f6762578 Direct property access for object properties. 2012-08-14 12:43:20 +04:00
Pavel V. Talanov ac87d8497a Refactor Dangerous*: drop unused stuff.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:19 +04:00
Pavel V. Talanov 29391e6c92 Rework logic in class declaration and namespace declaration.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:18 +04:00
Pavel V. Talanov 124ba541ac Refactor translation of if expression in ExpressionVisitor.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:15 +04:00
Pavel V. Talanov cb60e938d3 Remove duplicating code in translation of while/do while expressions.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:14 +04:00
Pavel V. Talanov 80219b908c Fix strange code in StandardClasses.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:12 +04:00
Pavel V. Talanov cc67b56b3c Rename: translateExtensionFunctionAsEcma5PropertyDescriptor -> translateExtensionFunctionAsEcma5DataDescriptor.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:11 +04:00
Pavel V. Talanov 226a01fa80 Null check logic in TranslationUtils.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:10 +04:00