@@ -213,10 +213,10 @@ extension ActorAddress {
213213 }
214214}
215215
216- public extension ActorAddress {
216+ extension ActorAddress {
217217 /// :nodoc:
218218 @inlinable
219- var _isLocal : Bool {
219+ public var _isLocal : Bool {
220220 switch self . _location {
221221 case . local: return true
222222 default : return false
@@ -225,20 +225,20 @@ public extension ActorAddress {
225225
226226 /// :nodoc:
227227 @inlinable
228- var _isRemote : Bool {
228+ public var _isRemote : Bool {
229229 !self . _isLocal
230230 }
231231
232232 /// :nodoc:
233233 @inlinable
234- var _asRemote : Self {
234+ public var _asRemote : Self {
235235 let remote = Self ( remote: self . uniqueNode, path: self . path, incarnation: self . incarnation)
236236 return remote
237237 }
238238
239239 /// :nodoc:
240240 @inlinable
241- var _asLocal : Self {
241+ public var _asLocal : Self {
242242 let local = Self ( local: self . uniqueNode, path: self . path, incarnation: self . incarnation)
243243 return local
244244 }
@@ -392,10 +392,10 @@ extension ActorPath: CustomStringConvertible {
392392 }
393393}
394394
395- public extension ActorPath {
396- static let _root : ActorPath = . init( ) // also known as "/"
397- static let _user : ActorPath = try ! ActorPath ( root: " user " )
398- static let _system : ActorPath = try ! ActorPath ( root: " system " )
395+ extension ActorPath {
396+ public static let _root : ActorPath = . init( ) // also known as "/"
397+ public static let _user : ActorPath = try ! ActorPath ( root: " user " )
398+ public static let _system : ActorPath = try ! ActorPath ( root: " system " )
399399
400400 internal func makeLocalAddress( on node: UniqueNode , incarnation: ActorIncarnation ) -> ActorAddress {
401401 . init( local: node, path: self , incarnation: incarnation)
@@ -421,14 +421,14 @@ public protocol _PathRelationships {
421421 func appending( segment: ActorPathSegment ) -> Self
422422}
423423
424- public extension _PathRelationships {
424+ extension _PathRelationships {
425425 /// Combines the base path with a child segment returning the concatenated path.
426426 internal static func / ( base: Self , child: ActorPathSegment ) -> Self {
427427 base. appending ( segment: child)
428428 }
429429
430430 /// Checks whether this path starts with the passed in `path`.
431- func starts( with path: ActorPath ) -> Bool {
431+ public func starts( with path: ActorPath ) -> Bool {
432432 self . segments. starts ( with: path. segments)
433433 }
434434
@@ -440,7 +440,7 @@ public extension _PathRelationships {
440440 ///
441441 /// - Parameter path: The path that is suspected to be the parent of `self`
442442 /// - Returns: `true` if this [ActorPath] is a direct descendant of `maybeParentPath`, `false` otherwise
443- func isChildPathOf( _ maybeParentPath: _PathRelationships ) -> Bool {
443+ public func isChildPathOf( _ maybeParentPath: _PathRelationships ) -> Bool {
444444 Array ( self . segments. dropLast ( ) ) == maybeParentPath. segments // TODO: more efficient impl, without the copying
445445 }
446446
@@ -452,7 +452,7 @@ public extension _PathRelationships {
452452 ///
453453 /// - Parameter path: The path that is suspected to be a child of `self`
454454 /// - Returns: `true` if this [ActorPath] is a direct ancestor of `maybeChildPath`, `false` otherwise
455- func isParentOf( _ maybeChildPath: _PathRelationships ) -> Bool {
455+ public func isParentOf( _ maybeChildPath: _PathRelationships ) -> Bool {
456456 maybeChildPath. isChildPathOf ( self )
457457 }
458458
@@ -582,18 +582,18 @@ public struct ActorIncarnation: Equatable, Hashable, ExpressibleByIntegerLiteral
582582 }
583583}
584584
585- public extension ActorIncarnation {
585+ extension ActorIncarnation {
586586 /// To be used ONLY by special actors whose existence is wellKnown and identity never-changing.
587587 /// Examples: `/system/deadLetters` or `/system/cluster`.
588- static let wellKnown : ActorIncarnation = . init( 0 )
588+ public static let wellKnown : ActorIncarnation = . init( 0 )
589589
590- static func random( ) -> ActorIncarnation {
590+ public static func random( ) -> ActorIncarnation {
591591 ActorIncarnation ( UInt32 . random ( in: UInt32 ( 1 ) ... UInt32 . max) )
592592 }
593593}
594594
595- internal extension ActorIncarnation {
596- init ? ( _ value: String ? ) {
595+ extension ActorIncarnation {
596+ internal init ? ( _ value: String ? ) {
597597 guard let int = ( value. flatMap {
598598 Int ( $0)
599599 } ) , int >= 0 else {
@@ -778,8 +778,8 @@ extension UniqueNodeID: CustomStringConvertible {
778778 }
779779}
780780
781- public extension UniqueNodeID {
782- static func random( ) -> UniqueNodeID {
781+ extension UniqueNodeID {
782+ public static func random( ) -> UniqueNodeID {
783783 UniqueNodeID ( UInt64 . random ( in: 1 ... . max) )
784784 }
785785}
0 commit comments