decaffeinate-parser
Version:
A better AST for CoffeeScript, inspired by CoffeeScriptRedux.
8 lines (7 loc) • 363 B
TypeScript
import { Base } from 'decaffeinate-coffeescript2/lib/coffeescript/nodes';
import ParseContext from './ParseContext';
/**
* Determine if the given CoffeeScript AST node is an interpolated heregex node
* that's pretending to be a function call to the RegExp function.
*/
export default function isHeregexTemplateNode(node: Base, context: ParseContext): boolean;