skip icon indicating copy to clipboard operation
skip copied to clipboard

Improve `// SKIP @bridge` annotation

Open piercifani opened this issue 2 months ago • 0 comments

Currently, if I wanted to bridge this code in a module where auto: false, I'd have to do:

// SKIP @bridge
public protocol ClientAlertHandler: Sendable {
  
  // SKIP @bridge
  func displayAlert(_ alert: ClientAlert)
  
  // SKIP @bridge
  func displayAlertError(_ error: Error)

  func displayDecimal(_ decimal: Decimal)
}

However, I'd be more appropriate if I could:

// SKIP @bridge-all-members
public protocol ClientAlertHandler: Sendable {
  
  func displayAlert(_ alert: ClientAlert)
  
  func displayAlertError(_ error: Error)

  // SKIP @nobridge
  func displayDecimal(_ decimal: Decimal)
}

piercifani avatar Oct 31 '25 15:10 piercifani