/third_party/typescript/tests/cases/conformance/parser/ecmascript5/ |
D | parserRealSource11.ts | 64 public emit(emitter: Emitter, tokenId: TokenID, startLine: boolean) { 65 emitter.emitParensAndCommentsInPlace(this, true); 68 emitter.recordSourceMappingStart(this); 69 … if (emitter.thisFnc && (hasFlag(emitter.thisFnc.fncFlags, FncFlags.IsFatArrowFunction))) { 70 emitter.writeToOutput("_this"); 73 emitter.writeToOutput("this"); 75 emitter.recordSourceMappingEnd(this); 78 emitter.recordSourceMappingStart(this); 79 emitter.writeToOutput("null"); 80 emitter.recordSourceMappingEnd(this); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | parserRealSource11.js | 65 public emit(emitter: Emitter, tokenId: TokenID, startLine: boolean) { 66 emitter.emitParensAndCommentsInPlace(this, true); 69 emitter.recordSourceMappingStart(this); 70 … if (emitter.thisFnc && (hasFlag(emitter.thisFnc.fncFlags, FncFlags.IsFatArrowFunction))) { 71 emitter.writeToOutput("_this"); 74 emitter.writeToOutput("this"); 76 emitter.recordSourceMappingEnd(this); 79 emitter.recordSourceMappingStart(this); 80 emitter.writeToOutput("null"); 81 emitter.recordSourceMappingEnd(this); [all …]
|
D | parserRealSource11.types | 214 public emit(emitter: Emitter, tokenId: TokenID, startLine: boolean) { 215 >emit : (emitter: Emitter, tokenId: TokenID, startLine: boolean) => void 216 >emitter : Emitter 220 emitter.emitParensAndCommentsInPlace(this, true); 221 >emitter.emitParensAndCommentsInPlace(this, true) : any 222 >emitter.emitParensAndCommentsInPlace : any 223 >emitter : Emitter 238 emitter.recordSourceMappingStart(this); 239 >emitter.recordSourceMappingStart(this) : any 240 >emitter.recordSourceMappingStart : any [all …]
|
D | parserRealSource11.symbols | 136 public emit(emitter: Emitter, tokenId: TokenID, startLine: boolean) { 138 >emitter : Symbol(emitter, Decl(parserRealSource11.ts, 63, 20)) 144 emitter.emitParensAndCommentsInPlace(this, true); 145 >emitter : Symbol(emitter, Decl(parserRealSource11.ts, 63, 20)) 154 emitter.recordSourceMappingStart(this); 155 >emitter : Symbol(emitter, Decl(parserRealSource11.ts, 63, 20)) 158 … if (emitter.thisFnc && (hasFlag(emitter.thisFnc.fncFlags, FncFlags.IsFatArrowFunction))) { 159 >emitter : Symbol(emitter, Decl(parserRealSource11.ts, 63, 20)) 160 >emitter : Symbol(emitter, Decl(parserRealSource11.ts, 63, 20)) 162 emitter.writeToOutput("_this"); [all …]
|
D | parserRealSource11.errors.txt | 610 public emit(emitter: Emitter, tokenId: TokenID, startLine: boolean) { 615 emitter.emitParensAndCommentsInPlace(this, true); 620 emitter.recordSourceMappingStart(this); 621 … if (emitter.thisFnc && (hasFlag(emitter.thisFnc.fncFlags, FncFlags.IsFatArrowFunction))) { 626 emitter.writeToOutput("_this"); 629 emitter.writeToOutput("this"); 631 emitter.recordSourceMappingEnd(this); 636 emitter.recordSourceMappingStart(this); 637 emitter.writeToOutput("null"); 638 emitter.recordSourceMappingEnd(this); [all …]
|
D | fatArrowSelf.symbols | 29 constructor (private emitter: Events.EventEmitter) { } 30 >emitter : Symbol(EventEmitterConsummer.emitter, Decl(fatArrowSelf.ts, 12, 21)) 37 this.emitter.addListener('change', (e) => { 38 >this.emitter.addListener : Symbol(Events.EventEmitter.addListener, Decl(fatArrowSelf.ts, 4, 31)) 39 >this.emitter : Symbol(EventEmitterConsummer.emitter, Decl(fatArrowSelf.ts, 12, 21)) 41 >emitter : Symbol(EventEmitterConsummer.emitter, Decl(fatArrowSelf.ts, 12, 21))
|
D | fatArrowSelf.types | 26 constructor (private emitter: Events.EventEmitter) { } 27 >emitter : Events.EventEmitter 33 this.emitter.addListener('change', (e) => { 34 >this.emitter.addListener('change', (e) => { this.changed(); }) : void 35 >this.emitter.addListener : (type: string, listener: Events.ListenerCallback) => void 36 >this.emitter : Events.EventEmitter 38 >emitter : Events.EventEmitter
|
D | fatArrowSelf.js | 14 constructor (private emitter: Events.EventEmitter) { } 17 this.emitter.addListener('change', (e) => { 42 function EventEmitterConsummer(emitter) { argument 43 this.emitter = emitter; 47 this.emitter.addListener('change', function (e) {
|
D | emitter.asyncGenerators.classMethods.es2018.types | 1 === tests/cases/conformance/emitter/es2018/asyncGenerators/C1.ts === 9 === tests/cases/conformance/emitter/es2018/asyncGenerators/C2.ts === 21 === tests/cases/conformance/emitter/es2018/asyncGenerators/C3.ts === 34 === tests/cases/conformance/emitter/es2018/asyncGenerators/C4.ts === 48 === tests/cases/conformance/emitter/es2018/asyncGenerators/C5.ts === 65 === tests/cases/conformance/emitter/es2018/asyncGenerators/C6.ts === 78 === tests/cases/conformance/emitter/es2018/asyncGenerators/C7.ts === 89 === tests/cases/conformance/emitter/es2018/asyncGenerators/C8.ts === 106 === tests/cases/conformance/emitter/es2018/asyncGenerators/C9.ts ===
|
D | emitter.asyncGenerators.classMethods.es5.types | 1 === tests/cases/conformance/emitter/es5/asyncGenerators/C1.ts === 9 === tests/cases/conformance/emitter/es5/asyncGenerators/C2.ts === 21 === tests/cases/conformance/emitter/es5/asyncGenerators/C3.ts === 34 === tests/cases/conformance/emitter/es5/asyncGenerators/C4.ts === 48 === tests/cases/conformance/emitter/es5/asyncGenerators/C5.ts === 65 === tests/cases/conformance/emitter/es5/asyncGenerators/C6.ts === 78 === tests/cases/conformance/emitter/es5/asyncGenerators/C7.ts === 89 === tests/cases/conformance/emitter/es5/asyncGenerators/C8.ts === 106 === tests/cases/conformance/emitter/es5/asyncGenerators/C9.ts ===
|
D | emitter.asyncGenerators.classMethods.es2015.types | 1 === tests/cases/conformance/emitter/es2015/asyncGenerators/C1.ts === 9 === tests/cases/conformance/emitter/es2015/asyncGenerators/C2.ts === 21 === tests/cases/conformance/emitter/es2015/asyncGenerators/C3.ts === 34 === tests/cases/conformance/emitter/es2015/asyncGenerators/C4.ts === 48 === tests/cases/conformance/emitter/es2015/asyncGenerators/C5.ts === 65 === tests/cases/conformance/emitter/es2015/asyncGenerators/C6.ts === 78 === tests/cases/conformance/emitter/es2015/asyncGenerators/C7.ts === 89 === tests/cases/conformance/emitter/es2015/asyncGenerators/C8.ts === 106 === tests/cases/conformance/emitter/es2015/asyncGenerators/C9.ts ===
|
D | emitter.asyncGenerators.functionExpressions.es5.symbols | 1 === tests/cases/conformance/emitter/es5/asyncGenerators/F1.ts === 5 === tests/cases/conformance/emitter/es5/asyncGenerators/F2.ts === 12 === tests/cases/conformance/emitter/es5/asyncGenerators/F3.ts === 19 === tests/cases/conformance/emitter/es5/asyncGenerators/F4.ts === 26 === tests/cases/conformance/emitter/es5/asyncGenerators/F5.ts === 33 === tests/cases/conformance/emitter/es5/asyncGenerators/F6.ts === 40 === tests/cases/conformance/emitter/es5/asyncGenerators/F7.ts ===
|
D | emitter.asyncGenerators.functionExpressions.es2018.symbols | 1 === tests/cases/conformance/emitter/es2018/asyncGenerators/F1.ts === 5 === tests/cases/conformance/emitter/es2018/asyncGenerators/F2.ts === 12 === tests/cases/conformance/emitter/es2018/asyncGenerators/F3.ts === 19 === tests/cases/conformance/emitter/es2018/asyncGenerators/F4.ts === 26 === tests/cases/conformance/emitter/es2018/asyncGenerators/F5.ts === 33 === tests/cases/conformance/emitter/es2018/asyncGenerators/F6.ts === 40 === tests/cases/conformance/emitter/es2018/asyncGenerators/F7.ts ===
|
D | emitter.asyncGenerators.functionDeclarations.es5.types | 1 === tests/cases/conformance/emitter/es5/asyncGenerators/F1.ts === 5 === tests/cases/conformance/emitter/es5/asyncGenerators/F2.ts === 13 === tests/cases/conformance/emitter/es5/asyncGenerators/F3.ts === 22 === tests/cases/conformance/emitter/es5/asyncGenerators/F4.ts === 32 === tests/cases/conformance/emitter/es5/asyncGenerators/F5.ts === 45 === tests/cases/conformance/emitter/es5/asyncGenerators/F6.ts === 54 === tests/cases/conformance/emitter/es5/asyncGenerators/F7.ts ===
|
D | emitter.asyncGenerators.functionDeclarations.es5.symbols | 1 === tests/cases/conformance/emitter/es5/asyncGenerators/F1.ts === 5 === tests/cases/conformance/emitter/es5/asyncGenerators/F2.ts === 12 === tests/cases/conformance/emitter/es5/asyncGenerators/F3.ts === 19 === tests/cases/conformance/emitter/es5/asyncGenerators/F4.ts === 26 === tests/cases/conformance/emitter/es5/asyncGenerators/F5.ts === 33 === tests/cases/conformance/emitter/es5/asyncGenerators/F6.ts === 40 === tests/cases/conformance/emitter/es5/asyncGenerators/F7.ts ===
|
D | emitter.asyncGenerators.functionExpressions.es2015.symbols | 1 === tests/cases/conformance/emitter/es2015/asyncGenerators/F1.ts === 5 === tests/cases/conformance/emitter/es2015/asyncGenerators/F2.ts === 12 === tests/cases/conformance/emitter/es2015/asyncGenerators/F3.ts === 19 === tests/cases/conformance/emitter/es2015/asyncGenerators/F4.ts === 26 === tests/cases/conformance/emitter/es2015/asyncGenerators/F5.ts === 33 === tests/cases/conformance/emitter/es2015/asyncGenerators/F6.ts === 40 === tests/cases/conformance/emitter/es2015/asyncGenerators/F7.ts ===
|
/third_party/node/test/parallel/ |
D | test-event-emitter-listener-count.js | 7 const emitter = new EventEmitter(); constant 8 emitter.on('foo', () => {}); 9 emitter.on('foo', () => {}); 10 emitter.on('baz', () => {}); 12 emitter.on(123, () => {}); 14 assert.strictEqual(EventEmitter.listenerCount(emitter, 'foo'), 2); 15 assert.strictEqual(emitter.listenerCount('foo'), 2); 16 assert.strictEqual(emitter.listenerCount('bar'), 0); 17 assert.strictEqual(emitter.listenerCount('baz'), 1); 18 assert.strictEqual(emitter.listenerCount(123), 1);
|
D | test-events-static-geteventlisteners.js | 17 const emitter = new EventEmitter(); constant 18 emitter.on('foo', fn1); 19 emitter.on('foo', fn2); 20 emitter.on('baz', fn1); 21 emitter.on('baz', fn1); 22 deepStrictEqual(getEventListeners(emitter, 'foo'), [fn1, fn2]); 23 deepStrictEqual(getEventListeners(emitter, 'bar'), []); 24 deepStrictEqual(getEventListeners(emitter, 'baz'), [fn1, fn1]);
|
D | test-domain-async-id-map-leak.js | 18 const emitter = new EventEmitter(); constant 20 d.remove(emitter); 21 d.add(emitter); 23 emitter.linkToResource = resource; 24 assert.strictEqual(emitter.domain, d); 25 assert.strictEqual(isEnumerable(emitter, 'domain'), false); 35 onGC(emitter, { ongc: common.mustCall() });
|
D | test-event-emitter-get-max-listeners.js | 6 const emitter = new EventEmitter(); constant 8 assert.strictEqual(emitter.getMaxListeners(), EventEmitter.defaultMaxListeners); 10 emitter.setMaxListeners(0); 11 assert.strictEqual(emitter.getMaxListeners(), 0); 13 emitter.setMaxListeners(3); 14 assert.strictEqual(emitter.getMaxListeners(), 3);
|
/third_party/node/lib/ |
D | events.js | 594 … { name: 'MaxListenersExceededWarning', emitter: target, type: type, count: existing.length }); property 829 EventEmitter.listenerCount = function(emitter, type) { argument 830 if (typeof emitter.listenerCount === 'function') { 831 return emitter.listenerCount(type); 833 return FunctionPrototypeCall(listenerCount, emitter, type); 965 async function once(emitter, name, options = kEmptyObject) { argument 972 emitter.removeListener(name, resolver); 979 if (typeof emitter.removeListener === 'function') { 980 emitter.removeListener('error', errorListener); 990 eventTargetAgnosticAddListener(emitter, name, resolver, opts); [all …]
|
/third_party/node/lib/internal/streams/ |
D | legacy.js | 96 function prependListener(emitter, event, fn) { argument 99 if (typeof emitter.prependListener === 'function') 100 return emitter.prependListener(event, fn); 106 if (!emitter._events || !emitter._events[event]) 107 emitter.on(event, fn); 108 else if (ArrayIsArray(emitter._events[event])) 109 emitter._events[event].unshift(fn); 111 emitter._events[event] = [fn, emitter._events[event]];
|
/third_party/node/deps/npm/node_modules/signal-exit/dist/mjs/ |
D | index.js | 103 #emitter = new Emitter(); field in SignalExit 121 let { count } = this.#emitter; 137 const ret = this.#emitter.emit('exit', null, sig); 159 this.#emitter.on(ev, cb); 161 this.#emitter.removeListener(ev, cb); 162 if (this.#emitter.listeners['exit'].length === 0 && 163 this.#emitter.listeners['afterExit'].length === 0) { 177 this.#emitter.count += 1; 214 this.#emitter.count -= 1; 223 this.#emitter.emit('exit', this.#process.exitCode, null); [all …]
|
/third_party/node/deps/npm/node_modules/signal-exit/dist/cjs/ |
D | index.js | 107 #emitter = new Emitter(); field in SignalExit 125 let { count } = this.#emitter; 141 const ret = this.#emitter.emit('exit', null, sig); 163 this.#emitter.on(ev, cb); 165 this.#emitter.removeListener(ev, cb); 166 if (this.#emitter.listeners['exit'].length === 0 && 167 this.#emitter.listeners['afterExit'].length === 0) { 181 this.#emitter.count += 1; 218 this.#emitter.count -= 1; 227 this.#emitter.emit('exit', this.#process.exitCode, null); [all …]
|
/third_party/node/deps/npm/test/lib/utils/ |
D | open-url-prompt.js | 11 emitter = null, argument 55 if (emitter) { 56 mock.open = openUrlPrompt(...args, emitter) 66 emitter, 113 const emitter = new EventEmitter() constant 116 emitter, property 119 emitter.emit('abort') 148 const emitter = new EventEmitter() constant 152 emitter, property
|