OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** |
| 5 * @unrestricted |
| 6 */ |
| 7 WebInspector.ASTService = class { |
| 8 /** |
| 9 * @param {string} url |
| 10 * @param {string} text |
| 11 * @return {!Promise<!WebInspector.SASSSupport.AST>} |
| 12 */ |
| 13 parseCSS(url, text) { |
| 14 return WebInspector.SASSSupport.parseSCSS(url, text); |
| 15 } |
4 | 16 |
5 /** | 17 /** |
6 * @constructor | 18 * @param {string} url |
7 */ | 19 * @param {string} text |
8 WebInspector.ASTService = function() | 20 * @return {!Promise<!WebInspector.SASSSupport.AST>} |
9 { | 21 */ |
| 22 parseSCSS(url, text) { |
| 23 return WebInspector.SASSSupport.parseSCSS(url, text); |
| 24 } |
10 }; | 25 }; |
11 | |
12 WebInspector.ASTService.prototype = { | |
13 /** | |
14 * @param {string} url | |
15 * @param {string} text | |
16 * @return {!Promise<!WebInspector.SASSSupport.AST>} | |
17 */ | |
18 parseCSS: function(url, text) | |
19 { | |
20 return WebInspector.SASSSupport.parseSCSS(url, text); | |
21 }, | |
22 | |
23 /** | |
24 * @param {string} url | |
25 * @param {string} text | |
26 * @return {!Promise<!WebInspector.SASSSupport.AST>} | |
27 */ | |
28 parseSCSS: function(url, text) | |
29 { | |
30 return WebInspector.SASSSupport.parseSCSS(url, text); | |
31 }, | |
32 }; | |
OLD | NEW |