Skip to content

Commit 88b81de

Browse files
authored
Merge pull request #58773 from rintaro/ide-completion-rdar92970201
[CodeCompletion] _compilerInitialized and _local are UserInaccessible
2 parents 2b1c39f + 9f3bc0e commit 88b81de

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
@@ -268,6 +268,7 @@ SIMPLE_DECL_ATTR(objcMembers, ObjCMembers,
268268
34)
269269
CONTEXTUAL_SIMPLE_DECL_ATTR(_compilerInitialized, CompilerInitialized,
270270
OnVar |
271+
UserInaccessible |
271272
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove,
272273
35)
273274
CONTEXTUAL_SIMPLE_DECL_ATTR(__consuming, Consuming,
@@ -727,6 +728,7 @@ DECL_ATTR(_backDeploy, BackDeploy,
727728

728729
CONTEXTUAL_SIMPLE_DECL_ATTR(_local, KnownToBeLocal,
729730
DeclModifier | OnFunc | OnParam | OnVar |
731+
UserInaccessible |
730732
ABIBreakingToAdd | ABIBreakingToRemove |
731733
APIBreakingToAdd | APIBreakingToRemove,
732734
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)