func isDistributed()

in FishyTransport/Sources/FishyActorsGenerator/Analysis.swift [143:160]


  func isDistributed(_ node: ClassDeclSyntax) -> Bool {
    let isActor = node.classOrActorKeyword.text == "actor"
    guard isActor else {
      return false
    }
    
    guard let mods = node.modifiers else {
      return false
    }
    
    for mod in mods {
      if mod.name.text ==  "distributed" {
        return true
      }
    }
    
    return false
  }