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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {!WebInspector.JavaScriptSourceFrame} sourceFrame 7 * @param {!WebInspector.JavaScriptSourceFrame} sourceFrame
8 */ 8 */
9 WebInspector.JavaScriptCompiler = function(sourceFrame) 9 WebInspector.JavaScriptCompiler = function(sourceFrame)
10 { 10 {
11 this._sourceFrame = sourceFrame; 11 this._sourceFrame = sourceFrame;
12 this._compiling = false; 12 this._compiling = false;
13 } 13 };
14 14
15 WebInspector.JavaScriptCompiler.CompileDelay = 1000; 15 WebInspector.JavaScriptCompiler.CompileDelay = 1000;
16 16
17 WebInspector.JavaScriptCompiler.prototype = { 17 WebInspector.JavaScriptCompiler.prototype = {
18 scheduleCompile: function() 18 scheduleCompile: function()
19 { 19 {
20 if (this._compiling) { 20 if (this._compiling) {
21 this._recompileScheduled = true; 21 this._recompileScheduled = true;
22 return; 22 return;
23 } 23 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 if (!exceptionDetails) 72 if (!exceptionDetails)
73 return; 73 return;
74 var text = WebInspector.ConsoleMessage.simpleTextFromException(excep tionDetails); 74 var text = WebInspector.ConsoleMessage.simpleTextFromException(excep tionDetails);
75 this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourc eCode.Message.Level.Error, text, exceptionDetails.lineNumber, exceptionDetails.c olumnNumber); 75 this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourc eCode.Message.Level.Error, text, exceptionDetails.lineNumber, exceptionDetails.c olumnNumber);
76 this._compilationFinishedForTest(); 76 this._compilationFinishedForTest();
77 } 77 }
78 }, 78 },
79 79
80 _compilationFinishedForTest: function() {} 80 _compilationFinishedForTest: function() {}
81 } 81 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698