Skip to content

Commit 918bee0

Browse files
committed
Kotlin: Accept Kotlin 1 test changes 1.9.0 -> 2.0.0
1 parent 2550e11 commit 918bee0

File tree

26 files changed

+194
-197
lines changed

26 files changed

+194
-197
lines changed

java/ql/test-kotlin1/library-tests/classes/PrintAst.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,24 @@ classes.kt:
103103
# 25| 3: [TypeAccess] Unit
104104
# 25| 5: [BlockStmt] { ... }
105105
# 28| 9: [Class] ClassSix
106-
# 28| 1: [Constructor] ClassSix
107-
# 28| 5: [BlockStmt] { ... }
108-
# 28| 0: [SuperConstructorInvocationStmt] super(...)
109-
# 28| 1: [BlockStmt] { ... }
110-
# 28| 2: [Method] funIF1
106+
# 28| 1: [Method] funIF1
111107
# 28| 3: [TypeAccess] Unit
112108
# 28| 5: [BlockStmt] { ... }
113109
# 28| 0: [ReturnStmt] return ...
114110
# 28| 0: [MethodCall] funIF1(...)
115111
# 28| -1: [SuperAccess] IF1.super
116112
# 28| 0: [TypeAccess] IF1
117-
# 28| 3: [Method] funIF2
113+
# 28| 2: [Method] funIF2
118114
# 28| 3: [TypeAccess] Unit
119115
# 28| 5: [BlockStmt] { ... }
120116
# 28| 0: [ReturnStmt] return ...
121117
# 28| 0: [MethodCall] funIF2(...)
122118
# 28| -1: [SuperAccess] IF2.super
123119
# 28| 0: [TypeAccess] IF2
120+
# 28| 3: [Constructor] ClassSix
121+
# 28| 5: [BlockStmt] { ... }
122+
# 28| 0: [SuperConstructorInvocationStmt] super(...)
123+
# 28| 1: [BlockStmt] { ... }
124124
# 29| 4: [Constructor] ClassSix
125125
#-----| 4: (Parameters)
126126
# 29| 0: [Parameter] i

java/ql/test-kotlin1/library-tests/comments/comments.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ comments
1818
| comments.kt:95:1:95:163 | // Diagnostic Matches: % Couldn't get owner of KDoc. The comment is extracted without an owner. ...while extracting a file (comments.kt) at %comments.kt:1:1:96:0% | // Diagnostic Matches: % Couldn't get owner of KDoc. The comment is extracted without an owner. ...while extracting a file (comments.kt) at %comments.kt:1:1:96:0% |
1919
commentOwners
2020
| comments.kt:4:1:11:3 | /**\n * A group of *members*.\n *\n * This class has no useful logic; it's just a documentation example.\n *\n * @property name the name of this group.\n * @constructor Creates an empty group.\n */ | comments.kt:12:1:31:1 | Group |
21-
| comments.kt:4:1:11:3 | /**\n * A group of *members*.\n *\n * This class has no useful logic; it's just a documentation example.\n *\n * @property name the name of this group.\n * @constructor Creates an empty group.\n */ | comments.kt:12:1:31:1 | Group |
2221
| comments.kt:14:5:16:7 | /**\n * Members of this group.\n */ | comments.kt:17:5:17:46 | members |
2322
| comments.kt:14:5:16:7 | /**\n * Members of this group.\n */ | comments.kt:17:5:17:46 | members |
2423
| comments.kt:14:5:16:7 | /**\n * Members of this group.\n */ | comments.kt:17:13:17:46 | getMembers$private |

java/ql/test-kotlin1/library-tests/controlflow/basic/bbStmts.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
| Test.kt:3:1:80:1 | { ... } | 0 | Test.kt:3:1:80:1 | { ... } |
2-
| Test.kt:3:1:80:1 | { ... } | 1 | Test.kt:3:1:80:1 | super(...) |
3-
| Test.kt:3:1:80:1 | { ... } | 2 | Test.kt:3:8:80:1 | { ... } |
4-
| Test.kt:3:1:80:1 | { ... } | 3 | Test.kt:3:8:80:1 | Test |
1+
| Test.kt:3:8:80:1 | { ... } | 0 | Test.kt:3:8:80:1 | { ... } |
2+
| Test.kt:3:8:80:1 | { ... } | 1 | Test.kt:3:1:80:1 | super(...) |
3+
| Test.kt:3:8:80:1 | { ... } | 2 | Test.kt:3:8:80:1 | { ... } |
4+
| Test.kt:3:8:80:1 | { ... } | 3 | Test.kt:3:8:80:1 | Test |
55
| Test.kt:4:2:79:2 | test | 0 | Test.kt:4:2:79:2 | test |
66
| Test.kt:4:13:79:2 | { ... } | 0 | Test.kt:4:13:79:2 | { ... } |
77
| Test.kt:4:13:79:2 | { ... } | 1 | Test.kt:5:7:5:7 | var ...; |
@@ -155,15 +155,15 @@
155155
| Test.kt:105:5:109:5 | <Expr>; | 5 | Test.kt:105:9:105:17 | ... (value not-equals) ... |
156156
| Test.kt:105:20:107:5 | { ... } | 0 | Test.kt:105:20:107:5 | { ... } |
157157
| Test.kt:105:20:107:5 | { ... } | 1 | Test.kt:106:9:106:29 | <Expr>; |
158-
| Test.kt:105:20:107:5 | { ... } | 2 | Test.kt:106:18:106:27 | "x not null" |
158+
| Test.kt:105:20:107:5 | { ... } | 2 | Test.kt:106:17:106:28 | "x not null" |
159159
| Test.kt:105:20:107:5 | { ... } | 3 | Test.kt:106:9:106:29 | println(...) |
160160
| Test.kt:107:16:109:5 | ... -> ... | 0 | Test.kt:107:16:109:5 | ... -> ... |
161161
| Test.kt:107:16:109:5 | ... -> ... | 1 | Test.kt:107:16:107:16 | y |
162162
| Test.kt:107:16:109:5 | ... -> ... | 2 | Test.kt:107:21:107:24 | null |
163163
| Test.kt:107:16:109:5 | ... -> ... | 3 | Test.kt:107:16:107:24 | ... (value not-equals) ... |
164164
| Test.kt:107:27:109:5 | { ... } | 0 | Test.kt:107:27:109:5 | { ... } |
165165
| Test.kt:107:27:109:5 | { ... } | 1 | Test.kt:108:9:108:29 | <Expr>; |
166-
| Test.kt:107:27:109:5 | { ... } | 2 | Test.kt:108:18:108:27 | "y not null" |
166+
| Test.kt:107:27:109:5 | { ... } | 2 | Test.kt:108:17:108:28 | "y not null" |
167167
| Test.kt:107:27:109:5 | { ... } | 3 | Test.kt:108:9:108:29 | println(...) |
168168
| Test.kt:112:1:116:1 | fn | 0 | Test.kt:112:1:116:1 | fn |
169169
| Test.kt:112:32:116:1 | { ... } | 0 | Test.kt:112:32:116:1 | { ... } |

java/ql/test-kotlin1/library-tests/controlflow/basic/getASuccessor.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
| Test.kt:0:0:0:0 | TestKt | Class | file://:0:0:0:0 | <none> | <none> |
33
| Test.kt:3:1:80:1 | Test | Class | file://:0:0:0:0 | <none> | <none> |
44
| Test.kt:3:1:80:1 | super(...) | SuperConstructorInvocationStmt | Test.kt:3:8:80:1 | { ... } | BlockStmt |
5-
| Test.kt:3:1:80:1 | { ... } | BlockStmt | Test.kt:3:1:80:1 | super(...) | SuperConstructorInvocationStmt |
65
| Test.kt:3:8:80:1 | Test | Constructor | file://:0:0:0:0 | <none> | <none> |
6+
| Test.kt:3:8:80:1 | { ... } | BlockStmt | Test.kt:3:1:80:1 | super(...) | SuperConstructorInvocationStmt |
77
| Test.kt:3:8:80:1 | { ... } | BlockStmt | Test.kt:3:8:80:1 | Test | Constructor |
88
| Test.kt:4:2:79:2 | Unit | TypeAccess | file://:0:0:0:0 | <none> | <none> |
99
| Test.kt:4:2:79:2 | test | Method | file://:0:0:0:0 | <none> | <none> |
@@ -206,20 +206,20 @@
206206
| Test.kt:105:9:107:5 | ... -> ... | WhenBranch | Test.kt:105:9:105:9 | x | VarAccess |
207207
| Test.kt:105:14:105:17 | null | NullLiteral | Test.kt:105:9:105:17 | ... (value not-equals) ... | ValueNEExpr |
208208
| Test.kt:105:20:107:5 | { ... } | BlockStmt | Test.kt:106:9:106:29 | <Expr>; | ExprStmt |
209-
| Test.kt:106:9:106:29 | <Expr>; | ExprStmt | Test.kt:106:18:106:27 | "x not null" | StringLiteral |
209+
| Test.kt:106:9:106:29 | <Expr>; | ExprStmt | Test.kt:106:17:106:28 | "x not null" | StringLiteral |
210210
| Test.kt:106:9:106:29 | ConsoleKt | TypeAccess | file://:0:0:0:0 | <none> | <none> |
211211
| Test.kt:106:9:106:29 | println(...) | MethodCall | Test.kt:100:1:110:1 | fn | Method |
212-
| Test.kt:106:18:106:27 | "x not null" | StringLiteral | Test.kt:106:9:106:29 | println(...) | MethodCall |
212+
| Test.kt:106:17:106:28 | "x not null" | StringLiteral | Test.kt:106:9:106:29 | println(...) | MethodCall |
213213
| Test.kt:107:16:107:16 | y | VarAccess | Test.kt:107:21:107:24 | null | NullLiteral |
214214
| Test.kt:107:16:107:24 | ... (value not-equals) ... | ValueNEExpr | Test.kt:100:1:110:1 | fn | Method |
215215
| Test.kt:107:16:107:24 | ... (value not-equals) ... | ValueNEExpr | Test.kt:107:27:109:5 | { ... } | BlockStmt |
216216
| Test.kt:107:16:109:5 | ... -> ... | WhenBranch | Test.kt:107:16:107:16 | y | VarAccess |
217217
| Test.kt:107:21:107:24 | null | NullLiteral | Test.kt:107:16:107:24 | ... (value not-equals) ... | ValueNEExpr |
218218
| Test.kt:107:27:109:5 | { ... } | BlockStmt | Test.kt:108:9:108:29 | <Expr>; | ExprStmt |
219-
| Test.kt:108:9:108:29 | <Expr>; | ExprStmt | Test.kt:108:18:108:27 | "y not null" | StringLiteral |
219+
| Test.kt:108:9:108:29 | <Expr>; | ExprStmt | Test.kt:108:17:108:28 | "y not null" | StringLiteral |
220220
| Test.kt:108:9:108:29 | ConsoleKt | TypeAccess | file://:0:0:0:0 | <none> | <none> |
221221
| Test.kt:108:9:108:29 | println(...) | MethodCall | Test.kt:100:1:110:1 | fn | Method |
222-
| Test.kt:108:18:108:27 | "y not null" | StringLiteral | Test.kt:108:9:108:29 | println(...) | MethodCall |
222+
| Test.kt:108:17:108:28 | "y not null" | StringLiteral | Test.kt:108:9:108:29 | println(...) | MethodCall |
223223
| Test.kt:112:1:116:1 | Unit | TypeAccess | file://:0:0:0:0 | <none> | <none> |
224224
| Test.kt:112:1:116:1 | fn | Method | file://:0:0:0:0 | <none> | <none> |
225225
| Test.kt:112:8:112:17 | boolean | TypeAccess | file://:0:0:0:0 | <none> | <none> |

java/ql/test-kotlin1/library-tests/controlflow/basic/strictDominance.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
| Test.kt:3:1:80:1 | super(...) | Test.kt:3:8:80:1 | { ... } |
2-
| Test.kt:3:1:80:1 | { ... } | Test.kt:3:1:80:1 | super(...) |
3-
| Test.kt:3:1:80:1 | { ... } | Test.kt:3:8:80:1 | { ... } |
2+
| Test.kt:3:8:80:1 | { ... } | Test.kt:3:1:80:1 | super(...) |
3+
| Test.kt:3:8:80:1 | { ... } | Test.kt:3:8:80:1 | { ... } |
44
| Test.kt:4:13:79:2 | { ... } | Test.kt:5:7:5:7 | var ...; |
55
| Test.kt:4:13:79:2 | { ... } | Test.kt:6:7:6:7 | var ...; |
66
| Test.kt:4:13:79:2 | { ... } | Test.kt:7:7:7:7 | var ...; |

java/ql/test-kotlin1/library-tests/controlflow/basic/strictPostDominance.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
| Test.kt:3:1:80:1 | super(...) | Test.kt:3:1:80:1 | { ... } |
1+
| Test.kt:3:1:80:1 | super(...) | Test.kt:3:8:80:1 | { ... } |
22
| Test.kt:3:8:80:1 | { ... } | Test.kt:3:1:80:1 | super(...) |
3-
| Test.kt:3:8:80:1 | { ... } | Test.kt:3:1:80:1 | { ... } |
3+
| Test.kt:3:8:80:1 | { ... } | Test.kt:3:8:80:1 | { ... } |
44
| Test.kt:5:7:5:7 | var ...; | Test.kt:4:13:79:2 | { ... } |
55
| Test.kt:6:7:6:7 | var ...; | Test.kt:4:13:79:2 | { ... } |
66
| Test.kt:6:7:6:7 | var ...; | Test.kt:5:7:5:7 | var ...; |

java/ql/test-kotlin1/library-tests/dataflow/foreach/test.expected

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
| C1.java:10:44:10:46 | "a" | C1.java:12:17:12:20 | ...[...] |
33
| C1.java:10:44:10:46 | "a" | C1.java:15:20:15:23 | ...[...] |
44
| C1.java:10:44:10:46 | "a" | C1.java:19:20:19:20 | s |
5-
| C2.kt:8:32:8:32 | "a" | C2.kt:9:14:9:14 | l |
6-
| C2.kt:8:32:8:32 | "a" | C2.kt:10:14:10:17 | ...[...] |
7-
| C2.kt:8:32:8:32 | "a" | C2.kt:11:14:11:21 | get(...) |
8-
| C2.kt:8:32:8:32 | "a" | C2.kt:13:18:13:21 | ...[...] |
9-
| C2.kt:8:32:8:32 | "a" | C2.kt:16:18:16:18 | s |
10-
| C2.kt:23:24:23:24 | "a" | C2.kt:25:14:25:18 | ...[...] |
11-
| C2.kt:23:24:23:24 | "a" | C2.kt:27:14:27:22 | get(...) |
12-
| C2.kt:24:26:24:26 | "a" | C2.kt:26:14:26:18 | ...[...] |
13-
| C2.kt:24:26:24:26 | "a" | C2.kt:28:14:28:22 | get(...) |
14-
| C2.kt:36:30:36:30 | "a" | C2.kt:37:14:37:17 | ...[...] |
15-
| C2.kt:36:30:36:30 | "a" | C2.kt:38:14:38:21 | get(...) |
5+
| C2.kt:8:31:8:33 | "a" | C2.kt:9:14:9:14 | l |
6+
| C2.kt:8:31:8:33 | "a" | C2.kt:10:14:10:17 | ...[...] |
7+
| C2.kt:8:31:8:33 | "a" | C2.kt:11:14:11:21 | get(...) |
8+
| C2.kt:8:31:8:33 | "a" | C2.kt:13:18:13:21 | ...[...] |
9+
| C2.kt:8:31:8:33 | "a" | C2.kt:16:18:16:18 | s |
10+
| C2.kt:23:23:23:25 | "a" | C2.kt:25:14:25:18 | ...[...] |
11+
| C2.kt:23:23:23:25 | "a" | C2.kt:27:14:27:22 | get(...) |
12+
| C2.kt:24:25:24:27 | "a" | C2.kt:26:14:26:18 | ...[...] |
13+
| C2.kt:24:25:24:27 | "a" | C2.kt:28:14:28:22 | get(...) |
14+
| C2.kt:36:29:36:31 | "a" | C2.kt:37:14:37:17 | ...[...] |
15+
| C2.kt:36:29:36:31 | "a" | C2.kt:38:14:38:21 | get(...) |

0 commit comments

Comments
 (0)