Skip to content

Commit

Permalink
Merge pull request #247 from pablocornejo/feature/swift-syntax-5.9
Browse files Browse the repository at this point in the history
Update swift-syntax to 509.0.0
  • Loading branch information
alanzeino authored Feb 14, 2024
2 parents e07a778 + 519439f commit df35505
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 119 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
.library(name: "MockoloFramework", targets: ["MockoloFramework"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", exact: "508.0.0"),
.package(url: "https://github.com/apple/swift-syntax.git", exact: "509.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.2"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/MockoloFramework/Models/ParsedEntity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct ResolvedEntityContainer {
}

protocol EntityNode {
var name: String { get }
var nameText: String { get }
var accessLevel: String { get }
var attributesDescription: String { get }
var declType: DeclType { get }
Expand Down
6 changes: 3 additions & 3 deletions Sources/MockoloFramework/Operations/Generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public func generate(sourceDirs: [String],
if let mockFilePaths = mockFilePaths, !mockFilePaths.isEmpty {
parser.parseProcessedDecls(mockFilePaths, fileMacro: macro) { (elements, imports) in
elements.forEach { element in
parentMocks[element.entityNode.name] = element
parentMocks[element.entityNode.nameText] = element
}

if let imports = imports {
Expand All @@ -92,9 +92,9 @@ public func generate(sourceDirs: [String],
fileMacro: macro,
declType: declType) { (elements, imports) in
elements.forEach { element in
protocolMap[element.entityNode.name] = element
protocolMap[element.entityNode.nameText] = element
if element.isAnnotated {
annotatedProtocolMap[element.entityNode.name] = element
annotatedProtocolMap[element.entityNode.nameText] = element
}
}
if let imports = imports {
Expand Down
Loading

0 comments on commit df35505

Please sign in to comment.