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