@@ -1052,7 +1052,6 @@ export function insertStatementsAfterCustomPrologue<T extends Statement>(to: T[]
1052
1052
return insertStatementsAfterPrologue ( to , from , isAnyPrologueDirective ) ;
1053
1053
}
1054
1054
1055
-
1056
1055
/** @internal */
1057
1056
export function insertStatementAfterCustomPrologue < T extends Statement > ( to : T [ ] , statement : T | undefined ) : T [ ] {
1058
1057
return insertStatementAfterPrologue ( to , statement , isAnyPrologueDirective ) ;
@@ -2509,7 +2508,6 @@ export function isPartOfTypeNode(node: Node): boolean {
2509
2508
return false ;
2510
2509
}
2511
2510
2512
-
2513
2511
// Warning: This has the same semantics as the forEach family of functions,
2514
2512
// in that traversal terminates in the event that 'visitor' supplies a truthy value.
2515
2513
/** @internal */
@@ -2710,7 +2708,6 @@ export function isIdentifierTypePredicate(predicate: TypePredicate): predicate i
2710
2708
return predicate && predicate . kind === TypePredicateKind . Identifier ;
2711
2709
}
2712
2710
2713
-
2714
2711
/** @internal */
2715
2712
export function forEachPropertyAssignment < T > ( objectLiteral : ObjectLiteralExpression | undefined , key : string , callback : ( property : PropertyAssignment ) => T | undefined , key2 ?: string ) {
2716
2713
return forEach ( objectLiteral ?. properties , property => {
@@ -3022,7 +3019,6 @@ export function getImmediatelyInvokedFunctionExpression(func: Node): CallExpress
3022
3019
}
3023
3020
}
3024
3021
3025
-
3026
3022
/**
3027
3023
* Determines whether a node is a property or element access expression for `super`.
3028
3024
*
@@ -3419,7 +3415,6 @@ export function isSourceFileJS(file: SourceFile): boolean {
3419
3415
return isInJSFile ( file ) ;
3420
3416
}
3421
3417
3422
-
3423
3418
/** @internal */
3424
3419
export function isInJSFile ( node : Node | undefined ) : boolean {
3425
3420
return ! ! node && ! ! ( node . flags & NodeFlags . JavaScriptFile ) ;
@@ -4418,7 +4413,6 @@ export function getTypeParameterFromJsDoc(node: TypeParameterDeclaration & { par
4418
4413
return typeParameters && find ( typeParameters , p => p . name . escapedText === name ) ;
4419
4414
}
4420
4415
4421
-
4422
4416
/** @internal */
4423
4417
export const enum AssignmentKind {
4424
4418
None ,
@@ -4884,14 +4878,12 @@ export function isNonContextualKeyword(token: SyntaxKind): boolean {
4884
4878
return isKeyword ( token ) && ! isContextualKeyword ( token ) ;
4885
4879
}
4886
4880
4887
-
4888
4881
/** @internal */
4889
4882
export function isStringANonContextualKeyword ( name : string ) {
4890
4883
const token = stringToToken ( name ) ;
4891
4884
return token !== undefined && isNonContextualKeyword ( token ) ;
4892
4885
}
4893
4886
4894
-
4895
4887
/** @internal */
4896
4888
export function isIdentifierANonContextualKeyword ( node : Identifier ) : boolean {
4897
4889
const originalKeywordKind = identifierToKeywordKind ( node ) ;
@@ -5043,7 +5035,6 @@ export function getEscapedTextOfIdentifierOrLiteral(node: PropertyNameLiteral):
5043
5035
return isMemberName ( node ) ? node . escapedText : isJsxNamespacedName ( node ) ? getEscapedTextOfJsxNamespacedName ( node ) : escapeLeadingUnderscores ( node . text ) ;
5044
5036
}
5045
5037
5046
-
5047
5038
/** @internal */
5048
5039
export function getSymbolNameForPrivateIdentifier ( containingClassSymbol : Symbol , description : __String ) : __String {
5049
5040
return `__#${ getSymbolId ( containingClassSymbol ) } @${ description } ` as __String ;
@@ -5059,7 +5050,6 @@ export function isPrivateIdentifierSymbol(symbol: Symbol): boolean {
5059
5050
return startsWith ( symbol . escapedName as string , "__#" ) ;
5060
5051
}
5061
5052
5062
-
5063
5053
/**
5064
5054
* Indicates whether a property name is the special `__proto__` property.
5065
5055
* Per the ECMA-262 spec, this only matters for property assignments whose name is
@@ -5234,7 +5224,6 @@ export function nodeIsSynthesized(range: TextRange): boolean {
5234
5224
|| positionIsSynthesized ( range . end ) ;
5235
5225
}
5236
5226
5237
-
5238
5227
/** @internal */
5239
5228
export const enum Associativity {
5240
5229
Left ,
@@ -7480,7 +7469,6 @@ export function moveRangePastModifiers(node: Node): TextRange {
7480
7469
: moveRangePastDecorators ( node ) ;
7481
7470
}
7482
7471
7483
-
7484
7472
/**
7485
7473
* Creates a new TextRange for a token at the provides start position.
7486
7474
*
@@ -7528,7 +7516,6 @@ export function getLinesBetweenRangeEndAndRangeStart(range1: TextRange, range2:
7528
7516
return getLinesBetweenPositions ( sourceFile , range1 . end , range2Start ) ;
7529
7517
}
7530
7518
7531
-
7532
7519
/** @internal */
7533
7520
export function isNodeArrayMultiLine ( list : NodeArray < Node > , sourceFile : SourceFile ) : boolean {
7534
7521
return ! positionsAreOnSameLine ( list . pos , list . end , sourceFile ) ;
@@ -7846,7 +7833,6 @@ export function getObjectFlags(type: Type): ObjectFlags {
7846
7833
return type . flags & TypeFlags . ObjectFlagsType ? ( type as ObjectFlagsType ) . objectFlags : 0 ;
7847
7834
}
7848
7835
7849
-
7850
7836
/** @internal */
7851
7837
export function isUMDExportSymbol ( symbol : Symbol | undefined ) : boolean {
7852
7838
return ! ! symbol && ! ! symbol . declarations && ! ! symbol . declarations [ 0 ] && isNamespaceExportDeclaration ( symbol . declarations [ 0 ] ) ;
@@ -10356,7 +10342,6 @@ export function getNodeModulePathParts(fullPath: string): NodeModulePathParts |
10356
10342
return state > States . NodeModules ? { topLevelNodeModulesIndex, topLevelPackageNameIndex, packageRootIndex, fileNameIndex } : undefined ;
10357
10343
}
10358
10344
10359
-
10360
10345
/** @internal */
10361
10346
export function isTypeDeclaration ( node : Node ) : node is TypeParameterDeclaration | ClassDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTypedefTag | JSDocCallbackTag | JSDocEnumTag | EnumDeclaration | ImportClause | ImportSpecifier | ExportSpecifier {
10362
10347
switch ( node . kind ) {
0 commit comments