Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
TypeScript
DeclarationEmitter
Class DeclarationEmitter
Index
Constructor methods
constructor
Properties
compiler
declFile
document
emitOptions
emittedReferencePaths
emittingFileName
indenter
semanticInfoChain
Methods
canEmitDeclarations
emitAccessorDeclarationComments
emitArgDecl
emitBaseList
emitCallSignature
emitClassElementModifiers
emitClassMembersFromConstructorDefinition
emitComment
emitConstructSignature
emitDeclFlags
emitDeclarationComments
emitDeclarations
emitDeclarationsForAST
emitDeclarationsForClassDeclaration
emitDeclarationsForConstructorDeclaration
emitDeclarationsForEnumDeclaration
emitDeclarationsForExportAssignment
emitDeclarationsForFunctionDeclaration
emitDeclarationsForGetAccessor
emitDeclarationsForImportDeclaration
emitDeclarationsForInterfaceDeclaration
emitDeclarationsForList
emitDeclarationsForMemberVariableDeclaration
emitDeclarationsForModuleDeclaration
emitDeclarationsForSetAccessor
emitDeclarationsForSourceUnit
emitDeclarationsForVariableDeclaration
emitDeclarationsForVariableStatement
emitHeritageClause
emitHeritageClauses
emitIndent
emitIndexMemberDeclaration
emitIndexSignature
emitMemberAccessorDeclaration
emitMemberFunctionDeclaration
emitMethodSignature
emitParameterList
emitParameters
emitPropertySignature
emitReferencePaths
emitSeparatedList
emitTypeNamesMember
emitTypeOfVariableDeclaratorOrParameter
emitTypeParameters
emitTypeSignature
emitVariableDeclarator
getDeclFlagsString
getEnclosingContainer
getIndentString
getOutputFile
isOverloadedCallSignature
resolveScriptReference
writeDeclarationComments
Constructor methods
constructor
(
emittingFileName
:
string
, document
:
Document
, compiler
:
TypeScriptCompiler
, emitOptions
:
EmitOptions
, semanticInfoChain
:
SemanticInfoChain
)
:
DeclarationEmitter
Parameters
emittingFileName:
string
document:
Document
compiler:
TypeScriptCompiler
emitOptions:
EmitOptions
semanticInfoChain:
SemanticInfoChain
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
sourceUnit:
SourceUnit
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
ast:
AST
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
Globals
TypeScript
TypeScript.ASTHelpers
TypeScript.BitMatrix
TypeScript.BitVector
TypeScript.Collections
TypeScript.CompilerDiagnostics
TypeScript.DeclarationCreator
TypeScript.Indentation
TypeScript.IntegerUtilities
TypeScript.LineMap1
TypeScript.Parser
TypeScript.PullHelpers
TypeScript.PullInstantiationHelpers
TypeScript.ScriptSnapshot
TypeScript.Services
TypeScript.Services.Breakpoints
TypeScript.Services.Formatting
TypeScript.Services.Formatting.Shared
TypeScript.SimpleText
TypeScript.Syntax
TypeScript.SyntaxFacts
TypeScript.TextFactory
TypeScript.TextUtilities
typescript-services
DiagnosticCode
Environment
LocalizedDiagnosticMessages
astTranslationTime
compilerDirectoryExistsTime
compilerDirectoryNameTime
compilerFileExistsTime
compilerResolvePathTime
declCacheHit
declCacheMiss
declarationEmitFunctionDeclarationGetSymbolTime
declarationEmitGetAccessorFunctionTime
declarationEmitGetBaseTypeTime
declarationEmitGetBoundDeclTypeTime
declarationEmitGetImportDeclarationSymbolTime
declarationEmitGetTypeParameterSymbolTime
declarationEmitIsExternallyVisibleTime
declarationEmitIsOverloadedCallSignatureTime
declarationEmitTime
declarationEmitTypeSignatureTime
diagnosticInformationMap
emitTime
emitWriteFileTime
fileResolutionGetDefaultLibraryTime
fileResolutionIOTime
fileResolutionImportFileSearchTime
fileResolutionScanImportsTime
fileResolutionTime
ioHostCreateDirectoryStructureTime
ioHostDirectoryNameTime
ioHostResolvePathTime
ioHostWriteFileTime
nSpecializationsCreated
nSpecializedSignaturesCreated
nSpecializedTypeParameterCreated
nodeCreateBufferTime
nodeMakeDirectoryTime
nodeWriteFileSyncTime
pullSymbolID
sentinelEmptyArray
sourceCharactersCompiled
symbolCacheHit
symbolCacheMiss
syntaxDiagnosticsTime
syntaxTreeParseTime
tripleSlashReferenceRegExp
typeCheckTime
AssertionLevel
ByteOrderMark
CharacterCodes
Constants
DiagnosticCategory
EmitContainer
EmitOutputResult
GenerativeTypeClassification
GetAllMembersVisiblity
LanguageVersion
ModuleGenTarget
OutputFileType
PullElementFlags
PullElementKind
SyntaxConstants
SyntaxKind
TypeRelationshipFlags
DiagnosticInfo
IASTSpan
IArrowFunctionExpressionSyntax
IAstWalker
IBitMatrix
IBitVector
ICallExpression
IClassElementSyntax
IEnvironment
IExpressionSyntax
IFileReference
IHashTable
IIndexable
IIterationStatementSyntax
ILineAndCharacter
ILogger
IMemberDeclarationSyntax
IMemberExpressionSyntax
IModuleElementSyntax
IModuleReferenceSyntax
INameSyntax
IParameters
IPostfixExpressionSyntax
IPreProcessedFileInfo
IPrimaryExpressionSyntax
IPropertyAssignmentSyntax
IPullTypeCollection
IReferenceResolverHost
IResolvedFile
IScriptSnapshot
ISeparatedSyntaxList
ISimpleText
ISlidingWindowSource
IStatementSyntax
ISwitchClauseSyntax
ISyntaxElement
ISyntaxList
ISyntaxNode
ISyntaxNodeOrToken
ISyntaxToken
ISyntaxTrivia
ISyntaxTriviaList
ISyntaxVisitor
IText
ITextLine
ITokenInfo
ITokenInformation
ITypeMemberSyntax
ITypeSyntax
IUnaryExpressionSyntax
IndexSignatureInfo
InstantiableSymbol
Iterator
PullCallSymbolInfo
PullSymbolInfo
PullVisibleSymbolsInfo
TypeArgumentMap
AST
ASTSpan
ArgumentList
ArgumentListSyntax
ArrayLiteralExpression
ArrayLiteralExpressionSyntax
ArrayType
ArrayTypeSyntax
ArrayUtilities
AstWalkOptions
AstWalkerFactory
Base64VLQFormat
BinaryExpression
BinaryExpressionSyntax
Block
BlockSyntax
BloomFilter
BreakStatement
BreakStatementSyntax
BuiltInType
CallSignature
CallSignatureSyntax
CandidateInferenceInfo
CaseSwitchClause
CaseSwitchClauseSyntax
CastExpression
CastExpressionSyntax
CatchClause
CatchClauseSyntax
CharacterInfo
ClassDeclaration
ClassDeclarationSyntax
Comment
CompilationSettings
CompileResult
ConditionalExpression
ConditionalExpressionSyntax
Constraint
ConstraintSyntax
ConstructSignature
ConstructSignatureSyntax
ConstructorDeclaration
ConstructorDeclarationSyntax
ConstructorType
ConstructorTypeSyntax
ContextualSignatureInstantiationTypeArgumentInferenceContext
ContinueStatement
ContinueStatementSyntax
Debug
DebuggerStatement
DebuggerStatementSyntax
DeclarationEmitter
constructor
compiler
declFile
document
emitOptions
emittedReferencePaths
emittingFileName
indenter
semanticInfoChain
canEmitDeclarations
emitAccessorDeclarationComments
emitArgDecl
emitBaseList
emitCallSignature
emitClassElementModifiers
emitClassMembersFromConstructorDefinition
emitComment
emitConstructSignature
emitDeclFlags
emitDeclarationComments
emitDeclarations
emitDeclarationsForAST
emitDeclarationsForClassDeclaration
emitDeclarationsForConstructorDeclaration
emitDeclarationsForEnumDeclaration
emitDeclarationsForExportAssignment
emitDeclarationsForFunctionDeclaration
emitDeclarationsForGetAccessor
emitDeclarationsForImportDeclaration
emitDeclarationsForInterfaceDeclaration
emitDeclarationsForList
emitDeclarationsForMemberVariableDeclaration
emitDeclarationsForModuleDeclaration
emitDeclarationsForSetAccessor
emitDeclarationsForSourceUnit
emitDeclarationsForVariableDeclaration
emitDeclarationsForVariableStatement
emitHeritageClause
emitHeritageClauses
emitIndent
emitIndexMemberDeclaration
emitIndexSignature
emitMemberAccessorDeclaration
emitMemberFunctionDeclaration
emitMethodSignature
emitParameterList
emitParameters
emitPropertySignature
emitReferencePaths
emitSeparatedList
emitTypeNamesMember
emitTypeOfVariableDeclaratorOrParameter
emitTypeParameters
emitTypeSignature
emitVariableDeclarator
getDeclFlagsString
getEnclosingContainer
getIndentString
getOutputFile
isOverloadedCallSignature
resolveScriptReference
writeDeclarationComments
DefaultSwitchClause
DefaultSwitchClauseSyntax
DeleteExpression
DeleteExpressionSyntax
DepthLimitedWalker
Diagnostic
DoStatement
DoStatementSyntax
Document
ElementAccessExpression
ElementAccessExpressionSyntax
ElseClause
ElseClauseSyntax
EmitOptions
EmitOutput
EmitState
Emitter
EmptyStatement
EmptyStatementSyntax
EnclosingTypeWalkerState
EnumDeclaration
EnumDeclarationSyntax
EnumElement
EnumElementSyntax
EqualsValueClause
EqualsValueClauseSyntax
Errors
ExportAssignment
ExportAssignmentSyntax
ExpressionStatement
ExpressionStatementSyntax
ExternalModuleReference
ExternalModuleReferenceSyntax
FileInformation
FinallyClause
FinallyClauseSyntax
ForInStatement
ForInStatementSyntax
ForStatement
ForStatementSyntax
FunctionDeclaration
FunctionDeclarationSyntax
FunctionExpression
FunctionExpressionSyntax
FunctionPropertyAssignment
FunctionPropertyAssignmentSyntax
FunctionType
FunctionTypeSyntax
GenericType
GenericTypeSyntax
GetAccessor
GetAccessorSyntax
Hash
HeritageClause
HeritageClauseSyntax
IASTToken
ISeparatedSyntaxList2
ISyntaxList2
IdentiferNameHashTable
Identifier
IdentifierWalker
IfStatement
IfStatementSyntax
ImmutableCompilationSettings
ImportDeclaration
ImportDeclarationSyntax
Indenter
IndexMemberDeclaration
IndexMemberDeclarationSyntax
IndexSignature
IndexSignatureSyntax
InterfaceDeclaration
InterfaceDeclarationSyntax
InvocationExpression
InvocationExpressionSyntax
InvocationTypeArgumentInferenceContext
LabeledStatement
LabeledStatementSyntax
LineAndCharacter
LineMap
LiteralExpression
Location
MathPrototype
MemberAccessExpression
MemberAccessExpressionSyntax
MemberFunctionDeclaration
MemberFunctionDeclarationSyntax
MemberName
MemberNameArray
MemberNameString
MemberVariableDeclaration
MemberVariableDeclarationSyntax
MethodSignature
MethodSignatureSyntax
ModuleDeclaration
ModuleDeclarationSyntax
ModuleNameModuleReference
ModuleNameModuleReferenceSyntax
NormalPullDecl
NullLogger
NumericLiteral
ObjectCreationExpression
ObjectCreationExpressionSyntax
ObjectLiteralExpression
ObjectLiteralExpressionSyntax
ObjectType
ObjectTypeSyntax
OmittedExpression
OmittedExpressionSyntax
OutputFile
Parameter
ParameterList
ParameterListSyntax
ParameterSyntax
ParenthesizedArrowFunctionExpression
ParenthesizedArrowFunctionExpressionSyntax
ParenthesizedExpression
ParenthesizedExpressionSyntax
ParseOptions
PositionTrackingWalker
PositionedElement
PositionedList
PositionedNode
PositionedNodeOrToken
PositionedSeparatedList
PositionedSkippedToken
PositionedToken
PostfixUnaryExpression
PostfixUnaryExpressionSyntax
PrefixUnaryExpression
PrefixUnaryExpressionSyntax
PropertySignature
PropertySignatureSyntax
PullAccessorSymbol
PullAdditionalCallResolutionData
PullAdditionalObjectLiteralResolutionData
PullContainerSymbol
PullContextualTypeContext
PullDecl
PullDeclGroup
PullEnumElementDecl
PullErrorTypeSymbol
PullFunctionExpressionDecl
PullInstantiatedSignatureSymbol
PullInstantiatedTypeParameterSymbol
PullInstantiatedTypeReferenceSymbol
PullPrimitiveTypeSymbol
PullSignatureSymbol
PullStringConstantTypeSymbol
PullSymbol
PullSymbolBinder
PullSynthesizedDecl
PullTypeAliasSymbol
PullTypeEnclosingTypeWalker
PullTypeParameterSymbol
PullTypeReferenceSymbol
PullTypeResolutionContext
PullTypeResolver
PullTypeSymbol
QualifiedName
QualifiedNameSyntax
ReferenceResolutionResult
ReferenceResolver
RegularExpressionLiteral
ReturnStatement
ReturnStatementSyntax
RootPullDecl
Scanner
ScannerUtilities
SemanticInfoChain
SetAccessor
SetAccessorSyntax
SimpleArrowFunctionExpression
SimpleArrowFunctionExpressionSyntax
SimplePropertyAssignment
SimplePropertyAssignmentSyntax
SlidingWindow
SourceMapEntry
SourceMapPosition
SourceMapper
SourceMapping
SourceUnit
SourceUnitSyntax
StringHashTable
StringLiteral
StringUtilities
SuperExpression
SwitchStatement
SwitchStatementSyntax
SyntaxDedenter
SyntaxIndenter
SyntaxInformationMap
SyntaxNode
SyntaxNodeInvariantsChecker
SyntaxRewriter
SyntaxTokenReplacer
SyntaxTree
SyntaxTreeToAstVisitor
SyntaxUtilities
SyntaxVisitor
SyntaxWalker
TextChangeRange
TextSpan
TextWriter
ThisExpression
ThrowStatement
ThrowStatementSyntax
Timer
TryStatement
TryStatementSyntax
TypeAnnotation
TypeAnnotationSyntax
TypeArgumentInferenceContext
TypeArgumentList
TypeArgumentListSyntax
TypeComparisonInfo
TypeOfExpression
TypeOfExpressionSyntax
TypeParameter
TypeParameterList
TypeParameterListSyntax
TypeParameterSyntax
TypeQuery
TypeQuerySyntax
TypeScriptCompiler
Unicode
VariableDeclaration
VariableDeclarationSyntax
VariableDeclarator
VariableDeclaratorSyntax
VariableStatement
VariableStatementSyntax
VoidExpression
VoidExpressionSyntax
WhileStatement
WhileStatementSyntax
WithStatement
WithStatementSyntax
WrapsTypeParameterCache
changePathToDTS
compareDataObjects
convertToDirectoryPath
createIntrinsicsObject
filePath
filePathComponents
getAstWalkerFactory
getDeclareFilePath
getDiagnosticMessage
getIDForTypeSubstitutions
getLastConstructor
getLocalizedText
getParseOptions
getPathComponents
getPrettyName
getPropertyAssignmentNameTextFromIdentifier
getReferencedFiles
getRelativePathToFixedPath
getRootFilePath
getTrimmedTextLines
hasFlag
hasModifier
isDTSFile
isDoubleQuoted
isQuoted
isRelative
isRooted
isSingleQuoted
isTSFile
isTypesOnlyLocation
lastParameterIsRest
newLine
normalizePath
preProcessFile
quoteStr
stripStartAndEndQuotes
structuralEqualsIncludingPosition
structuralEqualsNotIncludingPosition
switchToForwardSlashes
timeFunction
trimModName