Commit Graph

33 Commits

Author SHA1 Message Date
Dmitry Petrov
efb6756cbc Initialize property metadata array before class body generation
Initialization of companion object members (e.g., delegate properties
using provideDelegate convention) can depend on property metadata array,
which in turn can be initialized before other class members.

 #KT-18902 Fixed Target versions 1.1.5
2017-07-12 09:37:16 +03:00
Mikhail Zarechenskiy
d0e26c6527 Support underscores in non local destructuring declarations 2017-05-25 16:46:06 +03:00
Mikhail Zarechenskiy
47f2386212 Generate non-local destructuring declarations as properties
#KT-5620 Fixed
 #KT-15810 Fixed
2017-05-25 16:46:05 +03:00
Dmitry Petrov
7600b6de52 Allow top-level type aliases in scripts 2017-05-24 11:20:22 +03:00
Dmitry Petrov
a974ed1049 Support custom accessors for top-level properties in scripts. 2017-01-26 10:12:13 +03:00
Mikhail Zarechenskiy
7739677a06 Adapt ScriptCodegenTests to last changes
Get rid of possibility to configure script definition without template
class, therefore all tests now are using default script argument
2016-09-20 16:23:41 +03:00
Michael Bogdanov
6b8e8cee17 Fix for KT-12891: Allow to omit type in local delegated property declaration
#KT-12891 Fixed
2016-07-05 21:22:48 +03:00
Mikhael Bogdanov
c06b51c1d1 Allow top-level local delegated properties in scripts 2016-05-13 19:11:23 +03:00
Dotlin
4c223845b6 Delegated Properties: Code generation for local properties (JVM) 2016-05-13 19:11:19 +03:00
Pavel V. Talanov
bdc64f322c Add script codegen tests with package statements
Tests codegen annotating visitor
2015-11-19 22:57:03 +03:00
Pavel V. Talanov
ad58617753 Script refactoring, codegen tests: change test data according to semantics change
Add some new tests for uncovered cases
2015-11-19 22:57:01 +03:00
Denis Zharkov
9dada595b6 Replace deprecated annotations with modifiers in testData 2015-09-18 10:14:41 +03:00
Michael Bogdanov
5cb9671803 Support inlining in scripts and outer expression capturing
#KT-7744 Fixed
2015-05-18 14:47:57 +03:00
Alexander Udalov
415fe7a5e6 Initial support for classes in scripts and REPL 2014-08-13 15:13:22 +04:00
Alexander Udalov
9ae95c1e5c Generate codegen tests on scripts 2014-08-13 15:13:17 +04:00
Andrey Breslav
f81bf5ea73 Do not add functions and properties with inferred types as script class memebrs 2014-04-01 12:25:31 +04:00
Ilya Ryzhenkov
98c54f39bb Unify script file extensions to "kts" so that IDEA, compiler and tests agree when to parse as SCRIPT.
Include kt* files into formatter test generation, to test scripting formatting
2014-03-24 18:17:50 +04:00
Alexander Udalov
f7b6457139 Replace "jet" package name with "kotlin" in testData 2014-03-02 19:55:26 +04:00
Svetlana Isakova
ea611cb51d check modifiers for local declarations 2012-08-22 20:42:35 +04:00
Alex Tkachman
b52b92cd31 one more test for scripts 2012-08-02 09:31:32 +03:00
Alex Tkachman
29054586d3 default imports added to script definitions 2012-08-01 23:05:56 +03:00
Alex Tkachman
e134969896 making script classes useful/accessable for the rest of the world 2012-08-01 09:58:01 +03:00
Alex Tkachman
a98cd7aa0f script renamed 2012-07-30 13:24:59 +03:00
Alex Tkachman
7c2d394412 properr names for scripts 2012-07-29 23:58:45 +03:00
Alex Tkachman
f8391619a5 configurable script languages 2012-07-29 21:32:53 +03:00
Stepan Koltsov
b0553ff651 properly handle empty lines in REPL 2012-06-09 23:25:41 +04:00
Stepan Koltsov
18aa1dc570 script parameter closure 2012-06-08 04:19:24 +04:00
Stepan Koltsov
f27147f752 script: make top level declarations class members 2012-06-05 22:59:07 +04:00
Stepan Koltsov
68ae2e95a3 better ScriptGenTest: check more fields 2012-06-05 22:56:26 +04:00
Stepan Koltsov
0f8c449f55 ScriptGenTest: more 2012-05-31 19:31:40 +04:00
Stepan Koltsov
1f5666e0e8 more tests in ScriptGenTest 2012-05-30 19:47:42 +04:00
Stepan Koltsov
30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov
f4051f45ab generate bytecode for script
It is just prototype

* does not make top level symbols visible as class members yet
* does not take parameters
* Script class name is hardcoded now
2012-05-23 02:52:29 +04:00