src/components/AST/utils.js
// Location for AST is off by one for line.
Location for AST is off by one for line.
Location for AST is off by one for line .
function fixLoc(loc) {
  return {
    head: { line: loc.start.line, ch: loc.start.column },
    anchor: { line: loc.end.line, ch: loc.end.column },
  };
}
function fixLoc ( loc ) { return { head : { line : loc . start . line , ch : loc . start . column } , anchor : { line : loc . end . line , ch : loc . end . column } , } ; }
Location for AST is off by one for line.
Location for AST is off by one for line .