Exemple #1
0
 private void visitExpression(JsExpression x, JsContext ctx) {
   if (ctx.isLvalue()) {
     // Assignments to comma expressions aren't legal
     return;
   } else if (nodesInRefContext.contains(x)) {
     // Don't modify references into non-references
     return;
   } else if (!instrumentedFiles.contains(x.getSourceInfo().getFileName())) {
     return;
   } else if (x.getSourceInfo().getStartLine() == lastLine
       && (x.getSourceInfo().getFileName().equals(lastFile))) {
     return;
   }
   lastLine = x.getSourceInfo().getStartLine();
   lastFile = x.getSourceInfo().getFileName();
   endVisit(x, ctx);
 }