-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIR IDE: add property support for incremental analysis
- Loading branch information
1 parent
953dba8
commit 76c0dc7
Showing
21 changed files
with
290 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/fileStructure/classMemberProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class X {/* NonReanalyzableDeclarationStructureElement */ | ||
var x: Int/* ReanalyzablePropertyStructureElement */ | ||
get() = field | ||
set(value) { | ||
field = value | ||
} | ||
|
||
val y = 42/* NonReanalyzableDeclarationStructureElement */ | ||
|
||
var z: Int = 15/* ReanalyzablePropertyStructureElement */ | ||
} |
15 changes: 15 additions & 0 deletions
15
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/fileStructure/localProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
fun foo() {/* ReanalyzableFunctionStructureElement */ | ||
var x: Int | ||
} | ||
class A {/* NonReanalyzableDeclarationStructureElement */ | ||
fun q() {/* ReanalyzableFunctionStructureElement */ | ||
val y = 42 | ||
} | ||
} | ||
class B {/* NonReanalyzableDeclarationStructureElement */ | ||
class C {/* NonReanalyzableDeclarationStructureElement */ | ||
fun u() {/* ReanalyzableFunctionStructureElement */ | ||
var z: Int = 15 | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/fileStructure/topLevelProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var x: Int/* ReanalyzablePropertyStructureElement */ | ||
get() = field | ||
set(value) { | ||
field = value | ||
} | ||
|
||
val y = 42/* NonReanalyzableDeclarationStructureElement */ | ||
|
||
var z: Int = 15/* ReanalyzablePropertyStructureElement */ |
3 changes: 3 additions & 0 deletions
3
...-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/topPropertyWithTypeInGetter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
val x: Int get() = y<caret> | ||
|
||
// OUT_OF_BLOCK: false |
4 changes: 4 additions & 0 deletions
4
...fir-low-level-api/testdata/outOfBlockProjectWide/topPropertyWithTypeInGetterOnNextLine.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
val x: Int | ||
get() = y<caret> | ||
|
||
// OUT_OF_BLOCK: false |
3 changes: 3 additions & 0 deletions
3
...idea-fir-low-level-api/testdata/outOfBlockProjectWide/topPropertyWithTypeInInititalzer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
val x: Int = y<caret> | ||
|
||
// OUT_OF_BLOCK: false |
4 changes: 4 additions & 0 deletions
4
...-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/topPropertyWithTypeInSetter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
val x: Int | ||
set(value) = y<caret> | ||
|
||
// OUT_OF_BLOCK: false |
3 changes: 3 additions & 0 deletions
3
...r/idea-fir-low-level-api/testdata/outOfBlockProjectWide/topPropertyWithoutTypeInGetter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
val x get() = y<caret> | ||
|
||
// OUT_OF_BLOCK: true |
3 changes: 3 additions & 0 deletions
3
...a-fir-low-level-api/testdata/outOfBlockProjectWide/topPropertyWithoutTypeInInititalzer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
val x = y<caret> | ||
|
||
// OUT_OF_BLOCK: true |
8 changes: 8 additions & 0 deletions
8
...r/idea-fir-low-level-api/testdata/outOfBlockProjectWide/topPropertyWithoutTypeInSetter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
val x | ||
get() = 1 | ||
set(value) { | ||
<caret> | ||
} | ||
|
||
// OUT_OF_BLOCK: true | ||
// TODO should not be out of block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
I'd recommend to get rid of this error suppression by rewriting code