Skip to content

Commit 6381001

Browse files
authored
Removed dependencies other than SwiftSyntax (#9)
1 parent e4b9e83 commit 6381001

File tree

3 files changed

+1
-52
lines changed

3 files changed

+1
-52
lines changed

Package.resolved

Lines changed: 1 addition & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,15 @@ let package = Package(
2020
)
2121
],
2222
dependencies: [
23-
.package(
24-
url: "https://github.com/NSFatalError/Principle",
25-
from: "1.0.0"
26-
),
2723
.package(
2824
url: "https://github.com/swiftlang/swift-syntax",
2925
"600.0.0" ..< "602.0.0"
30-
),
31-
.package(
32-
url: "https://github.com/apple/swift-algorithms",
33-
from: "1.2.0"
3426
)
3527
],
3628
targets: [
3729
.target(
3830
name: "PrincipleMacros",
3931
dependencies: [
40-
.product(
41-
name: "PrincipleCollections",
42-
package: "Principle"
43-
),
44-
.product(
45-
name: "Algorithms",
46-
package: "swift-algorithms"
47-
),
4832
.product(
4933
name: "SwiftSyntaxMacros",
5034
package: "swift-syntax"

Sources/PrincipleMacros/Parsers/Properties/PropertiesList.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// Copyright © 2025 Kamil Strzelecki. All rights reserved.
77
//
88

9-
import Algorithms
10-
import PrincipleCollections
119
import SwiftSyntax
1210

1311
public struct PropertiesList: _ParserResultsCollection {
@@ -48,12 +46,6 @@ extension PropertiesList {
4846

4947
extension PropertiesList {
5048

51-
public var uniqueInferredTypes: [TypeSyntax] {
52-
all.lazy.map(\.inferredType)
53-
.uniqued(on: \.description)
54-
.sorted(on: \.description)
55-
}
56-
5749
public func withInferredType(like someType: TypeSyntax) -> Self {
5850
.init(filter { $0.inferredType.isLike(someType) })
5951
}

0 commit comments

Comments
 (0)