зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1216668
- Move Parser.jsm to devtools/shared so the webconsole server can use it;r=jryans
--HG-- rename : devtools/client/shared/Parser.jsm => devtools/shared/Parser.jsm extra : commitid : Ddx5rp5dpvH
This commit is contained in:
Родитель
7893926770
Коммит
8352c7d8cb
|
@ -122,7 +122,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
|||
"resource://gre/modules/Task.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Parser",
|
||||
"resource:///modules/devtools/client/shared/Parser.jsm");
|
||||
"resource://gre/modules/devtools/shared/Parser.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "ShortcutUtils",
|
||||
"resource://gre/modules/ShortcutUtils.jsm");
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
function test() {
|
||||
let { Parser } = Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
let source = "let x = 42;";
|
||||
let parser = new Parser();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
function test() {
|
||||
let { Parser } = Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
let source = "let x + 42;";
|
||||
let parser = new Parser();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
function test() {
|
||||
let { Parser } = Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
let source = [
|
||||
"<!doctype html>",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
function test() {
|
||||
let { Parser } = Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
let source = [
|
||||
"<!doctype html>",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
function test() {
|
||||
let { Parser } = Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
let { Parser } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
let source = [
|
||||
"let a = [];",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
function test() {
|
||||
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
|
||||
Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
function verify(source, predicate, [sline, scol], [eline, ecol]) {
|
||||
let ast = Parser.reflectionAPI.parse(source);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
function test() {
|
||||
let { ParserHelpers } = Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
let { ParserHelpers } = Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
let node1 = { loc: {
|
||||
start: { line: 1, column: 10 },
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
function test() {
|
||||
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
|
||||
Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
function verify(source, predicate, details) {
|
||||
let { name, chain } = details;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
function test() {
|
||||
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
|
||||
Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
function verify(source, predicate, details) {
|
||||
let { name, chain } = details;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
function test() {
|
||||
let { Parser, ParserHelpers, SyntaxTreeVisitor } =
|
||||
Cu.import("resource:///modules/devtools/client/shared/Parser.jsm", {});
|
||||
Cu.import("resource://gre/modules/devtools/shared/Parser.jsm", {});
|
||||
|
||||
function verify(source, predicate, string) {
|
||||
let ast = Parser.reflectionAPI.parse(source);
|
||||
|
|
|
@ -30,7 +30,6 @@ DevToolsModules(
|
|||
'node-attribute-parser.js',
|
||||
'observable-object.js',
|
||||
'options-view.js',
|
||||
'Parser.jsm',
|
||||
'poller.js',
|
||||
'source-utils.js',
|
||||
'SplitView.jsm',
|
||||
|
|
|
@ -44,6 +44,7 @@ DevToolsModules(
|
|||
'indentation.js',
|
||||
'Loader.jsm',
|
||||
'output-parser.js',
|
||||
'Parser.jsm',
|
||||
'path.js',
|
||||
'system.js',
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче