Skip to content

[NFC] Scale Back Foundation Dependency #500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/SourceLocation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public final class SourceLocationConverter {
public init(file: String, source: String) {
self.file = file
(self.lines, endOfFile) = computeLines(source)
assert(source.lengthOfBytes(using: .utf8) == endOfFile.utf8Offset)
assert(source.utf8.count == endOfFile.utf8Offset)
}

/// Convert a `AbsolutePosition` to a `SourceLocation`. If the position is
Expand Down
2 changes: 0 additions & 2 deletions Sources/SwiftSyntax/Trivia.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
//
//===----------------------------------------------------------------------===//

import Foundation

/// A contiguous stretch of a single kind of trivia. The constituent part of
/// a `Trivia` collection.
///
Expand Down
2 changes: 0 additions & 2 deletions Sources/SwiftSyntax/gyb_generated/Trivia.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
//
//===----------------------------------------------------------------------===//

import Foundation

/// A contiguous stretch of a single kind of trivia. The constituent part of
/// a `Trivia` collection.
///
Expand Down