Class DeclarationEmitter

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(emittingFileName: string, document: Document, compiler: TypeScriptCompiler, emitOptions: EmitOptions, semanticInfoChain: SemanticInfoChain): DeclarationEmitter

Parameters

Returns

DeclarationEmitter

Properties

private compiler: any

private declFile: any

public document: Document

private emitOptions: any

private emittedReferencePaths: any

private emittingFileName: any

private indenter: any

private semanticInfoChain: any

Methods

private canEmitDeclarations(declAST: any): any

Parameters

  • declAST: any

Returns

any

private emitAccessorDeclarationComments(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitArgDecl(argDecl: any, id: any, isOptional: any, isPrivate: any): any

Parameters

  • argDecl: any
  • id: any
  • isOptional: any
  • isPrivate: any

Returns

any

private emitBaseList(bases: any, useExtendsList: any): any

Parameters

  • bases: any
  • useExtendsList: any

Returns

any

private emitCallSignature(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitClassElementModifiers(modifiers: any): any

Parameters

  • modifiers: any

Returns

any

private emitClassMembersFromConstructorDefinition(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitComment(comment: any): any

Parameters

  • comment: any

Returns

any

private emitConstructSignature(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitDeclFlags(declarationAST: any, typeString: any): any

Parameters

  • declarationAST: any
  • typeString: any

Returns

any

private emitDeclarationComments(ast: any, endLine?: any): any

Parameters

  • ast: any
  • endLine?: any optional

Returns

any

public emitDeclarations(sourceUnit: SourceUnit)

Parameters

private emitDeclarationsForAST(ast: any): any

Parameters

  • ast: any

Returns

any

private emitDeclarationsForClassDeclaration(classDecl: any): any

Parameters

  • classDecl: any

Returns

any

private emitDeclarationsForConstructorDeclaration(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitDeclarationsForEnumDeclaration(moduleDecl: any): any

Parameters

  • moduleDecl: any

Returns

any

private emitDeclarationsForExportAssignment(ast: any): any

Parameters

  • ast: any

Returns

any

private emitDeclarationsForFunctionDeclaration(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitDeclarationsForGetAccessor(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitDeclarationsForImportDeclaration(importDeclAST: any): any

Parameters

  • importDeclAST: any

Returns

any

private emitDeclarationsForInterfaceDeclaration(interfaceDecl: any): any

Parameters

  • interfaceDecl: any

Returns

any

private emitDeclarationsForList(list: any): any

Parameters

  • list: any

Returns

any

private emitDeclarationsForMemberVariableDeclaration(varDecl: any): any

Parameters

  • varDecl: any

Returns

any

private emitDeclarationsForModuleDeclaration(moduleDecl: any): any

Parameters

  • moduleDecl: any

Returns

any

private emitDeclarationsForSetAccessor(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitDeclarationsForSourceUnit(sourceUnit: any): any

Parameters

  • sourceUnit: any

Returns

any

private emitDeclarationsForVariableDeclaration(variableDeclaration: any): any

Parameters

  • variableDeclaration: any

Returns

any

private emitDeclarationsForVariableStatement(variableStatement: any): any

Parameters

  • variableStatement: any

Returns

any

private emitHeritageClause(clause: any): any

Parameters

  • clause: any

Returns

any

private emitHeritageClauses(clauses: any): any

Parameters

  • clauses: any

Returns

any

private emitIndent(): any

Returns

any

private emitIndexMemberDeclaration(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitIndexSignature(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitMemberAccessorDeclaration(funcDecl: any, modifiers: any, name: any): any

Parameters

  • funcDecl: any
  • modifiers: any
  • name: any

Returns

any

private emitMemberFunctionDeclaration(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitMethodSignature(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private emitParameterList(isPrivate: any, parameterList: any): any

Parameters

  • isPrivate: any
  • parameterList: any

Returns

any

private emitParameters(isPrivate: any, parameterList: any): any

Parameters

  • isPrivate: any
  • parameterList: any

Returns

any

private emitPropertySignature(varDecl: any): any

Parameters

  • varDecl: any

Returns

any

private emitReferencePaths(sourceUnit: any): any

Parameters

  • sourceUnit: any

Returns

any

private emitSeparatedList(list: any): any

Parameters

  • list: any

Returns

any

private emitTypeNamesMember(memberName: any, emitIndent?: any): any

Parameters

  • memberName: any
  • emitIndent?: any optional

Returns

any

private emitTypeOfVariableDeclaratorOrParameter(boundDecl: any): any

Parameters

  • boundDecl: any

Returns

any

private emitTypeParameters(typeParams: any, funcSignature?: any): any

Parameters

  • typeParams: any
  • funcSignature?: any optional

Returns

any

private emitTypeSignature(ast: any, type: any): any

Parameters

  • ast: any
  • type: any

Returns

any

private emitVariableDeclarator(varDecl: any, isFirstVarInList: any, isLastVarInList: any): any

Parameters

  • varDecl: any
  • isFirstVarInList: any
  • isLastVarInList: any

Returns

any

private getDeclFlagsString(pullDecl: any, typeString: any): any

Parameters

  • pullDecl: any
  • typeString: any

Returns

any

public static getEnclosingContainer(ast: AST): AST

Parameters

Returns

AST

private getIndentString(declIndent?: any): any

Parameters

  • declIndent?: any optional

Returns

any

public getOutputFile(): OutputFile

Returns

OutputFile

private isOverloadedCallSignature(funcDecl: any): any

Parameters

  • funcDecl: any

Returns

any

private resolveScriptReference(document: any, reference: any): any

Parameters

  • document: any
  • reference: any

Returns

any

private writeDeclarationComments(declComments: any, endLine?: any): any

Parameters

  • declComments: any
  • endLine?: any optional

Returns

any