Index: Source/devtools/front_end/workspace/UISourceCode.js |
diff --git a/Source/devtools/front_end/workspace/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js |
index 1b374623fc42f589f914df608d9aaf80055a6e1d..5851d1ac69aad27cb5e25c252cb419e1e35833a8 100644 |
--- a/Source/devtools/front_end/workspace/UISourceCode.js |
+++ b/Source/devtools/front_end/workspace/UISourceCode.js |
@@ -39,8 +39,9 @@ |
* @param {string} originURL |
* @param {string} url |
* @param {!WebInspector.ResourceType} contentType |
+ * @param {string=} language |
*/ |
-WebInspector.UISourceCode = function(project, parentPath, name, originURL, url, contentType) |
+WebInspector.UISourceCode = function(project, parentPath, name, originURL, url, contentType, language) |
{ |
this._project = project; |
this._parentPath = parentPath; |
@@ -50,6 +51,7 @@ WebInspector.UISourceCode = function(project, parentPath, name, originURL, url, |
this._contentType = contentType; |
/** @type {!Array.<function(?string)>} */ |
this._requestContentCallbacks = []; |
+ this.language = url.endsWith(".dart") ? "Dart" : "JavaScript"; |
/** @type {!Array.<!WebInspector.Revision>} */ |
this.history = []; |