(name: string)
| 304 | const RUBY_HOOK_RE = /^(skip_)?(before|after|around)_[a-z_]+$/; |
| 305 | const RUBY_HOOK_NAMES = new Set(['validate', 'set_callback', 'helper_method', 'rescue_from']); |
| 306 | function isRubyHookCall(name: string): boolean { |
| 307 | return RUBY_HOOK_RE.test(name) || RUBY_HOOK_NAMES.has(name); |
| 308 | } |
| 309 | |
| 310 | const SWIFT_SPEC: FnRefSpec = { |
| 311 | idTypes: new Set(['simple_identifier']), |