aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 4e49c7a4..8f2ea146 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -49,6 +49,7 @@ function analyzer(data) {
item.items.sort(function(a, b) { return a.lineNum - b.lineNum });
for (var i = 0; i < item.items.length; i++) {
var subItem = item.items[i];
+ assert(subItem.lineNum);
if (subItem.intertype == 'function') {
item.functions.push(subItem);
subItem.endLineNum = null;
@@ -78,7 +79,7 @@ function analyzer(data) {
currLabelFinished = true;
}
} else {
- print('// WARNING: content after a branch in a label, line: ' + subItem.lineNum);
+ print('// WARNING: content after a branch in a label, line: ' + subItem.lineNum + '::' + dump(subItem));
}
} else {
throw "ERROR: what is this? " + JSON.stringify(subItem);