Move internal flag around

This commit is contained in:
Ryan Cavanaugh 2018-06-13 11:55:53 -07:00
parent 19ac7653f2
commit 805542a902
2 changed files with 11 additions and 7 deletions

View file

@ -48,10 +48,7 @@ namespace ts {
export interface Push<T> { export interface Push<T> {
push(...values: T[]): void; push(...values: T[]): void;
} }
}
/* @internal */
namespace ts {
/* @internal */ /* @internal */
export type EqualityComparer<T> = (a: T, b: T) => boolean; export type EqualityComparer<T> = (a: T, b: T) => boolean;
@ -63,6 +60,10 @@ namespace ts {
EqualTo = 0, EqualTo = 0,
GreaterThan = 1 GreaterThan = 1
} }
}
/* @internal */
namespace ts {
/** Create a MapLike with good performance. */ /** Create a MapLike with good performance. */
function createDictionaryObject<T>(): MapLike<T> { function createDictionaryObject<T>(): MapLike<T> {

View file

@ -5037,7 +5037,6 @@ namespace ts {
} }
// Simple node tests of the form `node.kind === SyntaxKind.Foo`. // Simple node tests of the form `node.kind === SyntaxKind.Foo`.
/* @internal */
namespace ts { namespace ts {
// Literals // Literals
export function isNumericLiteral(node: Node): node is NumericLiteral { 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 // All node tests in the following list should *not* reference parent pointers so that
// they may be used with transformations. // they may be used with transformations.
/* @internal */
namespace ts { namespace ts {
/* @internal */ /* @internal */
export function isSyntaxList(n: Node): n is SyntaxList { export function isSyntaxList(n: Node): n is SyntaxList {
@ -7201,7 +7199,11 @@ namespace ts {
return root + pathComponents.slice(1).join(directorySeparator); 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 fromComponents = reducePathComponents(getPathComponents(from));
const toComponents = reducePathComponents(getPathComponents(to)); const toComponents = reducePathComponents(getPathComponents(to));
@ -8048,4 +8050,5 @@ namespace ts {
} }
return findBestPatternMatch(patterns, _ => _, candidate); return findBestPatternMatch(patterns, _ => _, candidate);
}} }
}