mirror of
https://github.com/github/codeql.git
synced 2026-05-24 16:17:07 +02:00
33 lines
784 B
Java
33 lines
784 B
Java
package com.semmle.ts.ast;
|
|
|
|
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 <code>declare module "X" {...}</code>. */
|
|
public class ExternalModuleDeclaration extends Statement {
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public <C, R> R accept(Visitor<C, R> v, C c) {
|
|
return v.visit(this, c);
|
|
}
|
|
|
|
public Literal getName() {
|
|
return name;
|
|
}
|
|
|
|
public List<Statement> getBody() {
|
|
return body;
|
|
}
|
|
}
|