From c4b40296f7cdd6a8815f948fec7b15408418e024 Mon Sep 17 00:00:00 2001 From: Nils Hjelte Date: Fri, 22 Sep 2023 15:52:10 +0200 Subject: [PATCH] Make SourceRange constructor public --- Sources/Core/SourceRange.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Core/SourceRange.swift b/Sources/Core/SourceRange.swift index 224a1239e..6eee3127c 100644 --- a/Sources/Core/SourceRange.swift +++ b/Sources/Core/SourceRange.swift @@ -14,7 +14,7 @@ public struct SourceRange: Hashable { public var end: SourceFile.Index { indices.upperBound } /// Creates an instance with the given properties. - init(_ indices: Range, in file: SourceFile) { + public init(_ indices: Range, in file: SourceFile) { self.file = file self.indices = indices }