Skip to content

Commit 42de0a8

Browse files
committed
Remove _consume/_copy/_mutate
1 parent 8cc38d3 commit 42de0a8

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

CodeGeneration/Sources/SyntaxSupport/KeywordSpec.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ public enum Keyword: CaseIterable {
108108
case _Class
109109
case _compilerInitialized
110110
case _const
111-
case _consume
112111
case _consuming
113-
case _copy
114112
case _documentation
115113
case _dynamicReplacement
116114
case _effects
@@ -121,7 +119,6 @@ public enum Keyword: CaseIterable {
121119
case _local
122120
case _modify
123121
case _move
124-
case _mutate
125122
case _mutating
126123
case _NativeClass
127124
case _NativeRefCountedObject
@@ -345,12 +342,8 @@ public enum Keyword: CaseIterable {
345342
return KeywordSpec("_compilerInitialized")
346343
case ._const:
347344
return KeywordSpec("_const")
348-
case ._consume:
349-
return KeywordSpec("_consume", experimentalFeature: .nonescapableTypes)
350345
case ._consuming:
351346
return KeywordSpec("_consuming", experimentalFeature: .referenceBindings)
352-
case ._copy:
353-
return KeywordSpec("_copy", experimentalFeature: .nonescapableTypes)
354347
case ._documentation:
355348
return KeywordSpec("_documentation")
356349
case ._dynamicReplacement:
@@ -371,8 +364,6 @@ public enum Keyword: CaseIterable {
371364
return KeywordSpec("_modify")
372365
case ._move:
373366
return KeywordSpec("_move")
374-
case ._mutate:
375-
return KeywordSpec("_mutate", experimentalFeature: .nonescapableTypes)
376367
case ._mutating:
377368
return KeywordSpec("_mutating", experimentalFeature: .referenceBindings)
378369
case ._NativeClass:

Sources/SwiftParser/TokenPrecedence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ enum TokenPrecedence: Comparable {
233233
.__setter_access, .indirect, .isolated, .nonisolated, .distributed, ._local,
234234
.inout, ._mutating, ._borrow, ._borrowing, .borrowing, ._consuming, .consuming, .consume, ._resultDependsOnSelf,
235235
._resultDependsOn,
236-
.transferring, ._consume, ._copy, ._mutate, .dependsOn, .scoped,
236+
.transferring, .dependsOn, .scoped,
237237
// Accessors
238238
.get, .set, .didSet, .willSet, .unsafeAddress, .addressWithOwner, .addressWithNativeOwner, .unsafeMutableAddress,
239239
.mutableAddressWithOwner, .mutableAddressWithNativeOwner, ._read, ._modify,

Sources/SwiftSyntax/generated/Keyword.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ public enum Keyword: UInt8, Hashable, Sendable {
2828
case _compilerInitialized
2929
case _const
3030
@_spi(ExperimentalLanguageFeatures)
31-
case _consume
32-
@_spi(ExperimentalLanguageFeatures)
3331
case _consuming
34-
@_spi(ExperimentalLanguageFeatures)
35-
case _copy
3632
case _documentation
3733
case _dynamicReplacement
3834
case _effects
@@ -44,8 +40,6 @@ public enum Keyword: UInt8, Hashable, Sendable {
4440
case _modify
4541
case _move
4642
@_spi(ExperimentalLanguageFeatures)
47-
case _mutate
48-
@_spi(ExperimentalLanguageFeatures)
4943
case _mutating
5044
case _NativeClass
5145
case _NativeRefCountedObject
@@ -347,8 +341,6 @@ public enum Keyword: UInt8, Hashable, Sendable {
347341
}
348342
case 5:
349343
switch text {
350-
case "_copy":
351-
self = ._copy
352344
case "_move":
353345
self = ._move
354346
case "_read":
@@ -461,8 +453,6 @@ public enum Keyword: UInt8, Hashable, Sendable {
461453
self = ._linear
462454
case "_modify":
463455
self = ._modify
464-
case "_mutate":
465-
self = ._mutate
466456
case "consume":
467457
self = .consume
468458
case "default":
@@ -500,8 +490,6 @@ public enum Keyword: UInt8, Hashable, Sendable {
500490
switch text {
501491
case "__shared":
502492
self = .__shared
503-
case "_consume":
504-
self = ._consume
505493
case "_effects":
506494
self = ._effects
507495
case "_forward":
@@ -834,9 +822,7 @@ public enum Keyword: UInt8, Hashable, Sendable {
834822
"_Class",
835823
"_compilerInitialized",
836824
"_const",
837-
"_consume",
838825
"_consuming",
839-
"_copy",
840826
"_documentation",
841827
"_dynamicReplacement",
842828
"_effects",
@@ -847,7 +833,6 @@ public enum Keyword: UInt8, Hashable, Sendable {
847833
"_local",
848834
"_modify",
849835
"_move",
850-
"_mutate",
851836
"_mutating",
852837
"_NativeClass",
853838
"_NativeRefCountedObject",

0 commit comments

Comments
 (0)