1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00
cdt/qt/org.eclipse.cdt.qt.core/tern-qml/qml-nsh.js
Matthew Bastien 0027b29aba Bug 481126 - Walk QML Types AST
Added several classes that can be used to aggregate all of the
information from within a .qmltypes file as defined by
http://doc.qt.io/qt-5/qtqml-modules-qmldir.html#writing-a-qmltypes-file

Change-Id: Ia36c3bb1a4a0254c4125733d6faabbb5a4606133
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-22 15:04:28 -05:00

21 lines
No EOL
382 B
JavaScript

function newTernServer(options) {
return new tern.Server(options);
}
function resolveDirectory(obj) {
return function (file, path) {
return obj.resolveDirectory(file, path);
};
}
function resolveModule(obj) {
return function (module) {
return obj.resolveModule(module);
};
}
function requestCallback(obj) {
return function (err, data) {
obj.callback(err, data);
};
}