Commit Graph

6682 Commits

Author SHA1 Message Date
James Strachan ebc87ea34d added a test case that ensures the generated JS code works in the browser example 2012-07-19 14:05:26 +01:00
James Strachan b8bdc55ed1 added a link to the JS example 2012-07-19 14:04:50 +01:00
Nikolay Krasko 7089d8ea5c Rewrite indexed search for java classes produced from kotlin code 2012-07-19 13:56:06 +04:00
James Strachan 1aae3ff449 updated instructions 2012-07-19 10:26:56 +01:00
James Strachan 79904e23da updated browser example so its working again ;) 2012-07-19 10:23:57 +01:00
James Strachan 9cd231ae60 removed old cruft 2012-07-19 10:14:06 +01:00
James Strachan 36078216b7 re-include jQuery and html5 JS APIs into the kotlin-js-library now it seems KT-2316 is fixed 2012-07-19 08:30:16 +01:00
Andrey Breslav 43a00b9787 Class objects explicitly marked in the test data 2012-07-18 17:44:12 +04:00
Pavel V. Talanov 9a28f580bb Move NO_INTRINSIC to FunctionIntrinsic 2012-07-18 17:15:55 +04:00
Pavel V. Talanov b45c14b0ab Explicit equals method for primitives and correct global equals method.
Includes cosmetics.
#KT-2372 Fixed
2012-07-18 17:15:27 +04:00
Pavel V. Talanov e0651de9ed Extend CompositeFIF instead of using FIFBuilder. 2012-07-18 17:11:16 +04:00
Pavel V. Talanov 71071595fa Pattern -> DescriptorPredicate, NameChecker -> NamePredicate. 2012-07-18 17:11:15 +04:00
Pavel V. Talanov bd6f38021f Byte, Float, Short conversions. 2012-07-18 17:11:14 +04:00
Pavel V. Talanov c363d54d0a Number conversions. 2012-07-18 17:11:13 +04:00
Pavel V. Talanov 69cbf65d62 Move error reporting util from CallStandardMethodIntrinsic to ErrorReportingUtils. 2012-07-18 17:11:12 +04:00
Pavel V. Talanov aecb1ce5a7 Double conversions. 2012-07-18 17:11:12 +04:00
Pavel V. Talanov 3cd406a155 Integer conversions (to* methods).
Add NumberTest, NumberConversionFIF.
2012-07-18 17:11:11 +04:00
Pavel V. Talanov 459802e726 Reapplied Dmitry's changes to util methods 2012-07-18 17:11:10 +04:00
Pavel V. Talanov 239cb25348 Enable JsUnitTestReporter test since teamcity is fixed. 2012-07-18 17:11:09 +04:00
Pavel V. Talanov 346cc1410e Use OperatorConventions.BOOLEAN_OPERATIONS in frontend. 2012-07-18 17:11:09 +04:00
Pavel V. Talanov 62ad7a9b17 Finishing refactoring intrinsic. Implemented most of FunctionIntrinsics and basic BinaryOperationIntrinsics.
All test pass, need to add tests for type conversion operation though.
2012-07-18 17:11:08 +04:00
Pavel V. Talanov 961260c5c5 Intrinsic -> FunctionIntrinsic
Introduce FunctionIntrinsicFactory (unused atm)
2012-07-18 17:11:07 +04:00
Andrey Breslav d3427169fb Optimize indent() implementation 2012-07-18 16:34:12 +04:00
Andrey Breslav 07b8613025 Speed up sorting of members
We put "!" in front of the names of members, then while sorting we simply chop off the part of the string before "!"
2012-07-18 16:34:12 +04:00
Nikolay Krasko 28b0eefe5d - KT-2353 convert a selection of Java code to Kotlin by copy paste (or context menu) - Apply patch from Sergey Ignatov
#KT-2353 fixed
2012-07-18 14:33:13 +04:00
James Strachan 00b0f26339 add a minimum maven version to give better errors if folks try build on 2.x 2012-07-18 07:00:06 +01:00
Evgeny Gerashchenko b795a3c1dd KT-2297 Auto-insert closing brace on typing '{' after '$' in string literal
#KT-2297 fixed
2012-07-16 19:54:12 +04:00
Evgeny Gerashchenko 0b3c42c34b KT-2426 Match entered brace in string templates
#KT-2426
2012-07-16 19:54:11 +04:00
James Strachan a3d30409d3 added more descriptive assertion failure 2012-07-16 13:47:44 +01:00
James Strachan fee8c42885 added better links 2012-07-16 09:47:31 +01:00
James Strachan f54c3b9ab8 added an experimental refactor of the standard library where we use traits and inheritence/override to group extension functions and apply them in a more powerful way; reusing the language & IDE to check for missing functions or incorrect overriding etc. (e.g. its easy to see the difference between eager & lazy and ensure consistent APIs across extension functions) 2012-07-16 09:43:45 +01:00
Evgeny Gerashchenko a1ef535ace Reverted "Fixed Ranges.upTo and downTo, so they return non-empty range for case from==to". This patch needs to be reviewed later. 2012-07-15 11:23:04 +04:00
Evgeny Gerashchenko d3ba6a7bb9 Fixed Ranges.upTo and downTo, so they return non-empty range for case from==to. 2012-07-14 12:46:51 +04:00
Evgeny Gerashchenko 07347e20a9 Reformatted Ranges. 2012-07-14 12:41:49 +04:00
Andrey Breslav 15d469156a Reverting command line reporting: it breaks tests 2012-07-14 12:15:30 +04:00
Andrey Breslav 95b93322b3 Report the command line that was passed if its format is wrong 2012-07-14 11:56:29 +04:00
Dmitry Jemerov e5be4c8e63 publish plugin dist before test run is completed 2012-07-13 16:49:36 +02:00
Dmitry Jemerov 1ac60dae5e don't use PSI for calculating the type of first argument of trait function implementation 2012-07-13 16:12:33 +02:00
Andrey Breslav e182041eb9 Escaping optimized
TODO: we have to integrate this optimization in IDEA
2012-07-13 12:52:55 +04:00
Andrey Breslav 17169b1244 NamespaceComparator moved to test.util 2012-07-13 12:31:22 +04:00
Andrey Breslav b167e0dd49 Method cache to speed up dispatch 2012-07-13 12:31:22 +04:00
Andrey Breslav 969a798998 Pre-compile pattern for performance 2012-07-13 12:31:22 +04:00
Andrey Breslav de7b93c4b8 Class object resolution scope should not have an implicit receiver
See testData/diagnostics/test/ClassObjectCannotAccessClassFields.kt test
2012-07-13 12:31:21 +04:00
Andrey Breslav 44d92d8eb3 Support for checking loaded descriptors agains an expected txt file 2012-07-13 12:31:21 +04:00
Andrey Breslav 7cf9eeee65 Class object handling refactored to emphasize the structure 2012-07-13 12:31:21 +04:00
Andrey Breslav 55ff4ae941 Abstract Lazy test for gianostics 2012-07-13 12:31:21 +04:00
Dmitry Jemerov a65453a1bd remove unnecessary PsiElement check (which doesn't work correctly in case of a multi-module project and separate compilation), use ClassDescriptor instead 2012-07-12 21:02:59 +02:00
Dmitry Jemerov bd01b82746 don't generate redundant checkcast 2012-07-12 20:26:44 +02:00
Dmitry Jemerov 5ab1608ced pull generateTraitMethods() out of generatePrimaryConstructor(), don't inappropriately reuse ExpressionCodegen 2012-07-12 20:10:26 +02:00
Dmitry Jemerov 40e4e32eab object declarations need trait methods to be generated too (KT-2399) 2012-07-12 17:45:41 +02:00