Skip to content
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: 0 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax.git", branch: "main"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMinor(from: "1.1.0")),
.package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.4.0")),
],
targets: [
Expand Down Expand Up @@ -309,7 +308,6 @@ let package = Package(
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Collections", package: "swift-collections"),
"JavaTypes",
],
swiftSettings: [
Expand Down
3 changes: 1 addition & 2 deletions Sources/JExtractSwift/ImportedDecls+Printing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import Foundation
import JavaTypes
import SwiftSyntax
import OrderedCollections

extension ImportedFunc {
/// Render a `@{@snippet ... }` comment section that can be put inside a JavaDoc comment
Expand Down Expand Up @@ -99,4 +98,4 @@ extension Optional where Wrapped == VariableAccessorKind {
func renderMethodName(_ decl: ImportedFunc) -> String {
self?.renderMethodName(decl) ?? decl.baseIdentifier
}
}
}
3 changes: 1 addition & 2 deletions Sources/JExtractSwift/ImportedDecls.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import Foundation
import JavaTypes
import SwiftSyntax
import OrderedCollections

/// Any imported (Swift) declaration
protocol ImportedDecl {
Expand Down Expand Up @@ -254,7 +253,7 @@ public struct ImportedVariable: ImportedDecl, CustomStringConvertible {
/// Usually this will be all the accessors the variable declares,
/// however if the getter is async or throwing we may not be able to import it
/// (yet), and therefore would skip it from the supported set.
public var supportedAccessorKinds: OrderedSet<VariableAccessorKind> = [.get, .set]
public var supportedAccessorKinds: [VariableAccessorKind] = [.get, .set]

/// This is the base identifier for the function, e.g., "init" for an
/// initializer or "f" for "f(a:b:)".
Expand Down