internal static bool IsGenerator(ScriptNode node) { return (node.GetType() == Token.FUNCTION) && ((FunctionNode)node).IsGenerator(); }