Skip to content

Commit ff7719f

Browse files
committed
C#: Updated expected test output.
1 parent 963e658 commit ff7719f

File tree

5 files changed

+85
-34
lines changed

5 files changed

+85
-34
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
| Partial.cs:4:18:4:42 | PartialMethodWithoutBody1 | true |
22
| Partial.cs:5:17:5:23 | Method2 | false |
3-
| Partial.cs:10:18:10:39 | PartialMethodWithBody1 | true |
4-
| Partial.cs:11:17:11:23 | Method3 | false |
5-
| Partial.cs:16:18:16:42 | PartialMethodWithoutBody2 | true |
6-
| Partial.cs:17:17:17:23 | Method4 | false |
7-
| Partial.cs:22:17:22:23 | Method5 | false |
3+
| Partial.cs:14:18:14:39 | PartialMethodWithBody1 | true |
4+
| Partial.cs:15:17:15:23 | Method3 | false |
5+
| Partial.cs:34:18:34:42 | PartialMethodWithoutBody2 | true |
6+
| Partial.cs:35:17:35:23 | Method4 | false |
7+
| Partial.cs:40:17:40:23 | Method5 | false |
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
| Partial.cs:1:15:1:26 | TwoPartClass |
22
| Partial.cs:4:18:4:42 | PartialMethodWithoutBody1 |
3-
| Partial.cs:8:15:8:26 | TwoPartClass |
4-
| Partial.cs:10:18:10:39 | PartialMethodWithBody1 |
5-
| Partial.cs:14:15:14:33 | OnePartPartialClass |
6-
| Partial.cs:16:18:16:42 | PartialMethodWithoutBody2 |
3+
| Partial.cs:7:27:7:42 | PartialProperty1 |
4+
| Partial.cs:7:46:7:48 | get_PartialProperty1 |
5+
| Partial.cs:7:51:7:53 | set_PartialProperty1 |
6+
| Partial.cs:9:27:9:30 | Item |
7+
| Partial.cs:9:45:9:47 | get_Item |
8+
| Partial.cs:9:50:9:52 | set_Item |
9+
| Partial.cs:12:15:12:26 | TwoPartClass |
10+
| Partial.cs:14:18:14:39 | PartialMethodWithBody1 |
11+
| Partial.cs:32:15:32:33 | OnePartPartialClass |
12+
| Partial.cs:34:18:34:42 | PartialMethodWithoutBody2 |
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
| Partial.cs:1:15:1:26 | TwoPartClass | Partial.cs:4:18:4:42 | PartialMethodWithoutBody1 |
22
| Partial.cs:1:15:1:26 | TwoPartClass | Partial.cs:5:17:5:23 | Method2 |
3-
| Partial.cs:1:15:1:26 | TwoPartClass | Partial.cs:10:18:10:39 | PartialMethodWithBody1 |
4-
| Partial.cs:1:15:1:26 | TwoPartClass | Partial.cs:11:17:11:23 | Method3 |
5-
| Partial.cs:8:15:8:26 | TwoPartClass | Partial.cs:4:18:4:42 | PartialMethodWithoutBody1 |
6-
| Partial.cs:8:15:8:26 | TwoPartClass | Partial.cs:5:17:5:23 | Method2 |
7-
| Partial.cs:8:15:8:26 | TwoPartClass | Partial.cs:10:18:10:39 | PartialMethodWithBody1 |
8-
| Partial.cs:8:15:8:26 | TwoPartClass | Partial.cs:11:17:11:23 | Method3 |
9-
| Partial.cs:14:15:14:33 | OnePartPartialClass | Partial.cs:16:18:16:42 | PartialMethodWithoutBody2 |
10-
| Partial.cs:14:15:14:33 | OnePartPartialClass | Partial.cs:17:17:17:23 | Method4 |
3+
| Partial.cs:1:15:1:26 | TwoPartClass | Partial.cs:14:18:14:39 | PartialMethodWithBody1 |
4+
| Partial.cs:1:15:1:26 | TwoPartClass | Partial.cs:15:17:15:23 | Method3 |
5+
| Partial.cs:12:15:12:26 | TwoPartClass | Partial.cs:4:18:4:42 | PartialMethodWithoutBody1 |
6+
| Partial.cs:12:15:12:26 | TwoPartClass | Partial.cs:5:17:5:23 | Method2 |
7+
| Partial.cs:12:15:12:26 | TwoPartClass | Partial.cs:14:18:14:39 | PartialMethodWithBody1 |
8+
| Partial.cs:12:15:12:26 | TwoPartClass | Partial.cs:15:17:15:23 | Method3 |
9+
| Partial.cs:32:15:32:33 | OnePartPartialClass | Partial.cs:34:18:34:42 | PartialMethodWithoutBody2 |
10+
| Partial.cs:32:15:32:33 | OnePartPartialClass | Partial.cs:35:17:35:23 | Method4 |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| Partial.cs:4:18:4:42 | PartialMethodWithoutBody1 | false |
2-
| Partial.cs:10:18:10:39 | PartialMethodWithBody1 | true |
3-
| Partial.cs:16:18:16:42 | PartialMethodWithoutBody2 | false |
2+
| Partial.cs:14:18:14:39 | PartialMethodWithBody1 | true |
3+
| Partial.cs:34:18:34:42 | PartialMethodWithoutBody2 | false |

csharp/ql/test/library-tests/partial/PrintAst.expected

Lines changed: 60 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,64 @@ Partial.cs:
55
# 5| 6: [Method] Method2
66
# 5| -1: [TypeMention] Void
77
# 5| 4: [BlockStmt] {...}
8-
# 10| 7: [Method] PartialMethodWithBody1
8+
# 7| 7: [Property] PartialProperty1
9+
# 7| -1: [TypeMention] object
10+
# 7| 3: [Getter] get_PartialProperty1
11+
# 7| 4: [Setter] set_PartialProperty1
12+
#-----| 2: (Parameters)
13+
# 7| 0: [Parameter] value
14+
# 9| 8: [Indexer] Item
15+
# 9| -1: [TypeMention] object
16+
#-----| 1: (Parameters)
17+
# 9| 0: [Parameter] index
18+
# 9| -1: [TypeMention] int
19+
# 9| 3: [Getter] get_Item
20+
#-----| 2: (Parameters)
21+
# 9| 0: [Parameter] index
22+
# 9| 4: [Setter] set_Item
23+
#-----| 2: (Parameters)
24+
# 9| 0: [Parameter] index
25+
# 9| 1: [Parameter] value
26+
# 14| 9: [Method] PartialMethodWithBody1
927
# 3| -1: [TypeMention] Void
10-
# 10| 4: [BlockStmt] {...}
11-
# 11| 8: [Method] Method3
12-
# 11| -1: [TypeMention] Void
13-
# 11| 4: [BlockStmt] {...}
14-
# 14| [Class] OnePartPartialClass
15-
# 16| 5: [Method] PartialMethodWithoutBody2
16-
# 16| -1: [TypeMention] Void
17-
# 17| 6: [Method] Method4
18-
# 17| -1: [TypeMention] Void
19-
# 17| 4: [BlockStmt] {...}
20-
# 20| [Class] NonPartialClass
21-
# 22| 5: [Method] Method5
22-
# 22| -1: [TypeMention] Void
23-
# 22| 4: [BlockStmt] {...}
28+
# 14| 4: [BlockStmt] {...}
29+
# 15| 10: [Method] Method3
30+
# 15| -1: [TypeMention] Void
31+
# 15| 4: [BlockStmt] {...}
32+
# 16| 11: [Field] _backingField
33+
# 16| -1: [TypeMention] object
34+
# 23| 12: [Field] _backingArray
35+
# 23| -1: [TypeMention] Object[]
36+
# 23| 1: [TypeMention] object
37+
# 32| [Class] OnePartPartialClass
38+
# 34| 5: [Method] PartialMethodWithoutBody2
39+
# 34| -1: [TypeMention] Void
40+
# 35| 6: [Method] Method4
41+
# 35| -1: [TypeMention] Void
42+
# 35| 4: [BlockStmt] {...}
43+
# 38| [Class] NonPartialClass
44+
# 40| 5: [Method] Method5
45+
# 40| -1: [TypeMention] Void
46+
# 40| 4: [BlockStmt] {...}
47+
# 41| 6: [Property] Property
48+
# 41| -1: [TypeMention] object
49+
# 41| 3: [Getter] get_Property
50+
# 41| 4: [Setter] set_Property
51+
#-----| 2: (Parameters)
52+
# 41| 0: [Parameter] value
53+
# 42| 7: [Indexer] Item
54+
# 42| -1: [TypeMention] object
55+
#-----| 1: (Parameters)
56+
# 42| 0: [Parameter] index
57+
# 42| -1: [TypeMention] int
58+
# 44| 3: [Getter] get_Item
59+
#-----| 2: (Parameters)
60+
# 42| 0: [Parameter] index
61+
# 44| 4: [BlockStmt] {...}
62+
# 44| 0: [ReturnStmt] return ...;
63+
# 44| 0: [NullLiteral] null
64+
# 45| 4: [Setter] set_Item
65+
#-----| 2: (Parameters)
66+
# 42| 0: [Parameter] index
67+
# 45| 1: [Parameter] value
68+
# 45| 4: [BlockStmt] {...}

0 commit comments

Comments
 (0)