Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: third_party/WebKit/Source/devtools/front_end/externs.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/externs.js
diff --git a/third_party/WebKit/Source/devtools/front_end/externs.js b/third_party/WebKit/Source/devtools/front_end/externs.js
index 6a6fc0df5fcd7a3a5ac4b6cb7ffeb393fc774cf2..ce8bfc4f62ebe20481e181a189408085eccdf92c 100644
--- a/third_party/WebKit/Source/devtools/front_end/externs.js
+++ b/third_party/WebKit/Source/devtools/front_end/externs.js
@@ -34,7 +34,7 @@
* @param {!Object} object
* @param {!Function} callback
*/
-Object.observe = function(object, callback) {}
+Object.observe = function(object, callback) {};
/** @type {boolean} */
Event.prototype.isMetaOrCtrlForTest;
@@ -64,30 +64,30 @@ KeyboardEvent.DOM_KEY_LOCATION_NUMPAD;
* @this {Array.<T>}
* @template T
*/
-Array.prototype.remove = function(value, onlyFirst) {}
+Array.prototype.remove = function(value, onlyFirst) {};
/**
* @param {!Array.<!T>} array
* @this {Array.<!T>}
* @template T
*/
-Array.prototype.pushAll = function(array) {}
+Array.prototype.pushAll = function(array) {};
/**
* @return {!Object.<string, boolean>}
* @this {Array.<T>}
* @template T
*/
-Array.prototype.keySet = function() {}
+Array.prototype.keySet = function() {};
/**
* @param {number} index
* @return {!Array.<!T>}
* @this {Array.<T>}
* @template T
*/
-Array.prototype.rotate = function(index) {}
+Array.prototype.rotate = function(index) {};
/**
* @this {Array.<number>}
*/
-Array.prototype.sortNumbers = function() {}
+Array.prototype.sortNumbers = function() {};
/**
* @param {!S} object
* @param {function(!S,!T):number=} comparator
@@ -95,7 +95,7 @@ Array.prototype.sortNumbers = function() {}
* @this {Array.<T>}
* @template S
*/
-Array.prototype.lowerBound = function(object, comparator) {}
+Array.prototype.lowerBound = function(object, comparator) {};
/**
* @param {!S} object
* @param {function(!S,!T):number=} comparator
@@ -103,7 +103,7 @@ Array.prototype.lowerBound = function(object, comparator) {}
* @this {Array.<T>}
* @template S
*/
-Array.prototype.upperBound = function(object, comparator) {}
+Array.prototype.upperBound = function(object, comparator) {};
/**
* @param {!S} value
* @param {function(!S,!T):number} comparator
@@ -111,7 +111,7 @@ Array.prototype.upperBound = function(object, comparator) {}
* @this {Array.<T>}
* @template S
*/
-Array.prototype.binaryIndexOf = function(value, comparator) {}
+Array.prototype.binaryIndexOf = function(value, comparator) {};
/**
* @param {function(number, number): number} comparator
* @param {number} leftBound
@@ -121,7 +121,7 @@ Array.prototype.binaryIndexOf = function(value, comparator) {}
* @return {!Array.<number>}
* @this {Array.<number>}
*/
-Array.prototype.sortRange = function(comparator, leftBound, rightBound, sortWindowLeft, sortWindowRight) {}
+Array.prototype.sortRange = function(comparator, leftBound, rightBound, sortWindowLeft, sortWindowRight) {};
/**
* @param {function(!T,!T): number=} comparator
@@ -129,7 +129,7 @@ Array.prototype.sortRange = function(comparator, leftBound, rightBound, sortWind
* @this {Array.<T>}
* @template T
*/
-Array.prototype.stableSort = function(comparator) {}
+Array.prototype.stableSort = function(comparator) {};
/**
* @this {Array.<number>}
@@ -139,7 +139,7 @@ Array.prototype.stableSort = function(comparator) {}
* @param {number} pivotIndex
* @return {number}
*/
-Array.prototype.partition = function(comparator, left, right, pivotIndex) {}
+Array.prototype.partition = function(comparator, left, right, pivotIndex) {};
/**
* @this {Array.<number>}
@@ -147,7 +147,7 @@ Array.prototype.partition = function(comparator, left, right, pivotIndex) {}
* @param {function(number,number):boolean=} comparator
* @return {number}
*/
-Array.prototype.qselect = function(k, comparator) {}
+Array.prototype.qselect = function(k, comparator) {};
/**
* @param {string} field
@@ -155,14 +155,14 @@ Array.prototype.qselect = function(k, comparator) {}
* @this {Array.<!Object.<string,T>>}
* @template T
*/
-Array.prototype.select = function(field) {}
+Array.prototype.select = function(field) {};
/**
* @return {!T|undefined}
* @this {Array.<T>}
* @template T
*/
-Array.prototype.peekLast = function() {}
+Array.prototype.peekLast = function() {};
/**
* @param {!Array.<T>} array
@@ -171,7 +171,7 @@ Array.prototype.peekLast = function() {}
* @this {!Array.<T>}
* @template T
*/
-Array.prototype.intersectOrdered = function(array, comparator) {}
+Array.prototype.intersectOrdered = function(array, comparator) {};
/**
* @param {!Array.<T>} array
@@ -180,7 +180,7 @@ Array.prototype.intersectOrdered = function(array, comparator) {}
* @this {!Array.<T>}
* @template T
*/
-Array.prototype.mergeOrdered = function(array, comparator) {}
+Array.prototype.mergeOrdered = function(array, comparator) {};
// File System API
/**
@@ -208,23 +208,23 @@ DevToolsHost.ContextMenuDescriptor;
/**
* @return {number}
*/
-DevToolsHost.zoomFactor = function() { }
+DevToolsHost.zoomFactor = function() { };
/**
* @param {string} origin
* @param {string} script
*/
-DevToolsHost.setInjectedScriptForOrigin = function(origin, script) { }
+DevToolsHost.setInjectedScriptForOrigin = function(origin, script) { };
/**
* @param {string} text
*/
-DevToolsHost.copyText = function(text) { }
+DevToolsHost.copyText = function(text) { };
/**
* @return {string}
*/
-DevToolsHost.platform = function() { }
+DevToolsHost.platform = function() { };
/**
* @param {number} x
@@ -232,46 +232,46 @@ DevToolsHost.platform = function() { }
* @param {!Array.<!DevToolsHost.ContextMenuDescriptor>} items
* @param {!Document} document
*/
-DevToolsHost.showContextMenuAtPoint = function(x, y, items, document) { }
+DevToolsHost.showContextMenuAtPoint = function(x, y, items, document) { };
/**
* @param {string} message
*/
-DevToolsHost.sendMessageToEmbedder = function(message) { }
+DevToolsHost.sendMessageToEmbedder = function(message) { };
/**
* @return {string}
*/
-DevToolsHost.getSelectionBackgroundColor = function() { }
+DevToolsHost.getSelectionBackgroundColor = function() { };
/**
* @return {string}
*/
-DevToolsHost.getSelectionForegroundColor = function() { }
+DevToolsHost.getSelectionForegroundColor = function() { };
/**
* @return {boolean}
*/
-DevToolsHost.isUnderTest = function() { }
+DevToolsHost.isUnderTest = function() { };
/**
* @return {boolean}
*/
-DevToolsHost.isHostedMode = function() { }
+DevToolsHost.isHostedMode = function() { };
/**
* @param {string} fileSystemId
* @param {string} registeredName
* @return {?DOMFileSystem}
*/
-DevToolsHost.isolatedFileSystem = function(fileSystemId, registeredName) { }
+DevToolsHost.isolatedFileSystem = function(fileSystemId, registeredName) { };
/**
* @param {!FileSystem} fileSystem
*/
-DevToolsHost.upgradeDraggedFileSystemPermissions = function(fileSystem) { }
+DevToolsHost.upgradeDraggedFileSystemPermissions = function(fileSystem) { };
-var WebInspector = function() {}
+var WebInspector = function() {};
/** Extensions API */
@@ -340,7 +340,7 @@ diff_match_patch.prototype = {
* @return {!Array.<!{0: number, 1: string}>}
*/
diff_main: function(text1, text2) { }
-}
+};
/** @constructor */
function Path2D() {}
@@ -362,20 +362,20 @@ Path2D.prototype = {
* @param {number} y
*/
lineTo: function(x, y) { }
-}
+};
/** @constructor */
-var Doc = function() { }
+var Doc = function() { };
Doc.prototype = {
/** @type {number} */
scrollLeft: 0,
/** @type {number} */
scrollTop: 0
-}
+};
/** @constructor */
-var CodeMirror = function(element, config) { }
-CodeMirror.on = function(obj, type, handler) { }
+var CodeMirror = function(element, config) { };
+CodeMirror.on = function(obj, type, handler) { };
CodeMirror.prototype = {
/** @type {!Doc} */
doc: null,
@@ -520,7 +520,7 @@ CodeMirror.prototype = {
swapDoc: function(doc) { },
undo: function() { },
unlinkDoc: function(other) { }
-}
+};
/** @type {!{cursorDiv: Element}} */
CodeMirror.prototype.display;
/** @type {!Object} */
@@ -541,7 +541,7 @@ CodeMirror.BeforeChangeObject;
CodeMirror.ChangeObject;
/** @constructor */
-CodeMirror.Pos = function(line, ch) { }
+CodeMirror.Pos = function(line, ch) { };
/** @type {number} */
CodeMirror.Pos.prototype.line;
/** @type {number} */
@@ -565,7 +565,7 @@ CodeMirror.StringStream = function(line)
{
this.pos = 0;
this.start = 0;
-}
+};
CodeMirror.StringStream.prototype = {
backUp: function(n) { },
column: function() { },
@@ -586,21 +586,21 @@ CodeMirror.StringStream.prototype = {
skipTo: function(ch) { },
skipToEnd: function() { },
sol: function() { }
-}
+};
/** @constructor */
-CodeMirror.TextMarker = function(doc, type) { }
+CodeMirror.TextMarker = function(doc, type) { };
CodeMirror.TextMarker.prototype = {
clear: function() { },
find: function() { },
changed: function() { }
-}
+};
/** @constructor */
-CodeMirror.LineWidget = function() { }
+CodeMirror.LineWidget = function() { };
CodeMirror.LineWidget.prototype = {
clear: function() { }
-}
+};
/** @type {Object.<string, !Object.<string, string>>} */
@@ -616,14 +616,14 @@ window.dispatchStandaloneTestRunnerMessages;
* @param {*} obj
* @return {boolean}
*/
-ArrayBuffer.isView = function(obj) { }
+ArrayBuffer.isView = function(obj) { };
/**
* @param {Array.<Object>} keyframes
* @param {number|Object} timing
* @return {Object}
*/
-Element.prototype.animate = function(keyframes, timing) { }
+Element.prototype.animate = function(keyframes, timing) { };
/**
* @override
@@ -632,7 +632,7 @@ Element.prototype.animate = function(keyframes, timing) { }
* @param {(boolean|!{capture: (boolean|undefined), once: (boolean|undefined), passive: (boolean|undefined)})=} options
* @this {EventTarget}
*/
-Element.prototype.addEventListener = function(type, listener, options) { }
+Element.prototype.addEventListener = function(type, listener, options) { };
var acorn = {
/**
@@ -668,7 +668,7 @@ var Acorn = {};
Acorn.Tokenizer = function() {
/** @type {function():!Acorn.Token} */
this.getToken;
-}
+};
/**
* @constructor
@@ -678,7 +678,7 @@ Acorn.TokenType = function() {
this.label;
/** @type {(string|undefined)} */
this.keyword;
-}
+};
/**
* @typedef {{type: !Acorn.TokenType, value: string, start: number, end: number}}
@@ -728,7 +728,7 @@ ESTree.Node = function()
this.argument;
/** @type {(string|undefined)} */
this.operator;
-}
+};
/**
* @extends {ESTree.Node}
@@ -740,9 +740,9 @@ ESTree.TemplateLiteralNode = function()
this.quasis;
/** @type {!Array.<!ESTree.Node>} */
this.expressions;
-}
+};
-var Gonzales = {}
+var Gonzales = {};
var gonzales = {
/**
* @param {string} text
@@ -750,7 +750,7 @@ var gonzales = {
* @return {!Gonzales.Node}
*/
parse: function(text, options) { },
-}
+};
/**
* @constructor
@@ -761,7 +761,7 @@ Gonzales.Location = function()
this.line;
/** @type {number} */
this.column;
-}
+};
/**
* @constructor
@@ -778,7 +778,7 @@ Gonzales.Node = function()
this.end;
/** @type {(string|!Array<!Gonzales.Node>)} */
this.content;
-}
+};
/**
* @type {string}
@@ -791,7 +791,7 @@ DOMException.prototype.message;
* @constructor
* @param {!Object} params
*/
-var Terminal = function(params) { }
+var Terminal = function(params) { };
Terminal.prototype = {
fit: function() { },
@@ -800,4 +800,4 @@ Terminal.prototype = {
open: function(element) { },
/** @param {string} eventName * @param {!Function} handler */
on: function(eventName, handler) { }
-}
+};

Powered by Google App Engine
This is Rietveld 408576698