Lines Matching defs:function

13 if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
22 function noop () {}
24 function publishQueue(context, queue) {
26 get: function() {
36 debug = function() {
52 fs.close = (function (fs$close) {
53 function close (fd, cb) {
54 return fs$close.call(fs, fd, function (err) {
55 // This function uses the graceful-fs shared queue
60 if (typeof cb === 'function')
71 fs.closeSync = (function (fs$closeSync) {
72 function closeSync (fd) {
73 // This function uses the graceful-fs shared queue
85 process.on('exit', function() {
102 function patch (fs) {
103 // Everything that references the open() function needs to be in here
111 function readFile (path, options, cb) {
112 if (typeof options === 'function')
117 function go$readFile (path, options, cb, startTime) {
118 return fs$readFile(path, options, function (err) {
122 if (typeof cb === 'function')
131 function writeFile (path, data, options, cb) {
132 if (typeof options === 'function')
137 function go$writeFile (path, data, options, cb, startTime) {
138 return fs$writeFile(path, data, options, function (err) {
142 if (typeof cb === 'function')
152 function appendFile (path, data, options, cb) {
153 if (typeof options === 'function')
158 function go$appendFile (path, data, options, cb, startTime) {
159 return fs$appendFile(path, data, options, function (err) {
163 if (typeof cb === 'function')
173 function copyFile (src, dest, flags, cb) {
174 if (typeof flags === 'function') {
180 function go$copyFile (src, dest, flags, cb, startTime) {
181 return fs$copyFile(src, dest, flags, function (err) {
185 if (typeof cb === 'function')
195 function readdir (path, options, cb) {
196 if (typeof options === 'function')
200 ? function go$readdir (path, options, cb, startTime) {
205 : function go$readdir (path, options, cb, startTime) {
213 function fs$readdirCallback (path, options, cb, startTime) {
214 return function (err, files) {
227 if (typeof cb === 'function')
253 get: function () {
256 set: function (val) {
263 get: function () {
266 set: function (val) {
276 get: function () {
279 set: function (val) {
287 get: function () {
290 set: function (val) {
297 function ReadStream (path, options) {
304 function ReadStream$open () {
306 open(that.path, that.flags, that.mode, function (err, fd) {
320 function WriteStream (path, options) {
327 function WriteStream$open () {
329 open(that.path, that.flags, that.mode, function (err, fd) {
340 function createReadStream (path, options) {
344 function createWriteStream (path, options) {
350 function open (path, flags, mode, cb) {
351 if (typeof mode === 'function')
356 function go$open (path, flags, mode, cb, startTime) {
357 return fs$open(path, flags, mode, function (err, fd) {
361 if (typeof cb === 'function')
371 function enqueue (elem) {
383 function resetQueue () {
397 function retry () {
422 if (typeof cb === 'function')