Introduce Variable feature (in pre-alpha quality).

Problems:
1. Still problems with containers, due to new for me JetContainerNode.
2. Needs name suggester
3. Needs name validator
4. Needs type annotation adding
5. Needs changing to var and checking write access of usages
6. Needs final modifier adding
7. Some problems on class and file level. Should be fixed. Problems with inplace rename on this positions. Additionally possibly should be added proper work with expressions on class body level and namespace/file level. It parsed as error now.
8. Needs much more tests than just 6.
This commit is contained in:
Alefas
2012-02-01 19:42:06 +04:00
parent 55fdeb9e35
commit c8b4e5ec74
36 changed files with 881 additions and 13 deletions
@@ -0,0 +1,12 @@
fun a() {
if (true) 2
else <selection>1</selection>
}
/*
fun a() {
if (true) 2
else {
val i = 1
}
}
*/