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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.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/source_frame/SourcesTextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
index 38dc61c63571f16567b4fd50ea2f090430d13c00..7fde4f3adafd489c0adb11aa040dc9e79d47c924 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
@@ -57,7 +57,7 @@ WebInspector.SourcesTextEditor = function(delegate)
this._onUpdateEditorIndentation();
this._setupWhitespaceHighlight();
-}
+};
WebInspector.SourcesTextEditor.prototype = {
/**
* @return {boolean}
@@ -200,7 +200,7 @@ WebInspector.SourcesTextEditor.prototype = {
*/
setGutterDecoration: function(lineNumber, type, element)
{
- console.assert(this._gutters.indexOf(type) !== -1, "Cannot decorate unexisting gutter.")
+ console.assert(this._gutters.indexOf(type) !== -1, "Cannot decorate unexisting gutter.");
this.codeMirror().setGutterMarker(lineNumber, type, element);
},
@@ -343,7 +343,7 @@ WebInspector.SourcesTextEditor.prototype = {
return CodeMirror.Pass;
var pos = codeMirror.getCursor("head");
codeMirror.replaceRange(indent.substring(pos.ch % indent.length), codeMirror.getCursor());
- }
+ };
}
this.codeMirror().setOption("extraKeys", extraKeys);
@@ -605,7 +605,7 @@ WebInspector.SourcesTextEditor.prototype = {
},
__proto__: WebInspector.CodeMirrorTextEditor.prototype
-}
+};
/** @typedef {{lineNumber: number, event: !Event}} */
WebInspector.SourcesTextEditor.GutterClickEventData;
@@ -619,12 +619,12 @@ WebInspector.SourcesTextEditor.Events = {
EditorFocused: Symbol("EditorFocused"),
EditorBlurred: Symbol("EditorBlurred"),
JumpHappened: Symbol("JumpHappened")
-}
+};
/**
* @interface
*/
-WebInspector.SourcesTextEditorDelegate = function() { }
+WebInspector.SourcesTextEditorDelegate = function() { };
WebInspector.SourcesTextEditorDelegate.prototype = {
/**
* @param {!WebInspector.ContextMenu} contextMenu
@@ -640,7 +640,7 @@ WebInspector.SourcesTextEditorDelegate.prototype = {
* @return {!Promise}
*/
populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) { },
-}
+};
/**
* @param {!CodeMirror} codeMirror
@@ -662,7 +662,7 @@ CodeMirror.commands.smartNewlineAndIndent = function(codeMirror)
codeMirror.replaceSelections(replacements);
codeMirror._codeMirrorTextEditor._onAutoAppendedSpaces();
}
-}
+};
/**
* @return {!Object|undefined}
@@ -672,7 +672,7 @@ CodeMirror.commands.sourcesDismiss = function(codemirror)
if (codemirror.listSelections().length === 1 && codemirror._codeMirrorTextEditor._isSearchActive())
return CodeMirror.Pass;
return CodeMirror.commands.dismiss(codemirror);
-}
+};
/**
* @constructor
@@ -681,7 +681,7 @@ CodeMirror.commands.sourcesDismiss = function(codemirror)
WebInspector.SourcesTextEditor.BlockIndentController = function(codeMirror)
{
codeMirror.addKeyMap(this);
-}
+};
WebInspector.SourcesTextEditor.BlockIndentController.prototype = {
name: "blockIndentKeymap",
@@ -770,7 +770,7 @@ WebInspector.SourcesTextEditor.BlockIndentController.prototype = {
codeMirror.setSelections(updatedSelections);
codeMirror.replaceSelections(replacements);
}
-}
+};
/**
* @param {!Array.<string>} lines
@@ -810,7 +810,7 @@ WebInspector.SourcesTextEditor._guessIndentationLevel = function(lines)
if (minimumIndent === Infinity)
return WebInspector.moduleSetting("textEditorIndent").get();
return " ".repeat(minimumIndent);
-}
+};
/**
* @constructor
@@ -821,7 +821,7 @@ WebInspector.SourcesTextEditor.TokenHighlighter = function(textEditor, codeMirro
{
this._textEditor = textEditor;
this._codeMirror = codeMirror;
-}
+};
WebInspector.SourcesTextEditor.TokenHighlighter.prototype = {
/**
@@ -973,7 +973,7 @@ WebInspector.SourcesTextEditor.TokenHighlighter.prototype = {
selectionStart: selectionStart
};
}
-}
+};
WebInspector.SourcesTextEditor.LinesToScanForIndentationGuessing = 1000;
WebInspector.SourcesTextEditor.MaximumNumberOfWhitespacesPerSingleSpan = 16;

Powered by Google App Engine
This is Rietveld 408576698