Permalink
Browse files

Multiple inheritance, fixes & stuff

  • Loading branch information...
codeboost committed May 25, 2011
1 parent 4ffade9 commit 5212b15249d2e1bc24bcc2e2c35a7d8b1412d176
Showing with 644 additions and 198 deletions.
  1. +25 −9 bealoader.js
  2. +5 −1 beaparser.js
  3. +4 −2 beaproc.js
  4. +19 −11 beautils.js
  5. +203 −61 classconvert.js
  6. +56 −13 mgr.js
  7. +1 −1 snippets.js
  8. +23 −12 src/bealoader.coffee
  9. +6 −1 src/beaparser.coffee
  10. +3 −3 src/beaproc.coffee
  11. +22 −9 src/beautils.coffee
  12. +226 −63 src/classconvert.coffee
  13. +50 −11 src/mgr.coffee
  14. +1 −1 src/snippets.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -11,6 +11,9 @@
this.parent = null;
}
BeaNode.prototype.addChild = function(node) {
+ if (typeof node === "string") {
+ node = new BeaNode(node, this.level + 1, this.fileName);
+ }
node.parent = this;
this.children.push(node);
return node;
@@ -83,10 +86,11 @@
if (!txt.length) {
return null;
}
+ txt = txt.replace(/\t/g, ' ');
node = new BeaNode(txt, level, this.fileName, linenumber + 1);
if (level === this.curNode.level) {
this.curNode.parent.addChild(node);
- } else if (level === this.curNode.level + 1) {
+ } else if (level >= this.curNode.level + 1) {
this.curNode.addChild(node);
} else if (level < this.curNode.level) {
tmp = this.curNode;
View
@@ -33,6 +33,8 @@
if (args["-o"]) {
bea.outDir = args["-o"];
}
- bealoader.doConvert(bea, beaFile);
- console.log("Exit");
+ debugIt(function() {
+ bealoader.doConvert(bea, beaFile);
+ return console.log("Exit");
+ });
}).call(this);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 5212b15

Please sign in to comment.