Versions in this module Expand all Collapse all v0 v0.0.2 Apr 25, 2026 Changes in this version type EmitResolver + TryJSTypeNodeToTypeNode func(emitContext *EmitContext, typeNode *ast.Node, enclosingDeclaration *ast.Node, ...) *ast.Node v0.0.1 Apr 11, 2026 Changes in this version + const EFNoComments + const EFNoSourceMap + const EFNoTokenSourceMaps + const EFNone + const GeneratedIdentifierFlagsAllowNameSubstitution + const GeneratedIdentifierFlagsAuto + const GeneratedIdentifierFlagsFileLevel + const GeneratedIdentifierFlagsKindMask + const GeneratedIdentifierFlagsLoop + const GeneratedIdentifierFlagsNode + const GeneratedIdentifierFlagsNone + const GeneratedIdentifierFlagsOptimistic + const GeneratedIdentifierFlagsReservedInNestedScopes + const GeneratedIdentifierFlagsUnique + const TypeReferenceSerializationKindArrayLikeType + const TypeReferenceSerializationKindBigIntLikeType + const TypeReferenceSerializationKindBooleanType + const TypeReferenceSerializationKindESSymbolType + const TypeReferenceSerializationKindNumberLikeType + const TypeReferenceSerializationKindObjectType + const TypeReferenceSerializationKindPromise + const TypeReferenceSerializationKindStringLikeType + const TypeReferenceSerializationKindTypeWithCallSignature + const TypeReferenceSerializationKindTypeWithConstructSignatureAndValue + const TypeReferenceSerializationKindUnknown + const TypeReferenceSerializationKindVoidNullableOrNeverType + var AdvancedAsyncSuperHelper = &EmitHelper + var AsyncSuperHelper = &EmitHelper + func EscapeString(s string, quoteChar QuoteChar) string + func FormatGeneratedName(privateName bool, prefix string, base string, suffix string) string + func GetDefaultIndentSize() int + func GetLinesBetweenPositions(sourceFile *ast.SourceFile, pos1 int, pos2 int) int + func IsFileLevelUniqueName(sourceFile *ast.SourceFile, name string, hasGlobalName func(string) bool) bool + func IsPinnedComment(text string, comment ast.CommentRange) bool + func IsRecognizedTripleSlashComment(text string, commentRange ast.CommentRange) bool + func PositionsAreOnSameLine(pos1 int, pos2 int, sourceFile *ast.SourceFile) bool + func RangeIsOnSingleLine(r core.TextRange, sourceFile *ast.SourceFile) bool + type AssignedNameOptions struct + AllowComments bool + AllowSourceMaps bool + IgnoreAssignedName bool + type AutoGenerateId uint32 + type AutoGenerateInfo struct + Flags GeneratedIdentifierFlags + Id AutoGenerateId + Node *ast.Node + Prefix string + Suffix string + type AutoGenerateOptions struct + Flags GeneratedIdentifierFlags + Prefix string + Suffix string + type ChangeTrackerWriter struct + func NewChangeTrackerWriter(newline string, indentSize int) *ChangeTrackerWriter + func (ct *ChangeTrackerWriter) AssignPositionsToNode(node *ast.Node, factory *ast.NodeFactory) *ast.Node + func (ct *ChangeTrackerWriter) Clear() + func (ct *ChangeTrackerWriter) DecreaseIndent() + func (ct *ChangeTrackerWriter) GetColumn() core.UTF16Offset + func (ct *ChangeTrackerWriter) GetIndent() int + func (ct *ChangeTrackerWriter) GetLine() int + func (ct *ChangeTrackerWriter) GetPrintHandlers() PrintHandlers + func (ct *ChangeTrackerWriter) GetTextPos() int + func (ct *ChangeTrackerWriter) HasTrailingComment() bool + func (ct *ChangeTrackerWriter) HasTrailingWhitespace() bool + func (ct *ChangeTrackerWriter) IncreaseIndent() + func (ct *ChangeTrackerWriter) IsAtStartOfLine() bool + func (ct *ChangeTrackerWriter) RawWrite(s string) + func (ct *ChangeTrackerWriter) String() string + func (ct *ChangeTrackerWriter) Write(text string) + func (ct *ChangeTrackerWriter) WriteComment(text string) + func (ct *ChangeTrackerWriter) WriteKeyword(text string) + func (ct *ChangeTrackerWriter) WriteLine() + func (ct *ChangeTrackerWriter) WriteLineForce(force bool) + func (ct *ChangeTrackerWriter) WriteLiteral(s string) + func (ct *ChangeTrackerWriter) WriteOperator(text string) + func (ct *ChangeTrackerWriter) WriteParameter(text string) + func (ct *ChangeTrackerWriter) WriteProperty(text string) + func (ct *ChangeTrackerWriter) WritePunctuation(text string) + func (ct *ChangeTrackerWriter) WriteSpace(text string) + func (ct *ChangeTrackerWriter) WriteStringLiteral(text string) + func (ct *ChangeTrackerWriter) WriteSymbol(text string, symbol *ast.Symbol) + func (ct *ChangeTrackerWriter) WriteTrailingSemicolon(text string) + func (w *ChangeTrackerWriter) Grow(n int) + type EmitContext struct + Factory *NodeFactory + func GetEmitContext() (*EmitContext, func()) + func NewEmitContext() *EmitContext + func (c *EmitContext) AddEmitFlags(node *ast.Node, flags EmitFlags) + func (c *EmitContext) AddEmitHelper(node *ast.Node, helper ...*EmitHelper) + func (c *EmitContext) AddHoistedFunctionDeclaration(node *ast.FunctionDeclarationNode) + func (c *EmitContext) AddInitializationStatement(node *ast.Node) + func (c *EmitContext) AddLexicalDeclaration(name *ast.IdentifierNode) + func (c *EmitContext) AddSyntheticLeadingComment(node *ast.Node, kind ast.Kind, text string, hasTrailingNewLine bool) *ast.Node + func (c *EmitContext) AddSyntheticTrailingComment(node *ast.Node, kind ast.Kind, text string, hasTrailingNewLine bool) *ast.Node + func (c *EmitContext) AddVariableDeclaration(name *ast.IdentifierNode) + func (c *EmitContext) AssignCommentAndSourceMapRanges(to *ast.Node, from *ast.Node) + func (c *EmitContext) AssignCommentRange(to *ast.Node, from *ast.Node) + func (c *EmitContext) AssignSourceMapRange(to *ast.Node, from *ast.Node) + func (c *EmitContext) AssignedName(node *ast.Node) *ast.Expression + func (c *EmitContext) ClassThis(node *ast.Node) *ast.Expression + func (c *EmitContext) CommentRange(node *ast.Node) core.TextRange + func (c *EmitContext) EmitFlags(node *ast.Node) EmitFlags + func (c *EmitContext) EndAndMergeLexicalEnvironment(statements []*ast.Statement) []*ast.Statement + func (c *EmitContext) EndAndMergeLexicalEnvironmentList(statements *ast.StatementList) *ast.StatementList + func (c *EmitContext) EndAndMergeVariableEnvironment(statements []*ast.Statement) []*ast.Statement + func (c *EmitContext) EndAndMergeVariableEnvironmentList(statements *ast.StatementList) *ast.StatementList + func (c *EmitContext) EndLexicalEnvironment() []*ast.Statement + func (c *EmitContext) EndVariableEnvironment() []*ast.Statement + func (c *EmitContext) GetAutoGenerateInfo(name *ast.MemberName) *AutoGenerateInfo + func (c *EmitContext) GetEmitHelpers(node *ast.Node) []*EmitHelper + func (c *EmitContext) GetExternalHelpersModuleName(node *ast.SourceFile) *ast.IdentifierNode + func (c *EmitContext) GetNodeForGeneratedName(name *ast.MemberName) *ast.Node + func (c *EmitContext) GetSyntheticLeadingComments(node *ast.Node) []SynthesizedComment + func (c *EmitContext) GetSyntheticTrailingComments(node *ast.Node) []SynthesizedComment + func (c *EmitContext) GetTypeNode(node *ast.Node) *ast.TypeNode + func (c *EmitContext) HasAutoGenerateInfo(node *ast.MemberName) bool + func (c *EmitContext) HasRecordedExternalHelpers(node *ast.SourceFile) bool + func (c *EmitContext) IsCallToHelper(firstSegment *ast.Expression, helperName string) bool + func (c *EmitContext) MergeEnvironment(statements []*ast.Statement, declarations []*ast.Statement) []*ast.Statement + func (c *EmitContext) MergeEnvironmentList(statements *ast.StatementList, declarations []*ast.Statement) *ast.StatementList + func (c *EmitContext) MostOriginal(node *ast.Node) *ast.Node + func (c *EmitContext) MoveEmitHelpers(source *ast.Node, target *ast.Node, predicate func(helper *EmitHelper) bool) + func (c *EmitContext) NewNodeVisitor(visit func(node *ast.Node) *ast.Node) *ast.NodeVisitor + func (c *EmitContext) NewNotEmittedStatement(node *ast.Node) *ast.Statement + func (c *EmitContext) Original(node *ast.Node) *ast.Node + func (c *EmitContext) ParseNode(node *ast.Node) *ast.Node + func (c *EmitContext) ReadEmitHelpers() []*EmitHelper + func (c *EmitContext) RequestEmitHelper(helper *EmitHelper) + func (c *EmitContext) Reset() + func (c *EmitContext) SetAssignedName(node *ast.Node, name *ast.Expression) + func (c *EmitContext) SetClassThis(node *ast.Node, classThis *ast.IdentifierNode) + func (c *EmitContext) SetCommentRange(node *ast.Node, loc core.TextRange) + func (c *EmitContext) SetEmitFlags(node *ast.Node, flags EmitFlags) + func (c *EmitContext) SetExternalHelpersModuleName(node *ast.SourceFile, name *ast.IdentifierNode) + func (c *EmitContext) SetOriginal(node *ast.Node, original *ast.Node) + func (c *EmitContext) SetOriginalEx(node *ast.Node, original *ast.Node, allowOverwrite bool) + func (c *EmitContext) SetSourceMapRange(node *ast.Node, loc core.TextRange) + func (c *EmitContext) SetSyntheticLeadingComments(node *ast.Node, comments []SynthesizedComment) *ast.Node + func (c *EmitContext) SetSyntheticTrailingComments(node *ast.Node, comments []SynthesizedComment) *ast.Node + func (c *EmitContext) SetTokenSourceMapRange(node *ast.Node, kind ast.Kind, loc core.TextRange) + func (c *EmitContext) SetTypeNode(node *ast.Node, typeNode *ast.TypeNode) + func (c *EmitContext) SourceMapRange(node *ast.Node) core.TextRange + func (c *EmitContext) StartLexicalEnvironment() + func (c *EmitContext) StartVariableEnvironment() + func (c *EmitContext) TextSource(node *ast.StringLiteralNode) *ast.Node + func (c *EmitContext) TokenSourceMapRange(node *ast.Node, kind ast.Kind) (core.TextRange, bool) + func (c *EmitContext) UnsetOriginal(node *ast.Node) + func (c *EmitContext) VisitEmbeddedStatement(node *ast.Statement, visitor *ast.NodeVisitor) *ast.Statement + func (c *EmitContext) VisitFunctionBody(node *ast.BlockOrExpression, visitor *ast.NodeVisitor) *ast.BlockOrExpression + func (c *EmitContext) VisitIterationBody(body *ast.Statement, visitor *ast.NodeVisitor) *ast.Statement + func (c *EmitContext) VisitParameters(nodes *ast.ParameterList, visitor *ast.NodeVisitor) *ast.ParameterList + func (c *EmitContext) VisitVariableEnvironment(nodes *ast.StatementList, visitor *ast.NodeVisitor) *ast.StatementList + type EmitFlags uint32 + const EFAsyncFunctionBody + const EFCustomPrologue + const EFExportName + const EFExternalHelpers + const EFHelperName + const EFIndented + const EFIndirectCall + const EFLocalName + const EFMultiLine + const EFNoAsciiEscaping + const EFNoIndentation + const EFNoLeadingComments + const EFNoLeadingSourceMap + const EFNoLexicalArguments + const EFNoNestedComments + const EFNoNestedSourceMaps + const EFNoTokenLeadingSourceMaps + const EFNoTokenTrailingSourceMaps + const EFNoTrailingComments + const EFNoTrailingSourceMap + const EFReuseTempVariableScope + const EFSingleLine + const EFStartOnNewLine + const EFTransformPrivateStaticElements + type EmitHelper struct + Dependencies []*EmitHelper + ImportName string + Name string + Priority *Priority + Scoped bool + Text string + TextCallback func(makeUniqueName func(string) string) string + type EmitHost interface + CommonSourceDirectory func() string + GetCurrentDirectory func() string + GetEmitModuleFormatOfFile func(file ast.HasFileName) core.ModuleKind + GetEmitResolver func() EmitResolver + GetProjectReferenceFromSource func(path tspath.Path) *tsoptions.SourceOutputAndProjectReference + IsEmitBlocked func(file string) bool + IsSourceFileFromExternalLibrary func(file *ast.SourceFile) bool + Options func() *core.CompilerOptions + SourceFiles func() []*ast.SourceFile + UseCaseSensitiveFileNames func() bool + WriteFile func(fileName string, text string) error + type EmitResolver interface + CreateLateBoundIndexSignatures func(emitContext *EmitContext, container *ast.Node, enclosingDeclaration *ast.Node, ...) []*ast.Node + CreateLiteralConstValue func(emitContext *EmitContext, node *ast.Node, tracker nodebuilder.SymbolTracker) *ast.Node + CreateReturnTypeOfSignatureDeclaration func(emitContext *EmitContext, signatureDeclaration *ast.Node, ...) *ast.Node + CreateTypeOfDeclaration func(emitContext *EmitContext, declaration *ast.Node, ...) *ast.Node + CreateTypeOfExpression func(emitContext *EmitContext, expression *ast.Node, enclosingDeclaration *ast.Node, ...) *ast.Node + CreateTypeParametersOfSignatureDeclaration func(emitContext *EmitContext, signatureDeclaration *ast.Node, ...) []*ast.Node + GetConstantValue func(node *ast.Node) any + GetEffectiveDeclarationFlags func(node *ast.Node, flags ast.ModifierFlags) ast.ModifierFlags + GetEnumMemberValue func(node *ast.Node) evaluator.Result + GetExternalModuleFileFromDeclaration func(node *ast.Node) *ast.SourceFile + GetJsxFactoryEntity func(location *ast.Node) *ast.Node + GetJsxFragmentFactoryEntity func(location *ast.Node) *ast.Node + GetPropertiesOfContainerFunction func(node *ast.Node) []*ast.Symbol + GetResolutionModeOverride func(node *ast.Node) core.ResolutionMode + GetTypeReferenceSerializationKind func(name *ast.EntityName, serialScope *ast.Node) TypeReferenceSerializationKind + IsDeclarationVisible func(node *ast.Node) bool + IsDefinitelyReferenceToGlobalSymbolObject func(node *ast.Node) bool + IsEntityNameVisible func(entityName *ast.Node, enclosingDeclaration *ast.Node) SymbolAccessibilityResult + IsExpandoFunctionDeclaration func(node *ast.Node) bool + IsExpandoFunctionDeclarationUnsafe func(node *ast.Node) bool + IsImplementationOfOverload func(node *ast.SignatureDeclaration) bool + IsImportRequiredByAugmentation func(decl *ast.ImportDeclaration) bool + IsLateBound func(node *ast.Node) bool + IsLiteralConstDeclaration func(node *ast.Node) bool + IsOptionalParameter func(node *ast.Node) bool + IsReferencedAliasDeclaration func(node *ast.Node) bool + IsSymbolAccessible func(symbol *ast.Symbol, enclosingDeclaration *ast.Node, meaning ast.SymbolFlags, ...) SymbolAccessibilityResult + IsTopLevelValueImportEqualsWithEntityName func(node *ast.Node) bool + IsValueAliasDeclaration func(node *ast.Node) bool + MarkLinkedReferencesRecursively func(file *ast.SourceFile) + PrecalculateDeclarationEmitVisibility func(file *ast.SourceFile) + RequiresAddingImplicitUndefined func(node *ast.Node, symbol *ast.Symbol, enclosingDeclaration *ast.Node) bool + RequiresAddingImplicitUndefinedUnsafe func(node *ast.Node, symbol *ast.Symbol, enclosingDeclaration *ast.Node) bool + SetReferencedImportDeclaration func(node *ast.IdentifierNode, ref *ast.Declaration) + type EmitTextWriter interface + Clear func() + DecreaseIndent func() + GetColumn func() core.UTF16Offset + GetIndent func() int + GetLine func() int + GetTextPos func() int + HasTrailingComment func() bool + HasTrailingWhitespace func() bool + IncreaseIndent func() + IsAtStartOfLine func() bool + RawWrite func(s string) + String func() string + Write func(s string) + WriteComment func(text string) + WriteKeyword func(text string) + WriteLine func() + WriteLineForce func(force bool) + WriteLiteral func(s string) + WriteOperator func(text string) + WriteParameter func(text string) + WriteProperty func(text string) + WritePunctuation func(text string) + WriteSpace func(text string) + WriteStringLiteral func(text string) + WriteSymbol func(text string, symbol *ast.Symbol) + WriteTrailingSemicolon func(text string) + func GetSingleLineStringWriter() (EmitTextWriter, func()) + func NewTextWriter(newLine string, indentSize int) EmitTextWriter + type GeneratedIdentifierFlags int + func (f GeneratedIdentifierFlags) HasAllowNameSubstitution() bool + func (f GeneratedIdentifierFlags) IsAuto() bool + func (f GeneratedIdentifierFlags) IsFileLevel() bool + func (f GeneratedIdentifierFlags) IsLoop() bool + func (f GeneratedIdentifierFlags) IsNode() bool + func (f GeneratedIdentifierFlags) IsOptimistic() bool + func (f GeneratedIdentifierFlags) IsReservedInNestedScopes() bool + func (f GeneratedIdentifierFlags) IsUnique() bool + func (f GeneratedIdentifierFlags) Kind() GeneratedIdentifierFlags + type ListFormat int + const LFAllowTrailingComma + const LFAmpersandDelimited + const LFAngleBrackets + const LFArrayBindingPatternElements + const LFArrayLiteralExpressionElements + const LFAsteriskDelimited + const LFBarDelimited + const LFBraces + const LFBracketsMask + const LFCallExpressionArguments + const LFCaseBlockClauses + const LFCaseOrDefaultClauseStatements + const LFClassHeritageClauses + const LFClassMembers + const LFCommaDelimited + const LFCommaListElements + const LFDecorators + const LFDelimitersMask + const LFEnumMembers + const LFHeritageClauseTypes + const LFHeritageClauses + const LFImportAttributes + const LFImportClauseEntries + const LFIndented + const LFIndexSignatureParameters + const LFInterfaceMembers + const LFIntersectionTypeConstituents + const LFJSDocComment + const LFJsxElementAttributes + const LFJsxElementOrFragmentChildren + const LFLinesMask + const LFModifiers + const LFMultiLine + const LFMultiLineBlockStatements + const LFMultiLineFunctionBodyStatements + const LFMultiLineTupleTypeElements + const LFMultiLineTypeLiteralMembers + const LFNamedImportsOrExportsElements + const LFNewExpressionArguments + const LFNoInterveningComments + const LFNoSpaceIfEmpty + const LFNoTrailingNewLine + const LFNone + const LFNotDelimited + const LFObjectBindingPatternElements + const LFObjectLiteralExpressionProperties + const LFOptional + const LFOptionalIfEmpty + const LFOptionalIfNil + const LFParameters + const LFParenthesis + const LFPreferNewLine + const LFPreserveLines + const LFSingleArrowParameter + const LFSingleElement + const LFSingleLine + const LFSingleLineBlockStatements + const LFSingleLineFunctionBodyStatements + const LFSingleLineTupleTypeElements + const LFSingleLineTypeLiteralMembers + const LFSourceFileStatements + const LFSpaceAfterList + const LFSpaceBetweenBraces + const LFSpaceBetweenSiblings + const LFSquareBrackets + const LFTemplateExpressionSpans + const LFTypeArguments + const LFTypeParameters + const LFUnionTypeConstituents + const LFVariableDeclarationList + type NameGenerator struct + Context *EmitContext + GetTextOfNode func(*ast.Node) string + IsFileLevelUniqueNameInCurrentFile func(string, bool) bool + func (g *NameGenerator) GenerateName(name *ast.MemberName) string + func (g *NameGenerator) MakeFileLevelOptimisticUniqueName(name string) string + func (g *NameGenerator) PopScope(reuseTempVariableScope bool) + func (g *NameGenerator) PushScope(reuseTempVariableScope bool) + type NameOptions struct + AllowComments bool + AllowSourceMaps bool + type NodeFactory struct + func NewNodeFactory(context *EmitContext) *NodeFactory + func (f *NodeFactory) CreateExpressionFromEntityName(node *ast.Node) *ast.Expression + func (f *NodeFactory) CreateForOfBindingStatement(node *ast.Node, boundValue *ast.Node) *ast.Node + func (f *NodeFactory) EnsureUseStrict(statements []*ast.Statement) []*ast.Statement + func (f *NodeFactory) GetDeclarationName(node *ast.Declaration) *ast.IdentifierNode + func (f *NodeFactory) GetDeclarationNameEx(node *ast.Declaration, opts NameOptions) *ast.IdentifierNode + func (f *NodeFactory) GetExportName(node *ast.Declaration) *ast.IdentifierNode + func (f *NodeFactory) GetExportNameEx(node *ast.Declaration, opts AssignedNameOptions) *ast.IdentifierNode + func (f *NodeFactory) GetExternalModuleOrNamespaceExportName(ns *ast.IdentifierNode, node *ast.Declaration, allowComments bool, ...) *ast.Node + func (f *NodeFactory) GetLocalName(node *ast.Declaration) *ast.IdentifierNode + func (f *NodeFactory) GetLocalNameEx(node *ast.Declaration, opts AssignedNameOptions) *ast.IdentifierNode + func (f *NodeFactory) GetNamespaceMemberName(ns *ast.IdentifierNode, name *ast.IdentifierNode, opts NameOptions) *ast.IdentifierNode + func (f *NodeFactory) InlineExpressions(expressions []*ast.Expression) *ast.Expression + func (f *NodeFactory) NewAddDisposableResourceHelper(envBinding *ast.Expression, value *ast.Expression, async bool) *ast.Expression + func (f *NodeFactory) NewArraySliceCall(array *ast.Expression, start int) *ast.Node + func (f *NodeFactory) NewAssignHelper(attributesSegments []*ast.Expression, scriptTarget core.ScriptTarget) *ast.Expression + func (f *NodeFactory) NewAssignmentExpression(left *ast.Expression, right *ast.Expression) *ast.Expression + func (f *NodeFactory) NewAssignmentTargetWrapper(paramName *ast.IdentifierNode, expression *ast.Expression) *ast.Node + func (f *NodeFactory) NewAsyncDelegatorHelper(expression *ast.Expression) *ast.Expression + func (f *NodeFactory) NewAsyncGeneratorHelper(generatorFunc *ast.Expression, hasLexicalThis bool) *ast.Expression + func (f *NodeFactory) NewAsyncValuesHelper(expression *ast.Expression) *ast.Expression + func (f *NodeFactory) NewAwaitHelper(expression *ast.Expression) *ast.Expression + func (f *NodeFactory) NewAwaiterHelper(hasLexicalThis bool, argumentsExpression *ast.Expression, ...) *ast.Expression + func (f *NodeFactory) NewClassPrivateFieldGetHelper(receiver *ast.Expression, state *ast.IdentifierNode, ...) *ast.Expression + func (f *NodeFactory) NewClassPrivateFieldInHelper(state *ast.IdentifierNode, receiver *ast.Expression) *ast.Expression + func (f *NodeFactory) NewClassPrivateFieldSetHelper(receiver *ast.Expression, state *ast.IdentifierNode, value *ast.Expression, ...) *ast.Expression + func (f *NodeFactory) NewCommaExpression(left *ast.Expression, right *ast.Expression) *ast.Expression + func (f *NodeFactory) NewDecorateHelper(decoratorExpressions []*ast.Node, target *ast.Node, memberName *ast.Node, ...) *ast.Expression + func (f *NodeFactory) NewDisposeResourcesHelper(envBinding *ast.Expression) *ast.Expression + func (f *NodeFactory) NewESDecorateClassContextObject(nameExpr *ast.Expression, metadata *ast.IdentifierNode) *ast.Expression + func (f *NodeFactory) NewESDecorateClassElementAccessGetMethod(nameComputed bool, nameExpr *ast.Expression) *ast.Node + func (f *NodeFactory) NewESDecorateClassElementAccessHasMethod(nameComputed bool, nameExpr *ast.Expression) *ast.Node + func (f *NodeFactory) NewESDecorateClassElementAccessObject(nameComputed bool, nameExpr *ast.Expression, hasGet bool, hasSet bool) *ast.Expression + func (f *NodeFactory) NewESDecorateClassElementAccessSetMethod(nameComputed bool, nameExpr *ast.Expression) *ast.Node + func (f *NodeFactory) NewESDecorateClassElementContextObject(kind string, nameComputed bool, nameExpr *ast.Expression, isStatic bool, ...) *ast.Expression + func (f *NodeFactory) NewESDecorateHelper(ctor *ast.Expression, descriptorIn *ast.Expression, decorators *ast.Expression, ...) *ast.Expression + func (f *NodeFactory) NewExportDefault(expression *ast.Expression) *ast.Statement + func (f *NodeFactory) NewExportStarHelper(moduleExpression *ast.Expression, exportsExpression *ast.Expression) *ast.Expression + func (f *NodeFactory) NewExternalModuleExport(name *ast.IdentifierNode) *ast.Statement + func (f *NodeFactory) NewFalseExpression() *ast.Expression + func (f *NodeFactory) NewFunctionBindCall(target *ast.Expression, thisArg *ast.Expression, argumentsList []*ast.Node) *ast.Expression + func (f *NodeFactory) NewFunctionCallCall(target *ast.Expression, thisArg *ast.Expression, argumentsList []*ast.Node) *ast.Node + func (f *NodeFactory) NewGeneratedNameForNode(node *ast.Node) *ast.IdentifierNode + func (f *NodeFactory) NewGeneratedNameForNodeEx(node *ast.Node, options AutoGenerateOptions) *ast.IdentifierNode + func (f *NodeFactory) NewGeneratedPrivateNameForNode(node *ast.Node) *ast.PrivateIdentifierNode + func (f *NodeFactory) NewGeneratedPrivateNameForNodeEx(node *ast.Node, options AutoGenerateOptions) *ast.PrivateIdentifierNode + func (f *NodeFactory) NewGlobalMethodCall(globalObjectName string, methodName string, argumentsList []*ast.Node) *ast.Node + func (f *NodeFactory) NewImmediatelyInvokedArrowFunction(statements []*ast.Statement) *ast.Expression + func (f *NodeFactory) NewImportDefaultHelper(expression *ast.Expression) *ast.Expression + func (f *NodeFactory) NewImportStarHelper(expression *ast.Expression) *ast.Expression + func (f *NodeFactory) NewLogicalANDExpression(left *ast.Expression, right *ast.Expression) *ast.Expression + func (f *NodeFactory) NewLogicalORExpression(left *ast.Expression, right *ast.Expression) *ast.Expression + func (f *NodeFactory) NewLoopVariable() *ast.IdentifierNode + func (f *NodeFactory) NewLoopVariableEx(options AutoGenerateOptions) *ast.IdentifierNode + func (f *NodeFactory) NewMetadataHelper(metadataKey string, metadataValue *ast.Node) *ast.Node + func (f *NodeFactory) NewMethodCall(object *ast.Node, methodName *ast.Node, argumentsList []*ast.Node) *ast.Node + func (f *NodeFactory) NewObjectDefinePropertyCall(target *ast.Expression, name *ast.Expression, descriptor *ast.Expression) *ast.Expression + func (f *NodeFactory) NewParamHelper(expression *ast.Node, parameterOffset int, location core.TextRange) *ast.Expression + func (f *NodeFactory) NewPropKeyHelper(expr *ast.Expression) *ast.Expression + func (f *NodeFactory) NewReflectGetCall(target *ast.Expression, propertyKey *ast.Expression, receiver *ast.Expression) *ast.Expression + func (f *NodeFactory) NewReflectSetCall(target *ast.Expression, propertyKey *ast.Expression, value *ast.Expression, ...) *ast.Expression + func (f *NodeFactory) NewRestHelper(value *ast.Expression, elements []*ast.Node, computedTempVariables []*ast.Node, ...) *ast.Expression + func (f *NodeFactory) NewRewriteRelativeImportExtensionsHelper(firstArgument *ast.Node, preserveJsx bool) *ast.Expression + func (f *NodeFactory) NewRunInitializersHelper(thisArg *ast.Expression, initializers *ast.Expression, value *ast.Expression) *ast.Expression + func (f *NodeFactory) NewSetFunctionNameHelper(fn *ast.Expression, name *ast.Expression, prefix string) *ast.Expression + func (f *NodeFactory) NewStrictEqualityExpression(left *ast.Expression, right *ast.Expression) *ast.Expression + func (f *NodeFactory) NewStrictInequalityExpression(left *ast.Expression, right *ast.Expression) *ast.Expression + func (f *NodeFactory) NewStringLiteralFromNode(textSourceNode *ast.Node) *ast.Node + func (f *NodeFactory) NewTempVariable() *ast.IdentifierNode + func (f *NodeFactory) NewTempVariableEx(options AutoGenerateOptions) *ast.IdentifierNode + func (f *NodeFactory) NewTemplateObjectHelper(cookedArray *ast.Expression, rawArray *ast.Expression) *ast.Expression + func (f *NodeFactory) NewThisExpression() *ast.Expression + func (f *NodeFactory) NewTrueExpression() *ast.Expression + func (f *NodeFactory) NewTypeCheck(value *ast.Node, tag string) *ast.Node + func (f *NodeFactory) NewUniqueName(text string) *ast.IdentifierNode + func (f *NodeFactory) NewUniqueNameEx(text string, options AutoGenerateOptions) *ast.IdentifierNode + func (f *NodeFactory) NewUniquePrivateName(text string) *ast.PrivateIdentifierNode + func (f *NodeFactory) NewUniquePrivateNameEx(text string, options AutoGenerateOptions) *ast.PrivateIdentifierNode + func (f *NodeFactory) NewUnscopedHelperName(name string) *ast.IdentifierNode + func (f *NodeFactory) NewVoidZeroExpression() *ast.Expression + func (f *NodeFactory) RestoreEnclosingLabel(node *ast.Node, outermostLabeledStatement *ast.LabeledStatement) *ast.Node + func (f *NodeFactory) RestoreOuterExpressions(outerExpression *ast.Expression, innerExpression *ast.Expression, ...) *ast.Expression + func (f *NodeFactory) SplitCustomPrologue(source []*ast.Statement) (prologue []*ast.Statement, rest []*ast.Statement) + func (f *NodeFactory) SplitStandardPrologue(source []*ast.Statement) (prologue []*ast.Statement, rest []*ast.Statement) + type PrintHandlers struct + HasGlobalName func(name string) bool + OnAfterEmitNode func(nodeOpt *ast.Node) + OnAfterEmitNodeList func(nodesOpt *ast.NodeList) + OnAfterEmitToken func(nodeOpt *ast.TokenNode) + OnBeforeEmitNode func(nodeOpt *ast.Node) + OnBeforeEmitNodeList func(nodesOpt *ast.NodeList) + OnBeforeEmitToken func(nodeOpt *ast.TokenNode) + type Printer struct + Options PrinterOptions + func NewPrinter(options PrinterOptions, handlers PrintHandlers, emitContext *EmitContext) *Printer + func (p *Printer) Emit(node *ast.Node, sourceFile *ast.SourceFile) string + func (p *Printer) EmitSourceFile(sourceFile *ast.SourceFile) string + func (p *Printer) Write(node *ast.Node, sourceFile *ast.SourceFile, writer EmitTextWriter, ...) + type PrinterOptions struct + InlineSourceMap bool + InlineSources bool + NeverAsciiEscape bool + NewLine core.NewLineKind + NoEmitHelpers bool + OmitBraceSourceMapPositions bool + OnlyPrintJSDocStyle bool + PreserveSourceNewlines bool + RemoveComments bool + SourceMap bool + Target core.ScriptTarget + TerminateUnterminatedLiterals bool + type Priority struct + Value int + type PrivateIdentifierKind string + const PrivateIdentifierKindAccessor + const PrivateIdentifierKindField + const PrivateIdentifierKindMethod + const PrivateIdentifierKindUntransformed + type QuoteChar rune + const QuoteCharBacktick + const QuoteCharDoubleQuote + const QuoteCharSingleQuote + type SourceFileMetaDataProvider interface + GetSourceFileMetaData func(path tspath.Path) *ast.SourceFileMetaData + type SymbolAccessibility int32 + const SymbolAccessibilityAccessible + const SymbolAccessibilityCannotBeNamed + const SymbolAccessibilityNotAccessible + const SymbolAccessibilityNotResolved + type SymbolAccessibilityResult struct + Accessibility SymbolAccessibility + AliasesToMakeVisible []*ast.Node + ErrorModuleName string + ErrorNode *ast.Node + ErrorSymbolName string + type SynthesizedComment struct + HasLeadingNewLine bool + HasTrailingNewLine bool + Kind ast.Kind + Loc core.TextRange + Text string + type TypeReferenceSerializationKind int32 + type WriteKind int + const WriteKindComment + const WriteKindKeyword + const WriteKindLiteral + const WriteKindNone + const WriteKindOperator + const WriteKindParameter + const WriteKindProperty + const WriteKindPunctuation + const WriteKindStringLiteral