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 declare module "X" {...}. */ public class ExternalModuleDeclaration extends Statement { private final Literal name; private final List body; public ExternalModuleDeclaration(SourceLocation loc, Literal name, List body) { super("ExternalModuleDeclaration", loc); this.name = name; this.body = body; } @Override public R accept(Visitor v, C c) { return v.visit(this, c); } public Literal getName() { return name; } public List getBody() { return body; } }