Update xqlint build
Conflicts: tool/update_deps.js
This commit is contained in:
parent
d6d3f0b384
commit
1c2e388c24
5 changed files with 5028 additions and 4954 deletions
|
|
@ -10019,9 +10019,9 @@ function hasOwnProperty(obj, prop) {
|
||||||
return Object.prototype.hasOwnProperty.call(obj, prop);
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
}).call(this,_dereq_("H:\\node\\npm\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
}).call(this,_dereq_("/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
||||||
},
|
},
|
||||||
{"./support/isBuffer":14,"H:\\node\\npm\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":18,"inherits":17}],
|
{"./support/isBuffer":14,"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":18,"inherits":17}],
|
||||||
16:[function(_dereq_,module,exports){
|
16:[function(_dereq_,module,exports){
|
||||||
// Copyright Joyent, Inc. and other Node contributors.
|
// Copyright Joyent, Inc. and other Node contributors.
|
||||||
//
|
//
|
||||||
|
|
@ -10424,7 +10424,7 @@ module.exports=_dereq_(14)
|
||||||
20:[function(_dereq_,module,exports){
|
20:[function(_dereq_,module,exports){
|
||||||
module.exports=_dereq_(15)
|
module.exports=_dereq_(15)
|
||||||
},
|
},
|
||||||
{"./support/isBuffer":19,"H:\\node\\npm\\node_modules\\browserify\\node_modules\\insert-module-globals\\node_modules\\process\\browser.js":18,"inherits":17}]},{},[9])
|
{"./support/isBuffer":19,"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":18,"inherits":17}]},{},[9])
|
||||||
(9)
|
(9)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.acemodexquery=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
define(function(require, exports, module) {
|
||||||
|
module.exports = (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({
|
||||||
|
1:[function(_dereq_,module,exports){
|
||||||
// This file was generated on Sun Mar 23, 2014 21:29 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
// This file was generated on Sun Mar 23, 2014 21:29 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
||||||
// REx command line: JSONiqTokenizer.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
// REx command line: JSONiqTokenizer.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
||||||
|
|
||||||
|
|
@ -4204,7 +4206,9 @@ JSONiqTokenizer.TOKEN =
|
||||||
|
|
||||||
// End
|
// End
|
||||||
|
|
||||||
},{}],2:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
2:[function(_dereq_,module,exports){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var JSONiqTokenizer = _dereq_('./JSONiqTokenizer').JSONiqTokenizer;
|
var JSONiqTokenizer = _dereq_('./JSONiqTokenizer').JSONiqTokenizer;
|
||||||
|
|
@ -4435,6 +4439,8 @@ exports.JSONiqLexer = function() {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
},{"./JSONiqTokenizer":1}]},{},[2])
|
},
|
||||||
|
{"./JSONiqTokenizer":1}]},{},[2])
|
||||||
(2)
|
(2)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.acemodexquery=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
define(function(require, exports, module) {
|
||||||
|
module.exports = (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({
|
||||||
|
1:[function(_dereq_,module,exports){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var StaticError = {};
|
var StaticError = {};
|
||||||
|
|
@ -33,7 +35,9 @@ exports.StaticWarning = StaticWarning.prototype.constructor = function(code, mes
|
||||||
return pos;
|
return pos;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
},{}],2:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
2:[function(_dereq_,module,exports){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var TreeOps = _dereq_('../tree_ops').TreeOps;
|
var TreeOps = _dereq_('../tree_ops').TreeOps;
|
||||||
|
|
@ -188,7 +192,9 @@ exports.VarRefHandler = function(translator, sctx, node){
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
},{"../tree_ops":10,"./errors":1}],3:[function(_dereq_,module,exports){
|
},
|
||||||
|
{"../tree_ops":10,"./errors":1}],
|
||||||
|
3:[function(_dereq_,module,exports){
|
||||||
exports.StaticContext = function (parent, pos) {
|
exports.StaticContext = function (parent, pos) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
@ -489,7 +495,9 @@ exports.StaticContext = function (parent, pos) {
|
||||||
s.root = parent ? parent.root : s;
|
s.root = parent ? parent.root : s;
|
||||||
return s;
|
return s;
|
||||||
};
|
};
|
||||||
},{"../tree_ops":10,"./errors":1}],4:[function(_dereq_,module,exports){
|
},
|
||||||
|
{"../tree_ops":10,"./errors":1}],
|
||||||
|
4:[function(_dereq_,module,exports){
|
||||||
exports.Translator = function(rootStcx, ast){
|
exports.Translator = function(rootStcx, ast){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
@ -968,7 +976,7 @@ exports.Translator = function(rootStcx, ast){
|
||||||
|
|
||||||
this.visit(ast);
|
this.visit(ast);
|
||||||
Object.keys(rootStcx.variables).forEach(function(key){
|
Object.keys(rootStcx.variables).forEach(function(key){
|
||||||
if(!rootStcx.varRefs[key] && (rootStcx.variables[key].annotations['http://www.w3.org/2005/xpath-functions#private'] || rootStcx.moduleNamespace === '')) {
|
if(!rootStcx.varRefs[key] && (rootStcx.variables[key].annotations['http://www.w3.org/2005/xpath-functions#private'] || rootStcx.moduleNamespace === '') && rootStcx.variables[key].pos) {
|
||||||
addWarning('W03', 'Unused variable "' + rootStcx.variables[key].qname.name + '"', rootStcx.variables[key].pos);
|
addWarning('W03', 'Unused variable "' + rootStcx.variables[key].qname.name + '"', rootStcx.variables[key].pos);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -980,7 +988,9 @@ exports.Translator = function(rootStcx, ast){
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
},{"../tree_ops":10,"./errors":1,"./handlers":2,"./static_context":3}],5:[function(_dereq_,module,exports){
|
},
|
||||||
|
{"../tree_ops":10,"./errors":1,"./handlers":2,"./static_context":3}],
|
||||||
|
5:[function(_dereq_,module,exports){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var TreeOps = _dereq_('../tree_ops').TreeOps;
|
var TreeOps = _dereq_('../tree_ops').TreeOps;
|
||||||
|
|
@ -1181,7 +1191,6 @@ var completeModuleUri = function(line, pos, sctx){
|
||||||
var match = function(name) {
|
var match = function(name) {
|
||||||
return {
|
return {
|
||||||
name: name,
|
name: name,
|
||||||
score: 4,
|
|
||||||
value: name
|
value: name
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -1199,7 +1208,9 @@ exports.complete = function(source, ast, rootSctx, pos){
|
||||||
return completeExpr(line, pos, sctx);
|
return completeExpr(line, pos, sctx);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},{"../tree_ops":10}],6:[function(_dereq_,module,exports){
|
},
|
||||||
|
{"../tree_ops":10}],
|
||||||
|
6:[function(_dereq_,module,exports){
|
||||||
exports.StyleChecker = function (ast, source) {
|
exports.StyleChecker = function (ast, source) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
@ -1326,7 +1337,9 @@ exports.StyleChecker = function (ast, source) {
|
||||||
});
|
});
|
||||||
this.visit(ast);
|
this.visit(ast);
|
||||||
};
|
};
|
||||||
},{}],7:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
7:[function(_dereq_,module,exports){
|
||||||
//TODO: don't copy string
|
//TODO: don't copy string
|
||||||
exports.JSONParseTreeHandler = function (code) {
|
exports.JSONParseTreeHandler = function (code) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
@ -1491,7 +1504,9 @@ exports.JSONParseTreeHandler = function (code) {
|
||||||
ptr.pos.ec = ec;
|
ptr.pos.ec = ec;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},{}],8:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
8:[function(_dereq_,module,exports){
|
||||||
// This file was generated on Mon Mar 24, 2014 11:18 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
// This file was generated on Mon Mar 24, 2014 11:18 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
||||||
// REx command line: JSONiqParser.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
// REx command line: JSONiqParser.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
||||||
|
|
||||||
|
|
@ -43892,7 +43907,9 @@ JSONiqParser.TOKEN =
|
||||||
|
|
||||||
// End
|
// End
|
||||||
|
|
||||||
},{}],9:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
9:[function(_dereq_,module,exports){
|
||||||
// This file was generated on Mon Mar 24, 2014 11:18 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
// This file was generated on Mon Mar 24, 2014 11:18 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
||||||
// REx command line: XQueryParser.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
// REx command line: XQueryParser.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
||||||
|
|
||||||
|
|
@ -78542,7 +78559,9 @@ XQueryParser.TOKEN =
|
||||||
|
|
||||||
// End
|
// End
|
||||||
|
|
||||||
},{}],10:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
10:[function(_dereq_,module,exports){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
exports.TreeOps = {
|
exports.TreeOps = {
|
||||||
|
|
@ -78631,7 +78650,9 @@ exports.TreeOps = {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},{}],11:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
11:[function(_dereq_,module,exports){
|
||||||
exports.XQLint = function (source, opts) {
|
exports.XQLint = function (source, opts) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
@ -78748,6 +78769,8 @@ exports.XQLint = function (source, opts) {
|
||||||
markers = markers.concat(translator.getMarkers());
|
markers = markers.concat(translator.getMarkers());
|
||||||
};
|
};
|
||||||
|
|
||||||
},{"../lib/completion/completer":5,"./compiler/static_context":3,"./compiler/translator":4,"./formatter/style_checker":6,"./parsers/JSONParseTreeHandler":7,"./parsers/JSONiqParser":8,"./parsers/XQueryParser":9}]},{},[11])
|
},
|
||||||
|
{"../lib/completion/completer":5,"./compiler/static_context":3,"./compiler/translator":4,"./formatter/style_checker":6,"./parsers/JSONParseTreeHandler":7,"./parsers/JSONiqParser":8,"./parsers/XQueryParser":9}]},{},[11])
|
||||||
(11)
|
(11)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.acemodexquery=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
define(function(require, exports, module) {
|
||||||
|
module.exports = (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({
|
||||||
|
1:[function(_dereq_,module,exports){
|
||||||
// This file was generated on Sun Mar 23, 2014 21:29 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
// This file was generated on Sun Mar 23, 2014 21:29 (UTC+01) by REx v5.30 which is Copyright (c) 1979-2014 by Gunther Rademacher <grd@gmx.net>
|
||||||
// REx command line: XQueryTokenizer.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
// REx command line: XQueryTokenizer.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
|
||||||
|
|
||||||
|
|
@ -4171,7 +4173,9 @@ XQueryTokenizer.TOKEN =
|
||||||
|
|
||||||
// End
|
// End
|
||||||
|
|
||||||
},{}],2:[function(_dereq_,module,exports){
|
},
|
||||||
|
{}],
|
||||||
|
2:[function(_dereq_,module,exports){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var XQueryTokenizer = _dereq_('./XQueryTokenizer').XQueryTokenizer;
|
var XQueryTokenizer = _dereq_('./XQueryTokenizer').XQueryTokenizer;
|
||||||
|
|
@ -4439,6 +4443,8 @@ exports.XQueryLexer = function() {
|
||||||
return tem1;
|
return tem1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},{"./XQueryTokenizer":1}]},{},[2])
|
},
|
||||||
|
{"./XQueryTokenizer":1}]},{},[2])
|
||||||
(2)
|
(2)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
@ -43,6 +43,45 @@ var deps = {
|
||||||
return src;
|
return src;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
xquery: {
|
||||||
|
path: "mode/xquery/xquery_lexer.js",
|
||||||
|
browserify: {
|
||||||
|
npmModule: "git+https://github.com/wcandillon/xqlint.git#completion",
|
||||||
|
path: "xqlint/lib/lexers/xquery_lexer.js",
|
||||||
|
exports: "XQueryLexer"
|
||||||
|
},
|
||||||
|
fetch: browserify,
|
||||||
|
needsFixup: true,
|
||||||
|
postProcess: function(src){
|
||||||
|
return src;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
jsoniq: {
|
||||||
|
path: "mode/xquery/jsoniq_lexer.js",
|
||||||
|
browserify: {
|
||||||
|
npmModule: "git+https://github.com/wcandillon/xqlint.git#completion",
|
||||||
|
path: "xqlint/lib/lexers/jsoniq_lexer.js",
|
||||||
|
exports: "JSONiqLexer"
|
||||||
|
},
|
||||||
|
fetch: browserify,
|
||||||
|
needsFixup: true,
|
||||||
|
postProcess: function(src){
|
||||||
|
return src;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
xqlint: {
|
||||||
|
path: "mode/xquery/xqlint.js",
|
||||||
|
browserify: {
|
||||||
|
npmModule: "git+https://github.com/wcandillon/xqlint.git#completion",
|
||||||
|
path: "xqlint/lib/xqlint.js",
|
||||||
|
exports: "XQLint"
|
||||||
|
},
|
||||||
|
fetch: browserify,
|
||||||
|
needsFixup: true,
|
||||||
|
postProcess: function(src){
|
||||||
|
return src;
|
||||||
|
}
|
||||||
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
path: "mode/javascript/jshint.js",
|
path: "mode/javascript/jshint.js",
|
||||||
browserify: {
|
browserify: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue