Skip to content

Commit 02fe99f

Browse files
committed
Remove unnecessary trailing semicolons
1 parent 55c4e46 commit 02fe99f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

CodeGeneration/Sources/generate-swift-syntax/templates/swiftsyntax/SyntaxEnumFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let syntaxEnumFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
6060

6161
for base in SYNTAX_NODES where base.kind.isBase {
6262
let baseKind = base.kind
63-
let baseName = baseKind.rawValue.withFirstCharacterUppercased;
63+
let baseName = baseKind.rawValue.withFirstCharacterUppercased
6464
let enumType: TypeSyntax = "\(raw: baseName)SyntaxEnum"
6565

6666
try! EnumDeclSyntax(

Sources/SwiftCompilerPluginMessageHandling/CompilerPluginMessageHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ extension CompilerPluginMessageHandler {
172172
)
173173
)
174174
}
175-
try self.sendMessage(.loadPluginLibraryResult(loaded: diags.isEmpty, diagnostics: diags));
175+
try self.sendMessage(.loadPluginLibraryResult(loaded: diags.isEmpty, diagnostics: diags))
176176
}
177177
}
178178
}

Sources/SwiftDiagnostics/GroupedDiagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ extension GroupedDiagnostics {
185185
let slc = sourceFile.sourceLocationConverter
186186
let diagnosticDecorator = formatter.diagnosticDecorator
187187

188-
let childPadding = String(slc.sourceLines.count + 1).count + 1;
188+
let childPadding = String(slc.sourceLines.count + 1).count + 1
189189

190190
// Collect the child sources.
191191
var childSources: [AbsolutePosition: String] = [:]

Sources/SwiftParser/Types.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ extension Parser.Lookahead {
695695
case TokenSpec(.Any):
696696
self.consumeAnyToken()
697697
case TokenSpec(.prefixOperator) where self.currentToken.tokenText == "~":
698-
self.consumeAnyToken();
698+
self.consumeAnyToken()
699699
fallthrough
700700
case TokenSpec(.Self), TokenSpec(.identifier):
701701
guard self.canParseTypeIdentifier() else {

Sources/SwiftSyntax/SwiftSyntaxCompatibility.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public extension WildcardPatternSyntax {
628628
wildcard: wildcard,
629629
unexpectedAfterTypeAnnotation,
630630
trailingTrivia: trailingTrivia
631-
);
631+
)
632632
}
633633

634634
@available(*, deprecated, message: "'unexpectedBetweenWildcardAndTypeAnnotation' was removed")

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/ProcessRunner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ProcessRunner {
120120
// Apparently using availableData can cause various issues
121121
let newData = fileHandle.readData(ofLength: Int.max)
122122
if newData.count == 0 {
123-
pipe.fileHandleForReading.readabilityHandler = nil;
123+
pipe.fileHandleForReading.readabilityHandler = nil
124124
group.leave()
125125
} else {
126126
addData(newData)

0 commit comments

Comments
 (0)