Skip to content

Commit

Permalink
Confirm FIleNode to CustomDebugStringConvertible
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Aug 30, 2024
1 parent c8c61d5 commit f57fd7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CotEditor/Sources/FileNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ extension FileNode: Hashable {
}


extension FileNode: CustomDebugStringConvertible {

var debugDescription: String {

"\(type(of: self))(name: \(self.name), isDirectory: \(self.isDirectory))"
}
}


extension FileNode {

/// Finds the node at the given `fileURL` in the node tree.
Expand Down

0 comments on commit f57fd7e

Please sign in to comment.