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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatter.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/sources/ScriptFormatter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatter.js b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatter.js
index 188156aeb29e10bceb34ddc9615b294929917e4d..ea669f3a9bdb741bee0e0e580035a42179877383 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatter.js
@@ -33,7 +33,7 @@
*/
WebInspector.Formatter = function()
{
-}
+};
/**
* @param {!WebInspector.ResourceType} contentType
@@ -47,7 +47,7 @@ WebInspector.Formatter.format = function(contentType, mimeType, content, callbac
new WebInspector.ScriptFormatter(mimeType, content, callback);
else
new WebInspector.IdentityFormatter(mimeType, content, callback);
-}
+};
/**
* @param {!Array.<number>} lineEndings
@@ -59,7 +59,7 @@ WebInspector.Formatter.locationToPosition = function(lineEndings, lineNumber, co
{
var position = lineNumber ? lineEndings[lineNumber - 1] + 1 : 0;
return position + columnNumber;
-}
+};
/**
* @param {!Array.<number>} lineEndings
@@ -74,7 +74,7 @@ WebInspector.Formatter.positionToLocation = function(lineEndings, position)
else
var columnNumber = position - lineEndings[lineNumber - 1] - 1;
return [lineNumber, columnNumber];
-}
+};
/**
* @constructor
@@ -96,7 +96,7 @@ WebInspector.ScriptFormatter = function(mimeType, content, callback)
};
WebInspector.formatterWorkerPool.runTask("format", parameters)
.then(this._didFormatContent.bind(this));
-}
+};
WebInspector.ScriptFormatter.prototype = {
/**
@@ -113,7 +113,7 @@ WebInspector.ScriptFormatter.prototype = {
var sourceMapping = new WebInspector.FormatterSourceMappingImpl(this._originalContent.computeLineEndings(), formattedContent.computeLineEndings(), mapping);
this._callback(formattedContent, sourceMapping);
}
-}
+};
/**
* @constructor
@@ -125,7 +125,7 @@ WebInspector.ScriptFormatter.prototype = {
WebInspector.IdentityFormatter = function(mimeType, content, callback)
{
callback(content, new WebInspector.IdentityFormatterSourceMapping());
-}
+};
/**
* @typedef {{original: !Array.<number>, formatted: !Array.<number>}}
@@ -137,7 +137,7 @@ WebInspector.FormatterMappingPayload;
*/
WebInspector.FormatterSourceMapping = function()
{
-}
+};
WebInspector.FormatterSourceMapping.prototype = {
/**
@@ -153,7 +153,7 @@ WebInspector.FormatterSourceMapping.prototype = {
* @return {!Array.<number>}
*/
formattedToOriginal: function(lineNumber, columnNumber) { }
-}
+};
/**
* @constructor
@@ -161,7 +161,7 @@ WebInspector.FormatterSourceMapping.prototype = {
*/
WebInspector.IdentityFormatterSourceMapping = function()
{
-}
+};
WebInspector.IdentityFormatterSourceMapping.prototype = {
/**
@@ -185,7 +185,7 @@ WebInspector.IdentityFormatterSourceMapping.prototype = {
{
return [lineNumber, columnNumber || 0];
}
-}
+};
/**
* @constructor
@@ -199,7 +199,7 @@ WebInspector.FormatterSourceMappingImpl = function(originalLineEndings, formatte
this._originalLineEndings = originalLineEndings;
this._formattedLineEndings = formattedLineEndings;
this._mapping = mapping;
-}
+};
WebInspector.FormatterSourceMappingImpl.prototype = {
/**
@@ -242,4 +242,4 @@ WebInspector.FormatterSourceMappingImpl.prototype = {
convertedPosition = positions2[index + 1];
return convertedPosition;
}
-}
+};

Powered by Google App Engine
This is Rietveld 408576698