Skip to content

Commit

Permalink
Change name of "from" parameter from opt_callback to opt_mapFn to ref…
Browse files Browse the repository at this point in the history
…lect it's a map function

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171590496
  • Loading branch information
jDramaix authored and Tyler Breisacher committed Oct 10, 2017
1 parent 7ab7014 commit 4cd3eae
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions externs/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,13 +656,13 @@ Int8Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Int8Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Int8Array.from = function(source, opt_callback, opt_this) {};
Int8Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -690,13 +690,13 @@ Uint8Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Uint8Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Uint8Array.from = function(source, opt_callback, opt_this) {};
Uint8Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -724,13 +724,13 @@ Uint8ClampedArray.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Uint8ClampedArray}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Uint8ClampedArray.from = function(source, opt_callback, opt_this) {};
Uint8ClampedArray.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -767,13 +767,13 @@ Int16Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Int16Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Int16Array.from = function(source, opt_callback, opt_this) {};
Int16Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -801,13 +801,13 @@ Uint16Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Uint16Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Uint16Array.from = function(source, opt_callback, opt_this) {};
Uint16Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -835,13 +835,13 @@ Int32Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Int32Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Int32Array.from = function(source, opt_callback, opt_this) {};
Int32Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -869,13 +869,13 @@ Uint32Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Uint32Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Uint32Array.from = function(source, opt_callback, opt_this) {};
Uint32Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -903,13 +903,13 @@ Float32Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Float32Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Float32Array.from = function(source, opt_callback, opt_this) {};
Float32Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -937,13 +937,13 @@ Float64Array.BYTES_PER_ELEMENT;

/**
* @param {!Array<number>} source
* @param {function(this:S, number): number=} opt_callback
* @param {function(this:S, number): number=} opt_mapFn
* @param {S=} opt_this
* @template S
* @return {!Float64Array}
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/from
*/
Float64Array.from = function(source, opt_callback, opt_this) {};
Float64Array.from = function(source, opt_mapFn, opt_this) {};

/**
* @param {...number} var_args
Expand Down Expand Up @@ -1251,12 +1251,12 @@ Array.of = function(var_args) {};
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from
* @param {string|!IArrayLike<T>|!Iterable<T>} arrayLike
* @param {function(this:S, (string|T), number): R=} opt_callback
* @param {function(this:S, (string|T), number): R=} opt_mapFn
* @param {S=} opt_this
* @return {!Array<R>}
* @template T,S,R
*/
Array.from = function(arrayLike, opt_callback, opt_this) {};
Array.from = function(arrayLike, opt_mapFn, opt_this) {};


/** @return {!IteratorIterable<number>} */
Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit 4cd3eae

Please sign in to comment.