Skip to content

Commit d0f0e35

Browse files
authoredOct 19, 2022
Remove old tslint comments (#51220)
1 parent 85d405a commit d0f0e35

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed
 

‎src/compiler/factory/baseNodeFactory.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ namespace ts {
1717
* Creates a `BaseNodeFactory` which can be used to create `Node` instances from the constructors provided by the object allocator.
1818
*/
1919
export function createBaseNodeFactory(): BaseNodeFactory {
20-
// tslint:disable variable-name
2120
let NodeConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
2221
let TokenConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
2322
let IdentifierConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
2423
let PrivateIdentifierConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
2524
let SourceFileConstructor: new (kind: SyntaxKind, pos?: number, end?: number) => Node;
26-
// tslint:enable variable-name
2725

2826
return {
2927
createBaseSourceFileNode,
@@ -53,4 +51,4 @@ namespace ts {
5351
return new (NodeConstructor || (NodeConstructor = objectAllocator.getNodeConstructor()))(kind, /*pos*/ -1, /*end*/ -1);
5452
}
5553
}
56-
}
54+
}

‎src/compiler/factory/nodeFactory.ts

-3
Original file line numberDiff line numberDiff line change
@@ -6407,11 +6407,9 @@ namespace ts {
64076407
rawTextScanner.setText("`" + rawText + "`");
64086408
break;
64096409
case SyntaxKind.TemplateHead:
6410-
// tslint:disable-next-line no-invalid-template-strings
64116410
rawTextScanner.setText("`" + rawText + "${");
64126411
break;
64136412
case SyntaxKind.TemplateMiddle:
6414-
// tslint:disable-next-line no-invalid-template-strings
64156413
rawTextScanner.setText("}" + rawText + "${");
64166414
break;
64176415
case SyntaxKind.TemplateTail:
@@ -6840,7 +6838,6 @@ namespace ts {
68406838
return node;
68416839
}
68426840

6843-
// tslint:disable-next-line variable-name
68446841
let SourceMapSource: new (fileName: string, text: string, skipTrivia?: (pos: number) => number) => SourceMapSource;
68456842

68466843
/**

‎src/compiler/parser.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1027,13 +1027,11 @@ namespace ts {
10271027
const disallowInAndDecoratorContext = NodeFlags.DisallowInContext | NodeFlags.DecoratorContext;
10281028

10291029
// capture constructors in 'initializeState' to avoid null checks
1030-
// tslint:disable variable-name
10311030
let NodeConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
10321031
let TokenConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
10331032
let IdentifierConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
10341033
let PrivateIdentifierConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
10351034
let SourceFileConstructor: new (kind: SyntaxKind, pos: number, end: number) => Node;
1036-
// tslint:enable variable-name
10371035

10381036
function countNode(node: Node) {
10391037
nodeCount++;

0 commit comments

Comments
 (0)
Please sign in to comment.