Debian Codegraph @

packages/babel-generator/test/fixtures/sourcemaps/real-world-babel-file2/source-map.json

raw symbols SCIP
1 {
2 "version": 3,
3 "names": [
4 "Buffer",
5 "Loc",
6 "n",
7 "t",
8 "RecordAndTuplePluginOptions",
9 "PipelineOperatorPluginOptions",
10 "Opts",
11 "jsescOptions",
12 "generatorFunctions",
13 "SourceMap",
14 "charCodes",
15 "SCIENTIFIC_NOTATION",
16 "ZERO_DECIMAL_INTEGER",
17 "NON_DECIMAL_LITERAL",
18 "PURE_ANNOTATION_RE",
19 "needsParens",
20 "needsWhitespaceAfter",
21 "needsWhitespaceBefore",
22 "Format",
23 "shouldPrintComment",
24 "comment",
25 "retainLines",
26 "retainFunctionParens",
27 "comments",
28 "auxiliaryCommentBefore",
29 "auxiliaryCommentAfter",
30 "compact",
31 "minified",
32 "concise",
33 "indent",
34 "adjustMultilineComment",
35 "style",
36 "recordAndTupleSyntaxType",
37 "jsescOption",
38 "jsonCompatibleStrings",
39 "topicToken",
40 "decoratorsBeforeExport",
41 "AddNewlinesOptions",
42 "addNewlines",
43 "leading",
44 "node",
45 "Node",
46 "PrintSequenceOptions",
47 "Partial",
48 "statement",
49 "PrintListOptions",
50 "separator",
51 "this",
52 "Printer",
53 "PrintJoinOptions",
54 "iterator",
55 "index",
56 "constructor",
57 "format",
58 "map",
59 "_buf",
60 "_indentChar",
61 "charCodeAt",
62 "_indentRepeat",
63 "length",
64 "inForStatementInitCounter",
65 "_printStack",
66 "Array",
67 "_indent",
68 "_insideAux",
69 "_parenPushNewlineState",
70 "printed",
71 "_noLineTerminator",
72 "_printAuxAfterOnNextUserNode",
73 "_printedComments",
74 "Set",
75 "Comment",
76 "_endsWithInteger",
77 "_endsWithWord",
78 "generate",
79 "ast",
80 "print",
81 "_maybeAddAuxComment",
82 "get",
83 "dedent",
84 "semicolon",
85 "force",
86 "_appendChar",
87 "_queue",
88 "rightBrace",
89 "removeLastSemicolon",
90 "token",
91 "space",
92 "_space",
93 "hasContent",
94 "lastCp",
95 "getLastChar",
96 "lineFeed",
97 "word",
98 "str",
99 "slash",
100 "endsWith",
101 "_append",
102 "number",
103 "Number",
104 "isInteger",
105 "test",
106 "dot",
107 "maybeNewline",
108 "lastChar",
109 "strFirst",
110 "exclamationMark",
111 "plusSign",
112 "dash",
113 "tokenChar",
114 "char",
115 "newline",
116 "i",
117 "charBeforeNewline",
118 "endsWithCharAndNewline",
119 "leftCurlyBrace",
120 "colon",
121 "j",
122 "_newline",
123 "removeTrailingNewline",
124 "exactSource",
125 "loc",
126 "cb",
127 "_catchUp",
128 "source",
129 "prop",
130 "sourceWithOffset",
131 "lineOffset",
132 "columnOffset",
133 "withSource",
134 "_maybeAddParen",
135 "_maybeIndent",
136 "append",
137 "_maybeAddParenChar",
138 "appendChar",
139 "queue",
140 "firstChar",
141 "queueIndentation",
142 "_getIndent",
143 "parenPushNewlineState",
144 "len",
145 "cha",
146 "chaPost",
147 "asterisk",
148 "slice",
149 "pos",
150 "line",
151 "count",
152 "getCurrentLine",
153 "printTerminatorless",
154 "parent",
155 "isLabel",
156 "terminatorState",
157 "noLineTerminator",
158 "nodeType",
159 "type",
160 "oldConcise",
161 "_compact",
162 "printMethod",
163 "Exclude",
164 "DeprecatedAliases",
165 "undefined",
166 "ReferenceError",
167 "JSON",
168 "stringify",
169 "name",
170 "push",
171 "oldInAux",
172 "shouldPrintParens",
173 "extra",
174 "parenthesized",
175 "_printLeadingComments",
176 "bind",
177 "_printTrailingComments",
178 "pop",
179 "enteredPositionlessNode",
180 "_printAuxBeforeComment",
181 "_printAuxAfterComment",
182 "_printComment",
183 "value",
184 "getPossibleRaw",
185 "StringLiteral",
186 "NumericLiteral",
187 "BigIntLiteral",
188 "DecimalLiteral",
189 "DirectiveLiteral",
190 "JSXText",
191 "raw",
192 "rawValue",
193 "printJoin",
194 "nodes",
195 "opts",
196 "newlineOpts",
197 "_printNewline",
198 "call",
199 "printAndIndentOnComments",
200 "leadingComments",
201 "printBlock",
202 "Extract",
203 "body",
204 "Statement",
205 "_printComments",
206 "_getComments",
207 "printInnerComments",
208 "innerComments",
209 "printSequence",
210 "printList",
211 "items",
212 "commaSeparator",
213 "lines",
214 "needs",
215 "Math",
216 "min",
217 "trailingComments",
218 "skipNewLines",
219 "ignore",
220 "has",
221 "add",
222 "isBlockComment",
223 "printNewLines",
224 "lastCharCode",
225 "leftSquareBracket",
226 "val",
227 "offset",
228 "start",
229 "column",
230 "newlineRegex",
231 "RegExp",
232 "replace",
233 "indentSize",
234 "max",
235 "getCurrentColumn",
236 "repeat",
237 "inlinePureAnnotation",
238 "printAssertions",
239 "assertions",
240 "ImportAttribute",
241 "Object",
242 "assign",
243 "prototype",
244 "process",
245 "env",
246 "BABEL_8_BREAKING",
247 "Noop",
248 "GeneratorFunctions"
249 ],
250 "sources": [
251 "fixtures/sourcemaps/real-world-babel-file2/input.ts"
252 ],
253 "sourcesContent": [
254 "// From packages\\babel-generator\\src\\printer.ts\n\nimport Buffer from \"./buffer\";\nimport type { Loc } from \"./buffer\";\nimport * as n from \"./node\";\nimport type * as t from \"@babel/types\";\nimport type {\n RecordAndTuplePluginOptions,\n PipelineOperatorPluginOptions,\n} from \"@babel/parser\";\nimport type { Opts as jsescOptions } from \"jsesc\";\n\nimport * as generatorFunctions from \"./generators\";\nimport type SourceMap from \"./source-map\";\nimport * as charCodes from \"charcodes\";\n\nconst SCIENTIFIC_NOTATION = /e/i;\nconst ZERO_DECIMAL_INTEGER = /\\.0+$/;\nconst NON_DECIMAL_LITERAL = /^0[box]/;\nconst PURE_ANNOTATION_RE = /^\\s*[@#]__PURE__\\s*$/;\n\nconst { needsParens, needsWhitespaceAfter, needsWhitespaceBefore } = n;\n\nexport type Format = {\n shouldPrintComment: (comment: string) => boolean;\n retainLines: boolean;\n retainFunctionParens: boolean;\n comments: boolean;\n auxiliaryCommentBefore: string;\n auxiliaryCommentAfter: string;\n compact: boolean | \"auto\";\n minified: boolean;\n concise: boolean;\n indent: {\n adjustMultilineComment: boolean;\n style: string;\n };\n recordAndTupleSyntaxType: RecordAndTuplePluginOptions[\"syntaxType\"];\n jsescOption: jsescOptions;\n jsonCompatibleStrings?: boolean;\n /**\n * For use with the Hack-style pipe operator.\n * Changes what token is used for pipe bodies’ topic references.\n */\n topicToken?: PipelineOperatorPluginOptions[\"topicToken\"];\n /**\n * @deprecated Removed in Babel 8\n */\n decoratorsBeforeExport?: boolean;\n};\n\ninterface AddNewlinesOptions {\n addNewlines(leading: boolean, node: t.Node): number;\n}\n\ninterface PrintSequenceOptions extends Partial<AddNewlinesOptions> {\n statement?: boolean;\n indent?: boolean;\n}\n\ninterface PrintListOptions {\n separator?: (this: Printer) => void;\n statement?: boolean;\n indent?: boolean;\n}\n\ntype PrintJoinOptions = PrintListOptions &\n PrintSequenceOptions & {\n iterator?: (node: t.Node, index: number) => void;\n };\nclass Printer {\n constructor(format: Format, map: SourceMap) {\n this.format = format;\n this._buf = new Buffer(map);\n\n this._indentChar = format.indent.style.charCodeAt(0);\n this._indentRepeat = format.indent.style.length;\n }\n\n declare format: Format;\n inForStatementInitCounter: number = 0;\n\n declare _buf: Buffer;\n _printStack: Array<t.Node> = [];\n _indent: number = 0;\n _indentChar: number = 0;\n _indentRepeat: number = 0;\n _insideAux: boolean = false;\n _parenPushNewlineState: { printed: boolean } | null = null;\n _noLineTerminator: boolean = false;\n _printAuxAfterOnNextUserNode: boolean = false;\n _printedComments = new Set<t.Comment>();\n _endsWithInteger = false;\n _endsWithWord = false;\n\n generate(ast: t.Node) {\n this.print(ast);\n this._maybeAddAuxComment();\n\n return this._buf.get();\n }\n\n /**\n * Increment indent size.\n */\n\n indent(): void {\n if (this.format.compact || this.format.concise) return;\n\n this._indent++;\n }\n\n /**\n * Decrement indent size.\n */\n\n dedent(): void {\n if (this.format.compact || this.format.concise) return;\n\n this._indent--;\n }\n\n /**\n * Add a semicolon to the buffer.\n */\n\n semicolon(force: boolean = false): void {\n this._maybeAddAuxComment();\n if (force) {\n this._appendChar(charCodes.semicolon);\n } else {\n this._queue(charCodes.semicolon);\n }\n }\n\n /**\n * Add a right brace to the buffer.\n */\n\n rightBrace(): void {\n if (this.format.minified) {\n this._buf.removeLastSemicolon();\n }\n this.token(\"}\");\n }\n\n /**\n * Add a space to the buffer unless it is compact.\n */\n\n space(force: boolean = false): void {\n if (this.format.compact) return;\n\n if (force) {\n this._space();\n } else if (this._buf.hasContent()) {\n const lastCp = this.getLastChar();\n if (lastCp !== charCodes.space && lastCp !== charCodes.lineFeed) {\n this._space();\n }\n }\n }\n\n /**\n * Writes a token that can't be safely parsed without taking whitespace into account.\n */\n\n word(str: string): void {\n // prevent concatenating words and creating // comment out of division and regex\n if (\n this._endsWithWord ||\n (str.charCodeAt(0) === charCodes.slash && this.endsWith(charCodes.slash))\n ) {\n this._space();\n }\n\n this._maybeAddAuxComment();\n this._append(str, false);\n\n this._endsWithWord = true;\n }\n\n /**\n * Writes a number token so that we can validate if it is an integer.\n */\n\n number(str: string): void {\n this.word(str);\n\n // Integer tokens need special handling because they cannot have '.'s inserted\n // immediately after them.\n this._endsWithInteger =\n Number.isInteger(+str) &&\n !NON_DECIMAL_LITERAL.test(str) &&\n !SCIENTIFIC_NOTATION.test(str) &&\n !ZERO_DECIMAL_INTEGER.test(str) &&\n str.charCodeAt(str.length - 1) !== charCodes.dot;\n }\n\n /**\n * Writes a simple token.\n */\n\n token(str: string, maybeNewline = false): void {\n // space is mandatory to avoid outputting <!--\n // http://javascript.spec.whatwg.org/#comment-syntax\n const lastChar = this.getLastChar();\n const strFirst = str.charCodeAt(0);\n if (\n (lastChar === charCodes.exclamationMark && str === \"--\") ||\n // Need spaces for operators of the same kind to avoid: `a+++b`\n (strFirst === charCodes.plusSign && lastChar === charCodes.plusSign) ||\n (strFirst === charCodes.dash && lastChar === charCodes.dash) ||\n // Needs spaces to avoid changing '34' to '34.', which would still be a valid number.\n (strFirst === charCodes.dot && this._endsWithInteger)\n ) {\n this._space();\n }\n\n this._maybeAddAuxComment();\n this._append(str, maybeNewline);\n }\n\n tokenChar(char: number): void {\n // space is mandatory to avoid outputting <!--\n // http://javascript.spec.whatwg.org/#comment-syntax\n const lastChar = this.getLastChar();\n if (\n // Need spaces for operators of the same kind to avoid: `a+++b`\n (char === charCodes.plusSign && lastChar === charCodes.plusSign) ||\n (char === charCodes.dash && lastChar === charCodes.dash) ||\n // Needs spaces to avoid changing '34' to '34.', which would still be a valid number.\n (char === charCodes.dot && this._endsWithInteger)\n ) {\n this._space();\n }\n\n this._maybeAddAuxComment();\n this._appendChar(char);\n }\n\n /**\n * Add a newline (or many newlines), maintaining formatting.\n */\n\n newline(i: number = 1): void {\n if (this.format.retainLines || this.format.compact) return;\n\n if (this.format.concise) {\n this.space();\n return;\n }\n\n const charBeforeNewline = this.endsWithCharAndNewline();\n // never allow more than two lines\n if (charBeforeNewline === charCodes.lineFeed) return;\n\n if (\n charBeforeNewline === charCodes.leftCurlyBrace ||\n charBeforeNewline === charCodes.colon\n ) {\n i--;\n }\n if (i <= 0) return;\n\n for (let j = 0; j < i; j++) {\n this._newline();\n }\n }\n\n endsWith(char: number): boolean {\n return this.getLastChar() === char;\n }\n\n getLastChar(): number {\n return this._buf.getLastChar();\n }\n\n endsWithCharAndNewline(): number {\n return this._buf.endsWithCharAndNewline();\n }\n\n removeTrailingNewline(): void {\n this._buf.removeTrailingNewline();\n }\n\n exactSource(loc: Loc | undefined, cb: () => void) {\n this._catchUp(\"start\", loc);\n\n this._buf.exactSource(loc, cb);\n }\n\n source(prop: \"start\" | \"end\", loc: Loc | undefined): void {\n this._catchUp(prop, loc);\n\n this._buf.source(prop, loc);\n }\n\n sourceWithOffset(\n prop: \"start\" | \"end\",\n loc: Loc | undefined,\n lineOffset: number,\n columnOffset: number,\n ): void {\n this._catchUp(prop, loc);\n\n this._buf.sourceWithOffset(prop, loc, lineOffset, columnOffset);\n }\n\n withSource(\n prop: \"start\" | \"end\",\n loc: Loc | undefined,\n cb: () => void,\n ): void {\n this._catchUp(prop, loc);\n\n this._buf.withSource(prop, loc, cb);\n }\n\n _space(): void {\n this._queue(charCodes.space);\n }\n\n _newline(): void {\n this._queue(charCodes.lineFeed);\n }\n\n _append(str: string, maybeNewline: boolean): void {\n this._maybeAddParen(str);\n this._maybeIndent(str.charCodeAt(0));\n\n this._buf.append(str, maybeNewline);\n\n this._endsWithWord = false;\n this._endsWithInteger = false;\n }\n\n _appendChar(char: number): void {\n this._maybeAddParenChar(char);\n this._maybeIndent(char);\n\n this._buf.appendChar(char);\n\n this._endsWithWord = false;\n this._endsWithInteger = false;\n }\n\n _queue(char: number) {\n this._maybeAddParenChar(char);\n this._maybeIndent(char);\n\n this._buf.queue(char);\n\n this._endsWithWord = false;\n this._endsWithInteger = false;\n }\n\n _maybeIndent(firstChar: number): void {\n // we've got a newline before us so prepend on the indentation\n if (\n this._indent &&\n firstChar !== charCodes.lineFeed &&\n this.endsWith(charCodes.lineFeed)\n ) {\n this._buf.queueIndentation(this._indentChar, this._getIndent());\n }\n }\n\n _maybeAddParenChar(char: number): void {\n // see startTerminatorless() instance method\n const parenPushNewlineState = this._parenPushNewlineState;\n if (!parenPushNewlineState) return;\n\n // This function does two things:\n // - If needed, prints a parenthesis\n // - If the currently printed string removes the need for the paren,\n // it resets the _parenPushNewlineState field.\n // Almost everything removes the need for a paren, except for\n // comments and whitespaces.\n\n if (char === charCodes.space) {\n // Whitespaces only, the parentheses might still be needed.\n return;\n }\n\n // Check for newline or comment.\n if (char !== charCodes.lineFeed) {\n this._parenPushNewlineState = null;\n return;\n }\n\n this.token(\"(\");\n this.indent();\n parenPushNewlineState.printed = true;\n }\n\n _maybeAddParen(str: string): void {\n // see startTerminatorless() instance method\n const parenPushNewlineState = this._parenPushNewlineState;\n if (!parenPushNewlineState) return;\n\n // This function does two things:\n // - If needed, prints a parenthesis\n // - If the currently printed string removes the need for the paren,\n // it resets the _parenPushNewlineState field.\n // Almost everything removes the need for a paren, except for\n // comments and whitespaces.\n\n const len = str.length;\n\n let i;\n for (i = 0; i < len && str.charCodeAt(i) === charCodes.space; i++) continue;\n if (i === len) {\n // Whitespaces only, the parentheses might still be needed.\n return;\n }\n\n // Check for newline or comment.\n const cha = str.charCodeAt(i);\n if (cha !== charCodes.lineFeed) {\n if (\n // This is not a comment (it doesn't start with /)\n cha !== charCodes.slash ||\n // This is not a comment (it's a / operator)\n i + 1 === len\n ) {\n // After a normal token, the parentheses aren't needed anymore\n this._parenPushNewlineState = null;\n return;\n }\n\n const chaPost = str.charCodeAt(i + 1);\n\n if (chaPost === charCodes.asterisk) {\n // This is a block comment\n\n if (PURE_ANNOTATION_RE.test(str.slice(i + 2, len - 2))) {\n // We avoid printing newlines after #__PURE__ comments (we treat\n // then as unary operators), but we must keep the old\n // parenPushNewlineState because, if a newline was forbidden, it is\n // still forbidden after the comment.\n return;\n }\n\n // NOTE: code flow continues from here to after these if/elses\n } else if (chaPost !== charCodes.slash) {\n // This is neither a block comment, nor a line comment.\n // After a normal token, the parentheses aren't needed anymore\n this._parenPushNewlineState = null;\n return;\n }\n }\n\n this.token(\"(\");\n this.indent();\n parenPushNewlineState.printed = true;\n }\n\n _catchUp(prop: \"start\" | \"end\", loc?: Loc) {\n if (!this.format.retainLines) return;\n\n // catch up to this nodes newline if we're behind\n const pos = loc ? loc[prop] : null;\n if (pos?.line != null) {\n const count = pos.line - this._buf.getCurrentLine();\n\n for (let i = 0; i < count; i++) {\n this._newline();\n }\n }\n }\n\n /**\n * Get the current indent.\n */\n\n _getIndent(): number {\n return this._indentRepeat * this._indent;\n }\n\n printTerminatorless(node: t.Node, parent: t.Node, isLabel: boolean) {\n /**\n * Set some state that will be modified if a newline has been inserted before any\n * non-space characters.\n *\n * This is to prevent breaking semantics for terminatorless separator nodes. eg:\n *\n * return foo;\n *\n * returns `foo`. But if we do:\n *\n * return\n * foo;\n *\n * `undefined` will be returned and not `foo` due to the terminator.\n */\n if (isLabel) {\n this._noLineTerminator = true;\n this.print(node, parent);\n this._noLineTerminator = false;\n } else {\n const terminatorState = {\n printed: false,\n };\n this._parenPushNewlineState = terminatorState;\n this.print(node, parent);\n /**\n * Print an ending parentheses if a starting one has been printed.\n */\n if (terminatorState.printed) {\n this.dedent();\n this.newline();\n this.token(\")\");\n }\n }\n }\n\n print(node: t.Node | null, parent?: t.Node, noLineTerminator?: boolean) {\n if (!node) return;\n\n const nodeType = node.type;\n const format = this.format;\n\n const oldConcise = format.concise;\n if (\n // @ts-expect-error document _compact AST properties\n node._compact\n ) {\n format.concise = true;\n }\n\n const printMethod =\n this[\n nodeType as Exclude<\n t.Node[\"type\"],\n // removed\n | \"Noop\"\n // renamed\n | t.DeprecatedAliases[\"type\"]\n >\n ];\n if (printMethod === undefined) {\n throw new ReferenceError(\n `unknown node of type ${JSON.stringify(\n nodeType,\n )} with constructor ${JSON.stringify(node.constructor.name)}`,\n );\n }\n\n this._printStack.push(node);\n\n const oldInAux = this._insideAux;\n this._insideAux = node.loc == undefined;\n this._maybeAddAuxComment(this._insideAux && !oldInAux);\n\n let shouldPrintParens: boolean;\n if (\n format.retainFunctionParens &&\n nodeType === \"FunctionExpression\" &&\n node.extra &&\n node.extra.parenthesized\n ) {\n shouldPrintParens = true;\n } else {\n shouldPrintParens = needsParens(node, parent, this._printStack);\n }\n if (shouldPrintParens) this.token(\"(\");\n\n this._printLeadingComments(node);\n\n const loc = nodeType === \"Program\" || nodeType === \"File\" ? null : node.loc;\n\n this.exactSource(loc, printMethod.bind(this, node, parent));\n\n if (noLineTerminator && !this._noLineTerminator) {\n this._noLineTerminator = true;\n this._printTrailingComments(node);\n this._noLineTerminator = false;\n } else {\n this._printTrailingComments(node);\n }\n\n if (shouldPrintParens) this.token(\")\");\n\n // end\n this._printStack.pop();\n\n format.concise = oldConcise;\n this._insideAux = oldInAux;\n }\n\n _maybeAddAuxComment(enteredPositionlessNode?: boolean) {\n if (enteredPositionlessNode) this._printAuxBeforeComment();\n if (!this._insideAux) this._printAuxAfterComment();\n }\n\n _printAuxBeforeComment() {\n if (this._printAuxAfterOnNextUserNode) return;\n this._printAuxAfterOnNextUserNode = true;\n\n const comment = this.format.auxiliaryCommentBefore;\n if (comment) {\n this._printComment({\n type: \"CommentBlock\",\n value: comment,\n });\n }\n }\n\n _printAuxAfterComment() {\n if (!this._printAuxAfterOnNextUserNode) return;\n this._printAuxAfterOnNextUserNode = false;\n\n const comment = this.format.auxiliaryCommentAfter;\n if (comment) {\n this._printComment({\n type: \"CommentBlock\",\n value: comment,\n });\n }\n }\n\n getPossibleRaw(\n node:\n | t.StringLiteral\n | t.NumericLiteral\n | t.BigIntLiteral\n | t.DecimalLiteral\n | t.DirectiveLiteral\n | t.JSXText,\n ): string | undefined {\n const extra = node.extra;\n if (\n extra &&\n extra.raw != null &&\n extra.rawValue != null &&\n node.value === extra.rawValue\n ) {\n // @ts-expect-error: The extra.raw of these AST node types must be a string\n return extra.raw;\n }\n }\n\n printJoin(\n nodes: Array<t.Node> | undefined | null,\n parent: t.Node,\n opts: PrintJoinOptions = {},\n ) {\n if (!nodes?.length) return;\n\n if (opts.indent) this.indent();\n\n const newlineOpts: AddNewlinesOptions = {\n addNewlines: opts.addNewlines,\n };\n\n const len = nodes.length;\n for (let i = 0; i < len; i++) {\n const node = nodes[i];\n if (!node) continue;\n\n if (opts.statement) this._printNewline(true, node, parent, newlineOpts);\n\n this.print(node, parent);\n\n if (opts.iterator) {\n opts.iterator(node, i);\n }\n\n if (opts.separator && i < len - 1) {\n opts.separator.call(this);\n }\n\n if (opts.statement) this._printNewline(false, node, parent, newlineOpts);\n }\n\n if (opts.indent) this.dedent();\n }\n\n printAndIndentOnComments(node: t.Node, parent: t.Node) {\n const indent = node.leadingComments && node.leadingComments.length > 0;\n if (indent) this.indent();\n this.print(node, parent);\n if (indent) this.dedent();\n }\n\n printBlock(parent: Extract<t.Node, { body: t.Statement }>) {\n const node = parent.body;\n\n if (node.type !== \"EmptyStatement\") {\n this.space();\n }\n\n this.print(node, parent);\n }\n\n _printTrailingComments(node: t.Node) {\n this._printComments(this._getComments(false, node));\n }\n\n _printLeadingComments(node: t.Node) {\n this._printComments(\n this._getComments(true, node),\n // Don't add leading/trailing new lines to #__PURE__ annotations\n true,\n );\n }\n\n printInnerComments(node: t.Node, indent = true) {\n if (!node.innerComments?.length) return;\n if (indent) this.indent();\n this._printComments(node.innerComments);\n if (indent) this.dedent();\n }\n\n printSequence(\n nodes: t.Node[],\n parent: t.Node,\n opts: PrintSequenceOptions = {},\n ) {\n opts.statement = true;\n return this.printJoin(nodes, parent, opts);\n }\n\n printList(items: t.Node[], parent: t.Node, opts: PrintListOptions = {}) {\n if (opts.separator == null) {\n opts.separator = commaSeparator;\n }\n\n return this.printJoin(items, parent, opts);\n }\n\n _printNewline(\n leading: boolean,\n node: t.Node,\n parent: t.Node,\n opts: AddNewlinesOptions,\n ) {\n // Fast path since 'this.newline' does nothing when not tracking lines.\n if (this.format.retainLines || this.format.compact) return;\n\n // Fast path for concise since 'this.newline' just inserts a space when\n // concise formatting is in use.\n if (this.format.concise) {\n this.space();\n return;\n }\n\n let lines = 0;\n // don't add newlines at the beginning of the file\n if (this._buf.hasContent()) {\n if (!leading) lines++; // always include at least a single line after\n if (opts.addNewlines) lines += opts.addNewlines(leading, node) || 0;\n\n const needs = leading ? needsWhitespaceBefore : needsWhitespaceAfter;\n if (needs(node, parent)) lines++;\n }\n\n this.newline(Math.min(2, lines));\n }\n\n _getComments(leading: boolean, node: t.Node) {\n // Note, we use a boolean flag here instead of passing in the attribute name as it is faster\n // because this is called extremely frequently.\n return (\n (node && (leading ? node.leadingComments : node.trailingComments)) || null\n );\n }\n\n _printComment(comment: t.Comment, skipNewLines?: boolean) {\n // Some plugins (such as flow-strip-types) use this to mark comments as removed using the AST-root 'comments' property,\n // where they can't manually mutate the AST node comment lists.\n if (comment.ignore) return;\n\n if (this._printedComments.has(comment)) return;\n\n if (!this.format.shouldPrintComment(comment.value)) return;\n\n this._printedComments.add(comment);\n\n const isBlockComment = comment.type === \"CommentBlock\";\n\n // Add a newline before and after a block comment, unless explicitly\n // disallowed\n const printNewLines =\n isBlockComment && !skipNewLines && !this._noLineTerminator;\n\n if (printNewLines && this._buf.hasContent()) this.newline(1);\n\n const lastCharCode = this.getLastChar();\n if (\n lastCharCode !== charCodes.leftSquareBracket &&\n lastCharCode !== charCodes.leftCurlyBrace\n ) {\n this.space();\n }\n\n let val;\n let maybeNewline = false;\n if (isBlockComment) {\n val = `/*${comment.value}*/`;\n if (this.format.indent.adjustMultilineComment) {\n const offset = comment.loc?.start.column;\n if (offset) {\n const newlineRegex = new RegExp(\"\\\\n\\\\s{1,\" + offset + \"}\", \"g\");\n val = val.replace(newlineRegex, \"\\n\");\n }\n\n const indentSize = Math.max(\n this._getIndent(),\n this.format.retainLines ? 0 : this._buf.getCurrentColumn(),\n );\n val = val.replace(/\\n(?!$)/g, `\\n${\" \".repeat(indentSize)}`);\n\n maybeNewline = true;\n }\n } else if (!this._noLineTerminator) {\n val = `//${comment.value}\\n`;\n maybeNewline = true;\n } else {\n val = `/*${comment.value}*/`;\n }\n\n // Avoid creating //* comments\n if (this.endsWith(charCodes.slash)) this._space();\n\n this.withSource(\n \"start\",\n comment.loc,\n this._append.bind(this, val, maybeNewline),\n );\n\n if (printNewLines) this.newline(1);\n }\n\n _printComments(\n comments?: readonly t.Comment[],\n inlinePureAnnotation?: boolean,\n ) {\n if (!comments?.length) return;\n\n if (\n inlinePureAnnotation &&\n comments.length === 1 &&\n PURE_ANNOTATION_RE.test(comments[0].value)\n ) {\n this._printComment(\n comments[0],\n // Keep newlines if the comment marks a standalone call\n this._buf.hasContent() && !this.endsWith(charCodes.lineFeed),\n );\n } else {\n for (const comment of comments) {\n this._printComment(comment);\n }\n }\n }\n // todo(flow->ts): was Node\n printAssertions(node: Extract<t.Node, { assertions?: t.ImportAttribute[] }>) {\n if (node.assertions?.length) {\n this.space();\n this.word(\"assert\");\n this.space();\n this.token(\"{\");\n this.space();\n this.printList(node.assertions, node);\n this.space();\n this.token(\"}\");\n }\n }\n}\n\n// Expose the node type functions and helpers on the prototype for easy usage.\nObject.assign(Printer.prototype, generatorFunctions);\n\nif (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 has Noop print method\n Printer.prototype.Noop = function Noop(this: Printer) {};\n}\n\ntype GeneratorFunctions = typeof generatorFunctions;\ninterface Printer extends GeneratorFunctions {}\nexport default Printer;\n\nfunction commaSeparator(this: Printer) {\n this.token(\",\");\n this.space();\n}"
255 ],
256 "mappings": "AAAA;;AAEA,OAAOA,MAAM,MAAM,UAAU;AAC7B,cAAcC,GAAG,QAAQ,UAAU;AACnC,OAAO,KAAKC,CAAC,MAAM,QAAQ;AAC3B,YAAY,KAAKC,CAAC,MAAM,cAAc;AACtC,cACEC,2BAA2B,EAC3BC,6BAA6B,QACxB,eAAe;AACtB,cAAcC,IAAI,IAAIC,YAAY,QAAQ,OAAO;AAEjD,OAAO,KAAKC,kBAAkB,MAAM,cAAc;AAClD,YAAYC,SAAS,MAAM,cAAc;AACzC,OAAO,KAAKC,SAAS,MAAM,WAAW;AAEtC,MAAMC,mBAAmB,GAAG,IAAI;AAChC,MAAMC,oBAAoB,GAAG,OAAO;AACpC,MAAMC,mBAAmB,GAAG,SAAS;AACrC,MAAMC,kBAAkB,GAAG,sBAAsB;AAEjD,MAAM;EAAEC,WAAW;EAAEC,oBAAoB;EAAEC;AAAsB,CAAC,GAAGf,CAAC;AAEtE,OAAO,KAAKgB,MAAM,GAAG;EACnBC,kBAAkB,EAAE,CAACC,OAAO,EAAE,MAAM,KAAK,OAAO;EAChDC,WAAW,EAAE,OAAO;EACpBC,oBAAoB,EAAE,OAAO;EAC7BC,QAAQ,EAAE,OAAO;EACjBC,sBAAsB,EAAE,MAAM;EAC9BC,qBAAqB,EAAE,MAAM;EAC7BC,OAAO,EAAE,OAAO,GAAG,MAAM;EACzBC,QAAQ,EAAE,OAAO;EACjBC,OAAO,EAAE,OAAO;EAChBC,MAAM,EAAE;IACNC,sBAAsB,EAAE,OAAO;IAC/BC,KAAK,EAAE,MAAM;EACf,CAAC;EAC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