JavaScript: Open-source extractor.

This commit is contained in:
Max Schaefer
2018-11-06 08:25:02 +00:00
parent e03b4f0cb6
commit 4c4920c3a9
992 changed files with 134506 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package com.semmle.js.ast;
/**
* A do-while statement of the form <code>do { ... } while(...);</code>.
*/
public class DoWhileStatement extends Loop {
private final Expression test;
public DoWhileStatement(SourceLocation loc, Expression test, Statement body) {
super("DoWhileStatement", loc, body);
this.test = test;
}
@Override
public <Q, A> A accept(Visitor<Q, A> v, Q q) {
return v.visit(this, q);
}
/**
* The test expression of this loop.
*/
public Expression getTest() {
return test;
}
@Override
public Node getContinueTarget() {
return test;
}
}