Skip to content

Commit 5360570

Browse files
committed
Remove newlines
1 parent 47de55a commit 5360570

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

src/compiler/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,6 @@ export type HasExpressionInitializer =
13001300
| PropertyAssignment
13011301
| EnumMember;
13021302

1303-
13041303
// NOTE: Changing the following list requires changes to:
13051304
// - `canHaveDecorators` in factory/utilities.ts
13061305
// - `updateModifiers` in factory/nodeFactory.ts
@@ -2294,7 +2293,6 @@ export interface TypeOperatorNode extends TypeNode {
22942293
readonly type: TypeNode;
22952294
}
22962295

2297-
22982296
export interface IndexedAccessTypeNode extends TypeNode {
22992297
readonly kind: SyntaxKind.IndexedAccessType;
23002298
readonly objectType: TypeNode;
@@ -2642,7 +2640,6 @@ export type ObjectBindingOrAssignmentElement =
26422640
| SpreadAssignment // AssignmentRestProperty
26432641
;
26442642

2645-
26462643
export type ArrayBindingOrAssignmentElement =
26472644
| BindingElement
26482645
| OmittedExpression // Elision
@@ -5450,7 +5447,6 @@ export const enum SymbolAccessibility {
54505447
CannotBeNamed,
54515448
}
54525449

5453-
54545450
export const enum TypePredicateKind {
54555451
This,
54565452
Identifier,
@@ -7850,7 +7846,6 @@ export interface CompilerHost extends ModuleResolutionHost {
78507846
*/
78517847
export type SourceOfProjectReferenceRedirect = string | true;
78527848

7853-
78547849
/** @internal */
78557850
export const enum TransformFlags {
78567851
None = 0,
@@ -8068,7 +8063,6 @@ export interface UnscopedEmitHelper extends EmitHelperBase {
80688063

80698064
export type EmitHelper = ScopedEmitHelper | UnscopedEmitHelper;
80708065

8071-
80728066
export type EmitHelperUniqueNameCallback = (name: string) => string;
80738067

80748068
// dprint-ignore

src/compiler/utilities.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,6 @@ export function insertStatementsAfterCustomPrologue<T extends Statement>(to: T[]
10521052
return insertStatementsAfterPrologue(to, from, isAnyPrologueDirective);
10531053
}
10541054

1055-
10561055
/** @internal */
10571056
export function insertStatementAfterCustomPrologue<T extends Statement>(to: T[], statement: T | undefined): T[] {
10581057
return insertStatementAfterPrologue(to, statement, isAnyPrologueDirective);
@@ -2509,7 +2508,6 @@ export function isPartOfTypeNode(node: Node): boolean {
25092508
return false;
25102509
}
25112510

2512-
25132511
// Warning: This has the same semantics as the forEach family of functions,
25142512
// in that traversal terminates in the event that 'visitor' supplies a truthy value.
25152513
/** @internal */
@@ -2710,7 +2708,6 @@ export function isIdentifierTypePredicate(predicate: TypePredicate): predicate i
27102708
return predicate && predicate.kind === TypePredicateKind.Identifier;
27112709
}
27122710

2713-
27142711
/** @internal */
27152712
export function forEachPropertyAssignment<T>(objectLiteral: ObjectLiteralExpression | undefined, key: string, callback: (property: PropertyAssignment) => T | undefined, key2?: string) {
27162713
return forEach(objectLiteral?.properties, property => {
@@ -3022,7 +3019,6 @@ export function getImmediatelyInvokedFunctionExpression(func: Node): CallExpress
30223019
}
30233020
}
30243021

3025-
30263022
/**
30273023
* Determines whether a node is a property or element access expression for `super`.
30283024
*
@@ -3419,7 +3415,6 @@ export function isSourceFileJS(file: SourceFile): boolean {
34193415
return isInJSFile(file);
34203416
}
34213417

3422-
34233418
/** @internal */
34243419
export function isInJSFile(node: Node | undefined): boolean {
34253420
return !!node && !!(node.flags & NodeFlags.JavaScriptFile);
@@ -4418,7 +4413,6 @@ export function getTypeParameterFromJsDoc(node: TypeParameterDeclaration & { par
44184413
return typeParameters && find(typeParameters, p => p.name.escapedText === name);
44194414
}
44204415

4421-
44224416
/** @internal */
44234417
export const enum AssignmentKind {
44244418
None,
@@ -4884,14 +4878,12 @@ export function isNonContextualKeyword(token: SyntaxKind): boolean {
48844878
return isKeyword(token) && !isContextualKeyword(token);
48854879
}
48864880

4887-
48884881
/** @internal */
48894882
export function isStringANonContextualKeyword(name: string) {
48904883
const token = stringToToken(name);
48914884
return token !== undefined && isNonContextualKeyword(token);
48924885
}
48934886

4894-
48954887
/** @internal */
48964888
export function isIdentifierANonContextualKeyword(node: Identifier): boolean {
48974889
const originalKeywordKind = identifierToKeywordKind(node);
@@ -5043,7 +5035,6 @@ export function getEscapedTextOfIdentifierOrLiteral(node: PropertyNameLiteral):
50435035
return isMemberName(node) ? node.escapedText : isJsxNamespacedName(node) ? getEscapedTextOfJsxNamespacedName(node) : escapeLeadingUnderscores(node.text);
50445036
}
50455037

5046-
50475038
/** @internal */
50485039
export function getSymbolNameForPrivateIdentifier(containingClassSymbol: Symbol, description: __String): __String {
50495040
return `__#${getSymbolId(containingClassSymbol)}@${description}` as __String;
@@ -5059,7 +5050,6 @@ export function isPrivateIdentifierSymbol(symbol: Symbol): boolean {
50595050
return startsWith(symbol.escapedName as string, "__#");
50605051
}
50615052

5062-
50635053
/**
50645054
* Indicates whether a property name is the special `__proto__` property.
50655055
* Per the ECMA-262 spec, this only matters for property assignments whose name is
@@ -5234,7 +5224,6 @@ export function nodeIsSynthesized(range: TextRange): boolean {
52345224
|| positionIsSynthesized(range.end);
52355225
}
52365226

5237-
52385227
/** @internal */
52395228
export const enum Associativity {
52405229
Left,
@@ -7480,7 +7469,6 @@ export function moveRangePastModifiers(node: Node): TextRange {
74807469
: moveRangePastDecorators(node);
74817470
}
74827471

7483-
74847472
/**
74857473
* Creates a new TextRange for a token at the provides start position.
74867474
*
@@ -7528,7 +7516,6 @@ export function getLinesBetweenRangeEndAndRangeStart(range1: TextRange, range2:
75287516
return getLinesBetweenPositions(sourceFile, range1.end, range2Start);
75297517
}
75307518

7531-
75327519
/** @internal */
75337520
export function isNodeArrayMultiLine(list: NodeArray<Node>, sourceFile: SourceFile): boolean {
75347521
return !positionsAreOnSameLine(list.pos, list.end, sourceFile);
@@ -7846,7 +7833,6 @@ export function getObjectFlags(type: Type): ObjectFlags {
78467833
return type.flags & TypeFlags.ObjectFlagsType ? (type as ObjectFlagsType).objectFlags : 0;
78477834
}
78487835

7849-
78507836
/** @internal */
78517837
export function isUMDExportSymbol(symbol: Symbol | undefined): boolean {
78527838
return !!symbol && !!symbol.declarations && !!symbol.declarations[0] && isNamespaceExportDeclaration(symbol.declarations[0]);
@@ -10356,7 +10342,6 @@ export function getNodeModulePathParts(fullPath: string): NodeModulePathParts |
1035610342
return state > States.NodeModules ? { topLevelNodeModulesIndex, topLevelPackageNameIndex, packageRootIndex, fileNameIndex } : undefined;
1035710343
}
1035810344

10359-
1036010345
/** @internal */
1036110346
export function isTypeDeclaration(node: Node): node is TypeParameterDeclaration | ClassDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTypedefTag | JSDocCallbackTag | JSDocEnumTag | EnumDeclaration | ImportClause | ImportSpecifier | ExportSpecifier {
1036210347
switch (node.kind) {

src/compiler/utilitiesPublic.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,6 @@ export function isAssertionExpression(node: Node): node is AssertionExpression {
20632063
|| kind === SyntaxKind.AsExpression;
20642064
}
20652065

2066-
20672066
// Statement
20682067

20692068
export function isIterationStatement(node: Node, lookInLabeledStatements: false): node is IterationStatement;
@@ -2133,8 +2132,6 @@ export function isModuleBody(node: Node): node is ModuleBody {
21332132
|| kind === SyntaxKind.Identifier;
21342133
}
21352134

2136-
2137-
21382135
export function isNamedImportBindings(node: Node): node is NamedImportBindings {
21392136
const kind = node.kind;
21402137
return kind === SyntaxKind.NamedImports

src/server/protocol.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,6 @@ export interface RenameFullRequest extends FileLocationRequest {
12991299
readonly arguments: RenameRequestArgs;
13001300
}
13011301

1302-
13031302
/**
13041303
* Information about the item to be renamed.
13051304
*/
@@ -3050,7 +3049,6 @@ export interface CloseFileWatcherEventBody {
30503049
readonly id: number;
30513050
}
30523051

3053-
30543052
/**
30553053
* Arguments for reload request.
30563054
*/

0 commit comments

Comments
 (0)