Skip to content

Commit f000639

Browse files
committed
Improve tests and generate the rest of the output
1 parent 2a48e19 commit f000639

24 files changed

+2741
-444
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public class ExportedClass {}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@_exported import Exported
2+
public class ModuleClass {}

test/SourceKit/Indexing/Inputs/implicit-vis/a.index.response

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,20 @@
2828
key.line: 2,
2929
key.column: 6,
3030
key.is_dynamic: 1,
31-
key.is_implicit: 1
31+
key.is_implicit: 1,
32+
key.effective_access: source.decl.effective_access.internal
3233
},
3334
{
3435
key.kind: source.lang.swift.decl.function.accessor.setter,
3536
key.usr: "s:12implicit_vis1AC1bAA1BCvs",
3637
key.line: 2,
3738
key.column: 6,
3839
key.is_dynamic: 1,
39-
key.is_implicit: 1
40+
key.is_implicit: 1,
41+
key.effective_access: source.decl.effective_access.internal
4042
}
41-
]
43+
],
44+
key.effective_access: source.decl.effective_access.internal
4245
},
4346
{
4447
key.kind: source.lang.swift.ref.class,
@@ -47,7 +50,8 @@
4750
key.line: 2,
4851
key.column: 9
4952
}
50-
]
53+
],
54+
key.effective_access: source.decl.effective_access.internal
5155
}
5256
]
5357
}

test/SourceKit/Indexing/Inputs/implicit-vis/b.index.response

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,20 @@
2828
key.line: 2,
2929
key.column: 6,
3030
key.is_dynamic: 1,
31-
key.is_implicit: 1
31+
key.is_implicit: 1,
32+
key.effective_access: source.decl.effective_access.internal
3233
},
3334
{
3435
key.kind: source.lang.swift.decl.function.accessor.setter,
3536
key.usr: "s:12implicit_vis1BC1aAA1ACvs",
3637
key.line: 2,
3738
key.column: 6,
3839
key.is_dynamic: 1,
39-
key.is_implicit: 1
40+
key.is_implicit: 1,
41+
key.effective_access: source.decl.effective_access.internal
4042
}
41-
]
43+
],
44+
key.effective_access: source.decl.effective_access.internal
4245
},
4346
{
4447
key.kind: source.lang.swift.ref.class,
@@ -47,7 +50,8 @@
4750
key.line: 2,
4851
key.column: 9
4952
}
50-
]
53+
],
54+
key.effective_access: source.decl.effective_access.internal
5155
}
5256
]
5357
}

test/SourceKit/Indexing/Inputs/test_module.index.response

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
{
2626
key.kind: source.lang.swift.decl.class,
2727
key.name: "Empty",
28-
key.usr: "s:11test_module5EmptyC"
28+
key.usr: "s:11test_module5EmptyC",
29+
key.effective_access: source.decl.effective_access.public
2930
},
3031
{
3132
key.kind: source.lang.swift.decl.class,
@@ -41,15 +42,18 @@
4142
key.kind: source.lang.swift.decl.function.accessor.getter,
4243
key.usr: "s:11test_module7TwoIntsC1xSivg",
4344
key.is_dynamic: 1,
44-
key.is_implicit: 1
45+
key.is_implicit: 1,
46+
key.effective_access: source.decl.effective_access.public
4547
},
4648
{
4749
key.kind: source.lang.swift.decl.function.accessor.setter,
4850
key.usr: "s:11test_module7TwoIntsC1xSivs",
4951
key.is_dynamic: 1,
50-
key.is_implicit: 1
52+
key.is_implicit: 1,
53+
key.effective_access: source.decl.effective_access.public
5154
}
52-
]
55+
],
56+
key.effective_access: source.decl.effective_access.public
5357
},
5458
{
5559
key.kind: source.lang.swift.decl.var.instance,
@@ -60,22 +64,27 @@
6064
key.kind: source.lang.swift.decl.function.accessor.getter,
6165
key.usr: "s:11test_module7TwoIntsC1ySivg",
6266
key.is_dynamic: 1,
63-
key.is_implicit: 1
67+
key.is_implicit: 1,
68+
key.effective_access: source.decl.effective_access.public
6469
},
6570
{
6671
key.kind: source.lang.swift.decl.function.accessor.setter,
6772
key.usr: "s:11test_module7TwoIntsC1ySivs",
6873
key.is_dynamic: 1,
69-
key.is_implicit: 1
74+
key.is_implicit: 1,
75+
key.effective_access: source.decl.effective_access.public
7076
}
71-
]
77+
],
78+
key.effective_access: source.decl.effective_access.public
7279
},
7380
{
7481
key.kind: source.lang.swift.decl.function.constructor,
7582
key.name: "init(a:b:)",
76-
key.usr: "s:11test_module7TwoIntsC1a1bACSi_Sitcfc"
83+
key.usr: "s:11test_module7TwoIntsC1a1bACSi_Sitcfc",
84+
key.effective_access: source.decl.effective_access.public
7785
}
78-
]
86+
],
87+
key.effective_access: source.decl.effective_access.public
7988
},
8089
{
8190
key.kind: source.lang.swift.decl.class,
@@ -91,22 +100,27 @@
91100
key.kind: source.lang.swift.decl.function.accessor.getter,
92101
key.name: "getter:value",
93102
key.usr: "s:11test_module16ComputedPropertyC5valueSivg",
94-
key.is_dynamic: 1
103+
key.is_dynamic: 1,
104+
key.effective_access: source.decl.effective_access.public
95105
},
96106
{
97107
key.kind: source.lang.swift.decl.function.accessor.setter,
98108
key.name: "setter:value",
99109
key.usr: "s:11test_module16ComputedPropertyC5valueSivs",
100-
key.is_dynamic: 1
110+
key.is_dynamic: 1,
111+
key.effective_access: source.decl.effective_access.public
101112
}
102-
]
113+
],
114+
key.effective_access: source.decl.effective_access.public
103115
}
104-
]
116+
],
117+
key.effective_access: source.decl.effective_access.public
105118
},
106119
{
107120
key.kind: source.lang.swift.decl.protocol,
108121
key.name: "Prot1",
109-
key.usr: "s:11test_module5Prot1P"
122+
key.usr: "s:11test_module5Prot1P",
123+
key.effective_access: source.decl.effective_access.public
110124
},
111125
{
112126
key.kind: source.lang.swift.decl.protocol,
@@ -118,17 +132,20 @@
118132
key.name: "Prot1",
119133
key.usr: "s:11test_module5Prot1P"
120134
}
121-
]
135+
],
136+
key.effective_access: source.decl.effective_access.public
122137
},
123138
{
124139
key.kind: source.lang.swift.decl.protocol,
125140
key.name: "Prot3",
126-
key.usr: "s:11test_module5Prot3P"
141+
key.usr: "s:11test_module5Prot3P",
142+
key.effective_access: source.decl.effective_access.public
127143
},
128144
{
129145
key.kind: source.lang.swift.decl.class,
130146
key.name: "C2",
131-
key.usr: "s:11test_module2C2C"
147+
key.usr: "s:11test_module2C2C",
148+
key.effective_access: source.decl.effective_access.public
132149
},
133150
{
134151
key.kind: source.lang.swift.decl.extension.class,
@@ -155,7 +172,8 @@
155172
{
156173
key.kind: source.lang.swift.decl.function.free,
157174
key.name: "globalFunc()",
158-
key.usr: "s:11test_module10globalFuncyyF"
175+
key.usr: "s:11test_module10globalFuncyyF",
176+
key.effective_access: source.decl.effective_access.public
159177
},
160178
{
161179
key.kind: source.lang.swift.decl.extension.class,

0 commit comments

Comments
 (0)