Skip to content

Commit 5501892

Browse files
committed
Fix the build break of typings installer
1 parent f1ea38d commit 5501892

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/compiler/factory.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,14 +2256,6 @@ namespace ts {
22562256
return range;
22572257
}
22582258

2259-
/**
2260-
* Gets flags that control emit behavior of a node.
2261-
*/
2262-
export function getEmitFlags(node: Node): EmitFlags | undefined {
2263-
const emitNode = node.emitNode;
2264-
return emitNode && emitNode.flags;
2265-
}
2266-
22672259
/**
22682260
* Sets flags that control emit behavior of a node.
22692261
*/

src/compiler/utilities.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,14 @@ namespace ts {
321321
return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(node), node, includeTrivia);
322322
}
323323

324+
/**
325+
* Gets flags that control emit behavior of a node.
326+
*/
327+
export function getEmitFlags(node: Node): EmitFlags | undefined {
328+
const emitNode = node.emitNode;
329+
return emitNode && emitNode.flags;
330+
}
331+
324332
export function getLiteralText(node: LiteralLikeNode, sourceFile: SourceFile) {
325333
// If we don't need to downlevel and we can reach the original source text using
326334
// the node's parent reference, then simply get the text as it was originally written.

0 commit comments

Comments
 (0)