Skip to content

Commit 1dabef0

Browse files
Update class tests
1 parent 66ab205 commit 1dabef0

File tree

6 files changed

+42
-81
lines changed

6 files changed

+42
-81
lines changed

data/fixtures/scopes/c/class.scope

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
11
struct Foo {};
2-
3-
typedef struct { } Bar;
42
---
53

6-
[#1 Content] =
7-
[#1 Domain] = 0:0-0:14
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:14
87
>--------------<
98
0| struct Foo {};
109

11-
[#1 Removal] = 0:0-2:0
12-
>--------------
13-
0| struct Foo {};
14-
1|
15-
2| typedef struct { } Bar;
16-
<
17-
18-
[#1 Insertion delimiter] = "\n\n"
19-
20-
21-
[#2 Content] =
22-
[#2 Domain] = 2:0-2:23
23-
>-----------------------<
24-
2| typedef struct { } Bar;
25-
26-
[#2 Removal] = 0:14-2:23
27-
>
28-
0| struct Foo {};
29-
1|
30-
2| typedef struct { } Bar;
31-
-----------------------<
32-
33-
[#2 Insertion delimiter] = "\n\n"
10+
[Insertion delimiter] = "\n\n"
Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
11
union Foo {};
2-
3-
typedef union { } Bar;
42
---
53

6-
[#1 Content] =
7-
[#1 Domain] = 0:0-0:13
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:13
87
>-------------<
98
0| union Foo {};
109

11-
[#1 Removal] = 0:0-2:0
12-
>-------------
13-
0| union Foo {};
14-
1|
15-
2| typedef union { } Bar;
16-
<
17-
18-
[#1 Insertion delimiter] = "\n\n"
19-
20-
21-
[#2 Content] =
22-
[#2 Domain] = 2:0-2:22
23-
>----------------------<
24-
2| typedef union { } Bar;
25-
26-
[#2 Removal] = 0:13-2:22
27-
>
28-
0| union Foo {};
29-
1|
30-
2| typedef union { } Bar;
31-
----------------------<
32-
33-
[#2 Insertion delimiter] = "\n\n"
10+
[Insertion delimiter] = "\n\n"
Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
11
enum Foo {};
2-
3-
typedef enum { } Bar;
42
---
53

6-
[#1 Content] =
7-
[#1 Domain] = 0:0-0:12
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:12
87
>------------<
98
0| enum Foo {};
109

11-
[#1 Removal] = 0:0-2:0
12-
>------------
13-
0| enum Foo {};
14-
1|
15-
2| typedef enum { } Bar;
16-
<
17-
18-
[#1 Insertion delimiter] = "\n\n"
19-
20-
21-
[#2 Content] =
22-
[#2 Domain] = 2:0-2:21
23-
>---------------------<
24-
2| typedef enum { } Bar;
25-
26-
[#2 Removal] = 0:12-2:21
27-
>
28-
0| enum Foo {};
29-
1|
30-
2| typedef enum { } Bar;
31-
---------------------<
32-
33-
[#2 Insertion delimiter] = "\n\n"
10+
[Insertion delimiter] = "\n\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
typedef struct { } Bar;
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:23
7+
>-----------------------<
8+
0| typedef struct { } Bar;
9+
10+
[Insertion delimiter] = "\n\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
typedef union { } Bar;
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:22
7+
>----------------------<
8+
0| typedef union { } Bar;
9+
10+
[Insertion delimiter] = "\n\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
typedef enum { } Bar;
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:21
7+
>---------------------<
8+
0| typedef enum { } Bar;
9+
10+
[Insertion delimiter] = "\n\n"

0 commit comments

Comments
 (0)