Skip to content

Commit 97afe7e

Browse files
committed
Get rid of unnecessary []'s in function type annotations.
Annotations such as @type {function(...[Foo])} are rewritten as @type {function(...Foo)} The []'s are no longer necessary as of the r20141103 closure compiler release and doesn't compile as of v20150609 (or some less recent version).
1 parent 860ff26 commit 97afe7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: third_party/js/wgxpath/functionCall.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ wgxpath.FunctionCall.prototype.toString = function() {
109109
* context node when not given arguments.
110110
* @param {boolean} needContextNodeWithArgs Whether the function needs a context
111111
* node when the function is given arguments.
112-
* @param {function(!wgxpath.Context, ...[!wgxpath.Expr]):*} evaluate
112+
* @param {function(!wgxpath.Context, ...!wgxpath.Expr):*} evaluate
113113
* Evaluates the function in a context with any number of expression
114114
* arguments.
115115
* @param {number} minArgs Minimum number of arguments accepted by the function.
@@ -153,7 +153,7 @@ wgxpath.FunctionCall.Func_ = function(name, dataType, needContextPosition,
153153
this.needContextNodeWithArgs_ = needContextNodeWithArgs;
154154

155155
/**
156-
* @type {function(!wgxpath.Context, ...[!wgxpath.Expr]):*}
156+
* @type {function(!wgxpath.Context, ...!wgxpath.Expr):*}
157157
* @private
158158
*/
159159
this.evaluate_ = evaluate;
@@ -206,7 +206,7 @@ wgxpath.FunctionCall.nameToFuncMap_ = {};
206206
* context node when not given arguments.
207207
* @param {boolean} needContextNodeWithArgs Whether the function needs a context
208208
* node when the function is given arguments.
209-
* @param {function(!wgxpath.Context, ...[!wgxpath.Expr]):*} evaluate
209+
* @param {function(!wgxpath.Context, ...!wgxpath.Expr):*} evaluate
210210
* Evaluates the function in a context with any number of expression
211211
* arguments.
212212
* @param {number} minArgs Minimum number of arguments accepted by the function.

0 commit comments

Comments
 (0)