23.06.2015 Views

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

TypeScript Language Specification v1.5

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ModuleBody:<br />

ModuleElements opt<br />

ModuleElements:<br />

ModuleElement<br />

ModuleElements ModuleElement<br />

ModuleElement:<br />

Statement<br />

export opt VariableDeclaration<br />

export opt FunctionDeclaration<br />

export opt ClassDeclaration<br />

export opt InterfaceDeclaration<br />

export opt TypeAliasDeclaration<br />

export opt EnumDeclaration<br />

export opt ModuleDeclaration<br />

export opt ImportDeclaration<br />

export opt AmbientDeclaration<br />

ImportDeclaration:<br />

import Identifier = EntityName ;<br />

EntityName:<br />

ModuleName<br />

ModuleName . Identifier<br />

A.9 Source Files and External Modules<br />

SourceFile:<br />

ImplementationSourceFile<br />

DeclarationSourceFile<br />

ImplementationSourceFile:<br />

ImplementationElements opt<br />

ImplementationElements:<br />

ImplementationElement<br />

ImplementationElements ImplementationElement<br />

ImplementationElement:<br />

ModuleElement<br />

ExportAssignment<br />

AmbientExternalModuleDeclaration<br />

export opt ExternalImportDeclaration<br />

164

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!