Skip to content

Commit 822089b

Browse files
authored
Merge pull request #386 from jsoref/swift-42615
spelling: syntax updates
2 parents 0fdca23 + 8e75908 commit 822089b

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

Sources/SwiftSyntax/gyb_generated/SyntaxBuilders.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6431,8 +6431,8 @@ public struct TargetFunctionEntrySyntaxBuilder {
64316431
layout[idx] = node.raw
64326432
}
64336433

6434-
public mutating func useDelcname(_ node: DeclNameSyntax) {
6435-
let idx = TargetFunctionEntrySyntax.Cursor.delcname.rawValue
6434+
public mutating func useDeclname(_ node: DeclNameSyntax) {
6435+
let idx = TargetFunctionEntrySyntax.Cursor.declname.rawValue
64366436
layout[idx] = node.raw
64376437
}
64386438

Sources/SwiftSyntax/gyb_generated/SyntaxClassification.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public enum SyntaxClassification {
2929
case floatingLiteral
3030
/// A string literal including multiline string literals.
3131
case stringLiteral
32-
/// The opening and closing paranthesis of string interpolation.
32+
/// The opening and closing parenthesis of string interpolation.
3333
case stringInterpolationAnchor
3434
/// A `#` keyword like `#warning`.
3535
case poundDirectiveKeyword

Sources/SwiftSyntax/gyb_generated/SyntaxFactory.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2922,11 +2922,11 @@ public enum SyntaxFactory {
29222922
], length: .zero, presence: .present))
29232923
return LabeledSpecializeEntrySyntax(data)
29242924
}
2925-
public static func makeTargetFunctionEntry(label: TokenSyntax, colon: TokenSyntax, delcname: DeclNameSyntax, trailingComma: TokenSyntax?) -> TargetFunctionEntrySyntax {
2925+
public static func makeTargetFunctionEntry(label: TokenSyntax, colon: TokenSyntax, declname: DeclNameSyntax, trailingComma: TokenSyntax?) -> TargetFunctionEntrySyntax {
29262926
let layout: [RawSyntax?] = [
29272927
label.raw,
29282928
colon.raw,
2929-
delcname.raw,
2929+
declname.raw,
29302930
trailingComma?.raw,
29312931
]
29322932
let raw = RawSyntax.createAndCalcLength(kind: SyntaxKind.targetFunctionEntry,

Sources/SwiftSyntax/gyb_generated/syntax_nodes/SyntaxNodes.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6988,7 +6988,7 @@ public struct TargetFunctionEntrySyntax: SyntaxProtocol, SyntaxHashable {
69886988
enum Cursor: Int {
69896989
case label
69906990
case colon
6991-
case delcname
6991+
case declname
69926992
case trailingComma
69936993
}
69946994

@@ -7058,24 +7058,24 @@ public struct TargetFunctionEntrySyntax: SyntaxProtocol, SyntaxHashable {
70587058
}
70597059

70607060
/// The value for this argument
7061-
public var delcname: DeclNameSyntax {
7061+
public var declname: DeclNameSyntax {
70627062
get {
7063-
let childData = data.child(at: Cursor.delcname,
7063+
let childData = data.child(at: Cursor.declname,
70647064
parent: Syntax(self))
70657065
return DeclNameSyntax(childData!)
70667066
}
70677067
set(value) {
7068-
self = withDelcname(value)
7068+
self = withDeclname(value)
70697069
}
70707070
}
70717071

7072-
/// Returns a copy of the receiver with its `delcname` replaced.
7073-
/// - param newChild: The new `delcname` to replace the node's
7074-
/// current `delcname`, if present.
7075-
public func withDelcname(
7072+
/// Returns a copy of the receiver with its `declname` replaced.
7073+
/// - param newChild: The new `declname` to replace the node's
7074+
/// current `declname`, if present.
7075+
public func withDeclname(
70767076
_ newChild: DeclNameSyntax?) -> TargetFunctionEntrySyntax {
70777077
let raw = newChild?.raw ?? RawSyntax.missing(SyntaxKind.declName)
7078-
let newData = data.replacingChild(raw, at: Cursor.delcname)
7078+
let newData = data.replacingChild(raw, at: Cursor.declname)
70797079
return TargetFunctionEntrySyntax(newData)
70807080
}
70817081

@@ -7151,7 +7151,7 @@ extension TargetFunctionEntrySyntax: CustomReflectable {
71517151
return Mirror(self, children: [
71527152
"label": Syntax(label).asProtocol(SyntaxProtocol.self),
71537153
"colon": Syntax(colon).asProtocol(SyntaxProtocol.self),
7154-
"delcname": Syntax(delcname).asProtocol(SyntaxProtocol.self),
7154+
"declname": Syntax(declname).asProtocol(SyntaxProtocol.self),
71557155
"trailingComma": trailingComma.map(Syntax.init)?.asProtocol(SyntaxProtocol.self) as Any,
71567156
])
71577157
}
@@ -7603,7 +7603,7 @@ extension ImplementsAttributeArgumentsSyntax: CustomReflectable {
76037603
// MARK: - ObjCSelectorPieceSyntax
76047604

76057605
///
7606-
/// A piece of an Objective-C selector. Either consisiting of just an
7606+
/// A piece of an Objective-C selector. Either consisting of just an
76077607
/// identifier for a nullary selector, an identifier and a colon for a
76087608
/// labeled argument or just a colon for an unlabeled argument
76097609
///
@@ -13926,7 +13926,7 @@ extension AvailabilityVersionRestrictionSyntax: CustomReflectable {
1392613926

1392713927
///
1392813928
/// A version number of the form major.minor.patch in which the minor
13929-
/// and patch part may be ommited.
13929+
/// and patch part may be omitted.
1393013930
///
1393113931
public struct VersionTupleSyntax: SyntaxProtocol, SyntaxHashable {
1393213932
enum Cursor: Int {

Sources/SwiftSyntaxBuilder/gyb_generated/BuildableNodes.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7927,25 +7927,25 @@ public struct LabeledSpecializeEntry: SyntaxBuildable, ExpressibleAsLabeledSpeci
79277927
public struct TargetFunctionEntry: SyntaxBuildable, ExpressibleAsTargetFunctionEntry {
79287928
let label: TokenSyntax
79297929
let colon: TokenSyntax
7930-
let delcname: DeclName
7930+
let declname: DeclName
79317931
let trailingComma: TokenSyntax?
79327932

79337933
/// Creates a `TargetFunctionEntry` using the provided parameters.
79347934
/// - Parameters:
79357935
/// - label: The label of the argument
79367936
/// - colon: The colon separating the label and the value
7937-
/// - delcname: The value for this argument
7937+
/// - declname: The value for this argument
79387938
/// - trailingComma: A trailing comma if this argument is followed by another one
79397939
public init(
79407940
label: TokenSyntax,
79417941
colon: TokenSyntax = TokenSyntax.`colon`,
7942-
delcname: ExpressibleAsDeclName,
7942+
declname: ExpressibleAsDeclName,
79437943
trailingComma: TokenSyntax? = nil
79447944
) {
79457945
self.label = label
79467946
self.colon = colon
79477947
assert(colon.text == ":")
7948-
self.delcname = delcname.createDeclName()
7948+
self.declname = declname.createDeclName()
79497949
self.trailingComma = trailingComma
79507950
assert(trailingComma == nil || trailingComma!.text == ",")
79517951
}
@@ -7956,13 +7956,13 @@ public struct TargetFunctionEntry: SyntaxBuildable, ExpressibleAsTargetFunctionE
79567956
public init(
79577957
label: String,
79587958
colon: TokenSyntax = TokenSyntax.`colon`,
7959-
delcname: ExpressibleAsDeclName,
7959+
declname: ExpressibleAsDeclName,
79607960
trailingComma: TokenSyntax? = nil
79617961
) {
79627962
self.init(
79637963
label: TokenSyntax.identifier(label),
79647964
colon: colon,
7965-
delcname: delcname,
7965+
declname: declname,
79667966
trailingComma: trailingComma
79677967
)
79687968
}
@@ -7971,7 +7971,7 @@ public struct TargetFunctionEntry: SyntaxBuildable, ExpressibleAsTargetFunctionE
79717971
let result = SyntaxFactory.makeTargetFunctionEntry(
79727972
label: label,
79737973
colon: colon,
7974-
delcname: delcname.buildDeclName(format: format, leadingTrivia: nil),
7974+
declname: declname.buildDeclName(format: format, leadingTrivia: nil),
79757975
trailingComma: trailingComma
79767976
)
79777977
if let leadingTrivia = leadingTrivia {
@@ -8163,7 +8163,7 @@ public struct ImplementsAttributeArguments: SyntaxBuildable, ExpressibleAsImplem
81638163
}
81648164

81658165
}
8166-
/// A piece of an Objective-C selector. Either consisiting of just anidentifier for a nullary selector, an identifier and a colon for alabeled argument or just a colon for an unlabeled argument
8166+
/// A piece of an Objective-C selector. Either consisting of just anidentifier for a nullary selector, an identifier and a colon for alabeled argument or just a colon for an unlabeled argument
81678167
public struct ObjCSelectorPiece: SyntaxBuildable, ExpressibleAsObjCSelectorPiece {
81688168
let name: TokenSyntax?
81698169
let colon: TokenSyntax?
@@ -13523,7 +13523,7 @@ public struct AvailabilityVersionRestriction: SyntaxBuildable, ExpressibleAsAvai
1352313523
}
1352413524

1352513525
}
13526-
/// A version number of the form major.minor.patch in which the minorand patch part may be ommited.
13526+
/// A version number of the form major.minor.patch in which the minorand patch part may be omitted.
1352713527
public struct VersionTuple: SyntaxBuildable, ExpressibleAsVersionTuple {
1352813528
let majorMinor: SyntaxBuildable
1352913529
let patchPeriod: TokenSyntax?

Sources/SwiftSyntaxParser/gyb_generated/NodeDeclarationHash.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
extension SyntaxParser {
1818
static func verifyNodeDeclarationHash() -> Bool {
1919
return String(cString: swiftparse_syntax_structure_versioning_identifier()!) ==
20-
"9adb90dde0ca797a8bd9be567fefc6f4e027c3a5"
20+
"91db81d59d0370360363fd7286f85bafe5b7f36f"
2121
}
2222
}

0 commit comments

Comments
 (0)