Skip to content

Commit 93c2e4a

Browse files
authored
Merge pull request #59251 from rintaro/5.7-ide-completion-rdar92970201
[5.7][CodeCompletion] _compilerInitialized and _local are UserInaccessible
2 parents e273415 + f70699a commit 93c2e4a

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

include/swift/AST/Attr.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ SIMPLE_DECL_ATTR(objcMembers, ObjCMembers,
267267
34)
268268
CONTEXTUAL_SIMPLE_DECL_ATTR(_compilerInitialized, CompilerInitialized,
269269
OnVar |
270+
UserInaccessible |
270271
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove,
271272
35)
272273
CONTEXTUAL_SIMPLE_DECL_ATTR(__consuming, Consuming,
@@ -726,6 +727,7 @@ DECL_ATTR(_backDeploy, BackDeploy,
726727

727728
CONTEXTUAL_SIMPLE_DECL_ATTR(_local, KnownToBeLocal,
728729
DeclModifier | OnFunc | OnParam | OnVar |
730+
UserInaccessible |
729731
ABIBreakingToAdd | ABIBreakingToRemove |
730732
APIBreakingToAdd | APIBreakingToRemove,
731733
130)

test/SourceKit/CodeComplete/complete_override.swift.response

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
22
key.results: [
3-
{
4-
key.kind: source.lang.swift.keyword,
5-
key.name: "_compilerInitialized",
6-
key.sourcetext: "_compilerInitialized",
7-
key.description: "_compilerInitialized",
8-
key.typename: "",
9-
key.context: source.codecompletion.context.none,
10-
key.typerelation: source.codecompletion.typerelation.notapplicable,
11-
key.num_bytes_to_erase: 0
12-
},
133
{
144
key.kind: source.lang.swift.keyword,
155
key.name: "_const",
@@ -20,16 +10,6 @@
2010
key.typerelation: source.codecompletion.typerelation.notapplicable,
2111
key.num_bytes_to_erase: 0
2212
},
23-
{
24-
key.kind: source.lang.swift.keyword,
25-
key.name: "_local",
26-
key.sourcetext: "_local",
27-
key.description: "_local",
28-
key.typename: "",
29-
key.context: source.codecompletion.context.none,
30-
key.typerelation: source.codecompletion.typerelation.notapplicable,
31-
key.num_bytes_to_erase: 0
32-
},
3313
{
3414
key.kind: source.lang.swift.keyword,
3515
key.name: "actor",

0 commit comments

Comments
 (0)