millermedeiros / rocambole

Recursively walk and transform EcmaScript AST
171 stars 12 forks source link

ASI + comments messes with endToken of VariableDeclaration #5

Closed millermedeiros closed 11 years ago

millermedeiros commented 11 years ago
var amet = qwe();
var asi = true

// test for issue #4
var
    // foo var
    foo,
    // bar variable
    bar = 'dolor amet';

on var asi = true the endToken will be a line break that is after the //test for issue #4 comment which in my opinion seems wrong...

millermedeiros commented 11 years ago

ahhh, forget it... it isn't wrong, I'm just dumb. Comments doesn't terminate a node (since you can have comments in between)