| 112 | } |
| 113 | |
| 114 | type Printer struct { |
| 115 | PrintHandlers |
| 116 | Options PrinterOptions |
| 117 | emitContext *EmitContext |
| 118 | currentSourceFile *ast.SourceFile |
| 119 | uniqueHelperNames map[string]*ast.IdentifierNode |
| 120 | externalHelpersModuleName *ast.IdentifierNode |
| 121 | nextListElementPos int |
| 122 | writer EmitTextWriter |
| 123 | ownWriter EmitTextWriter |
| 124 | writeKind WriteKind |
| 125 | sourceMapsDisabled bool |
| 126 | sourceMapGenerator *sourcemap.Generator |
| 127 | sourceMapSource sourcemap.Source |
| 128 | sourceMapSourceIndex sourcemap.SourceIndex |
| 129 | sourceMapSourceIsJson bool |
| 130 | sourceMapLineCharCache *lineCharacterCache |
| 131 | mostRecentSourceMapSource sourcemap.Source |
| 132 | mostRecentSourceMapSourceIndex sourcemap.SourceIndex |
| 133 | containerPos int |
| 134 | containerEnd int |
| 135 | declarationListContainerEnd int |
| 136 | detachedCommentsInfo core.Stack[detachedCommentsInfo] |
| 137 | commentsDisabled bool |
| 138 | inExtends bool // whether we are emitting the `extends` clause of a ConditionalTypeNode or InferTypeNode |
| 139 | nameGenerator NameGenerator |
| 140 | makeFileLevelOptimisticUniqueName func(string) string |
| 141 | commentStateArena core.Arena[commentState] |
| 142 | sourceMapStateArena core.Arena[sourceMapState] |
| 143 | IdToSymbol map[*ast.IdentifierNode]*ast.Symbol |
| 144 | } |
| 145 | |
| 146 | type detachedCommentsInfo struct { |
| 147 | nodePos int |
nothing calls this directly
no outgoing calls
no test coverage detected