(name: string)
| 288 | const RUBY_HOOK_RE = /^(skip_)?(before|after|around)_[a-z_]+$/; |
| 289 | const RUBY_HOOK_NAMES = new Set(['validate', 'set_callback', 'helper_method', 'rescue_from']); |
| 290 | function isRubyHookCall(name: string): boolean { |
| 291 | return RUBY_HOOK_RE.test(name) || RUBY_HOOK_NAMES.has(name); |
| 292 | } |
| 293 | |
| 294 | const SWIFT_SPEC: FnRefSpec = { |
| 295 | idTypes: new Set(['simple_identifier']), |