X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FGtkFile.js;fp=JSDOC%2FGtkFile.js;h=4ddfffde306f6114f69e3fee8e5be6be61839b1c;hp=c550d7adbb5722747b1bb6aa21decbd736151c29;hb=2c686de78bd34f39d4120816a0d6212c35f6aa94;hpb=f90486433d2ee8cda1bfa43e178fa6475e8c2d3e diff --git a/JSDOC/GtkFile.js b/JSDOC/GtkFile.js index c550d7a..4ddfffd 100644 --- a/JSDOC/GtkFile.js +++ b/JSDOC/GtkFile.js @@ -69,61 +69,6 @@ GtkFile = XObject.define( }, - parseImports : function() - { - // console.dump(this.tokens); - this.giImports = []; - while (true) { - var pos = this.lookFor('='); - if (pos < 0) { - break; - } - this.cursor = pos; - var k = this.look(-1, true); - var v = this.look(1, true); - // Seed.print(k.data + " => " + v.data); - - /// finish!!! - not an import ... - - if (!v.data.match(/^imports/)) { - return; /// - - this.cursor++; - continue; - } - if (v.data.match(/^imports\.gi/)) { - // gi import.. - this.giImports.push(v.data.replace(/imports\.gi\./, '')); - - this.cursor++; - continue; - } - - // two types of import left - // imports.xnew - if (v.data.match(/^imports\./)) { - this.imports[k.data] = v.data.replace(/imports\./, '') + '.js'; - this.cursor++; - continue; - } - // imports[.....] - this.cursor++; - if (this.lookFor('[') > this.lookFor('=')) { - continue; - } - var bpos = this.lookFor('['); - // console.dump(this.tokens[bpos]); - - this.imports[k.data] = this.tokens[bpos].items[0][0].toJS(); - - this.cursor++; - - } - // console.dump(this.giImports); - // console.dump(this.imports); - //Seed.quit(); - - } }); \ No newline at end of file