mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
JavaScript: Autoformat extractor sources using google-java-format.
No special settings; command: find javascript/extractor/src -name "*.java" | xargs java -jar /path/to/google-java-format-1.7-all-deps.jar --replace
This commit is contained in:
@@ -1,35 +1,32 @@
|
||||
package com.semmle.ts.ast;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.semmle.js.ast.Literal;
|
||||
import com.semmle.js.ast.SourceLocation;
|
||||
import com.semmle.js.ast.Statement;
|
||||
import com.semmle.js.ast.Visitor;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A statement of form <tt>declare module "X" {...}</tt>.
|
||||
*/
|
||||
/** A statement of form <tt>declare module "X" {...}</tt>. */
|
||||
public class ExternalModuleDeclaration extends Statement {
|
||||
private final Literal name;
|
||||
private final List<Statement> body;
|
||||
private final Literal name;
|
||||
private final List<Statement> body;
|
||||
|
||||
public ExternalModuleDeclaration(SourceLocation loc, Literal name, List<Statement> body) {
|
||||
super("ExternalModuleDeclaration", loc);
|
||||
this.name = name;
|
||||
this.body = body;
|
||||
}
|
||||
public ExternalModuleDeclaration(SourceLocation loc, Literal name, List<Statement> body) {
|
||||
super("ExternalModuleDeclaration", loc);
|
||||
this.name = name;
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <C, R> R accept(Visitor<C, R> v, C c) {
|
||||
return v.visit(this, c);
|
||||
}
|
||||
@Override
|
||||
public <C, R> R accept(Visitor<C, R> v, C c) {
|
||||
return v.visit(this, c);
|
||||
}
|
||||
|
||||
public Literal getName() {
|
||||
return name;
|
||||
}
|
||||
public Literal getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public List<Statement> getBody() {
|
||||
return body;
|
||||
}
|
||||
public List<Statement> getBody() {
|
||||
return body;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user