diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 8ca8cb1e29..fe4df9875a 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -48,10 +48,7 @@ namespace ts { export interface Push { push(...values: T[]): void; } -} -/* @internal */ -namespace ts { /* @internal */ export type EqualityComparer = (a: T, b: T) => boolean; @@ -63,6 +60,10 @@ namespace ts { EqualTo = 0, GreaterThan = 1 } +} + +/* @internal */ +namespace ts { /** Create a MapLike with good performance. */ function createDictionaryObject(): MapLike { diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 1f63bade11..93a542a282 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -5037,7 +5037,6 @@ namespace ts { } // Simple node tests of the form `node.kind === SyntaxKind.Foo`. -/* @internal */ namespace ts { // Literals export function isNumericLiteral(node: Node): node is NumericLiteral { @@ -5739,7 +5738,6 @@ namespace ts { // // All node tests in the following list should *not* reference parent pointers so that // they may be used with transformations. -/* @internal */ namespace ts { /* @internal */ export function isSyntaxList(n: Node): n is SyntaxList { @@ -7201,7 +7199,11 @@ namespace ts { return root + pathComponents.slice(1).join(directorySeparator); } - function getPathComponentsRelativeTo(from: string, to: string, stringEqualityComparer: (a: string, b: string) => boolean, getCanonicalFileName: GetCanonicalFileName) { +} + +/* @internal */ +namespace ts { + export function getPathComponentsRelativeTo(from: string, to: string, stringEqualityComparer: (a: string, b: string) => boolean, getCanonicalFileName: GetCanonicalFileName) { const fromComponents = reducePathComponents(getPathComponents(from)); const toComponents = reducePathComponents(getPathComponents(to)); @@ -8048,4 +8050,5 @@ namespace ts { } return findBestPatternMatch(patterns, _ => _, candidate); - }} + } +}