Update xqlint build

Conflicts:
	tool/update_deps.js
This commit is contained in:
William Candillon 2014-03-31 03:41:27 +02:00 • committed by nightwing
commit 1c2e388c24
5 changed files with 5028 additions and 4954 deletions

File diff suppressed because it is too large Load diff

View file

@ -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>
// REx command line: JSONiqTokenizer.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
@ -4204,7 +4206,9 @@ JSONiqTokenizer.TOKEN =
// End
},{}],2:[function(_dereq_,module,exports){
},
{}],
2:[function(_dereq_,module,exports){
'use strict';
var JSONiqTokenizer = _dereq_('./JSONiqTokenizer').JSONiqTokenizer;
@ -4435,6 +4439,8 @@ exports.JSONiqLexer = function() {
};
};
};
},{"./JSONiqTokenizer":1}]},{},[2])
},
{"./JSONiqTokenizer":1}]},{},[2])
(2)
});

View file

@ -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';
var StaticError = {};
@ -33,7 +35,9 @@ exports.StaticWarning = StaticWarning.prototype.constructor = function(code, mes
return pos;
};
};
},{}],2:[function(_dereq_,module,exports){
},
{}],
2:[function(_dereq_,module,exports){
'use strict';
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) {
'use strict';
@ -489,7 +495,9 @@ exports.StaticContext = function (parent, pos) {
s.root = parent ? parent.root : 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){
'use strict';
@ -968,7 +976,7 @@ exports.Translator = function(rootStcx, ast){
this.visit(ast);
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);
}
});
@ -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';
var TreeOps = _dereq_('../tree_ops').TreeOps;
@ -1181,7 +1191,6 @@ var completeModuleUri = function(line, pos, sctx){
var match = function(name) {
return {
name: name,
score: 4,
value: name
};
};
@ -1199,7 +1208,9 @@ exports.complete = function(source, ast, rootSctx, pos){
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) {
'use strict';
@ -1326,7 +1337,9 @@ exports.StyleChecker = function (ast, source) {
});
this.visit(ast);
};
},{}],7:[function(_dereq_,module,exports){
},
{}],
7:[function(_dereq_,module,exports){
//TODO: don't copy string
exports.JSONParseTreeHandler = function (code) {
'use strict';
@ -1491,7 +1504,9 @@ exports.JSONParseTreeHandler = function (code) {
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>
// REx command line: JSONiqParser.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
@ -43892,7 +43907,9 @@ JSONiqParser.TOKEN =
// 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>
// REx command line: XQueryParser.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
@ -78542,7 +78559,9 @@ XQueryParser.TOKEN =
// End
},{}],10:[function(_dereq_,module,exports){
},
{}],
10:[function(_dereq_,module,exports){
'use strict';
exports.TreeOps = {
@ -78631,7 +78650,9 @@ exports.TreeOps = {
return result;
}
};
},{}],11:[function(_dereq_,module,exports){
},
{}],
11:[function(_dereq_,module,exports){
exports.XQLint = function (source, opts) {
'use strict';
@ -78748,6 +78769,8 @@ exports.XQLint = function (source, opts) {
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)
});

View file

@ -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>
// REx command line: XQueryTokenizer.ebnf -ll 2 -backtrack -tree -javascript -a xqlint
@ -4171,7 +4173,9 @@ XQueryTokenizer.TOKEN =
// End
},{}],2:[function(_dereq_,module,exports){
},
{}],
2:[function(_dereq_,module,exports){
'use strict';
var XQueryTokenizer = _dereq_('./XQueryTokenizer').XQueryTokenizer;
@ -4439,6 +4443,8 @@ exports.XQueryLexer = function() {
return tem1;
}
};
},{"./XQueryTokenizer":1}]},{},[2])
},
{"./XQueryTokenizer":1}]},{},[2])
(2)
});

View file

@ -43,6 +43,45 @@ var deps = {
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: {
path: "mode/javascript/jshint.js",
browserify: {