1- /*
2- This source file is part of the Swift.org open source project
3-
4- Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
5- Licensed under Apache License v2.0 with Runtime Library Exception
6-
7- See http://swift.org/LICENSE.txt for license information
8- See http://swift.org/CONTRIBUTORS.txt for Swift project authors
9- */
1+ //===----------------------------------------------------------------------===//
2+ //
3+ // This source file is part of the Swift open source project
4+ //
5+ // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
6+ // Licensed under Apache License v2.0 with Runtime Library Exception
7+ //
8+ // See http://swift.org/LICENSE.txt for license information
9+ // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+ //
11+ //===----------------------------------------------------------------------===//
1012
1113import class Foundation. NSLock
1214import class Dispatch. DispatchQueue
@@ -23,7 +25,7 @@ public final class InMemoryFileSystem: FileSystem {
2325 private class Node {
2426 /// The actual node data.
2527 let contents : NodeContents
26-
28+
2729 /// Whether the node has executable bit enabled.
2830 var isExecutable : Bool
2931
@@ -502,7 +504,7 @@ public final class InMemoryFileSystem: FileSystem {
502504
503505 return try fileQueue. sync ( flags: type == . exclusive ? . barrier : . init( ) , execute: body)
504506 }
505-
507+
506508 public func withLock< T> ( on path: TSCBasic . AbsolutePath , type: FileLock . LockType , blocking: Bool , _ body: ( ) throws -> T ) throws -> T {
507509 try self . withLock ( on: path, type: type, body)
508510 }
0 commit comments