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