Skip to content

Commit 3913bbd

Browse files
authored
Merge pull request #992 from CodaFi/part-and-parsel
2 parents 0663a53 + 87d4eef commit 3913bbd

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Sources/swift-parser-cli/swift-parser-cli.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ class ExpandMacros: ParsableCommand {
216216
func run() throws {
217217
let source = try getContentsOfSourceFile(at: sourceFile)
218218

219-
try source.withUnsafeBufferPointer { sourceBuffer in
220-
let tree = try Parser.parse(source: sourceBuffer)
219+
source.withUnsafeBufferPointer { sourceBuffer in
220+
let tree = Parser.parse(source: sourceBuffer)
221221

222222
let resultTree: Syntax
223223
if foldSequences {

Tests/SwiftSyntaxBuilderTest/EnumCaseElementTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ final class EnumCaseElementTests: XCTestCase {
2424
EnumCaseElement(identifier: "hi")
2525
}
2626
}
27-
let syntax = buildable.buildSyntax()
28-
2927
AssertBuildResult(buildable,
3028
"""
3129
␣enum Greeting: String, Codable, Equatable {

Tests/SwiftSyntaxBuilderTest/FunctionTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ final class FunctionTests: XCTestCase {
8484
}
8585
})
8686
let buildable = FunctionCallExpr(calledExpression: "test", trailingClosure: closure)
87-
let syntax = buildable.buildSyntax()
8887
AssertBuildResult(
8988
buildable,
9089
"""

0 commit comments

Comments
 (0)