Skip to content

Commit d44d182

Browse files
committed
Pipeline - Fix lint errors.
1 parent cbba720 commit d44d182

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/compiler/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ namespace ts {
18011801
}
18021802
// const bindingName = InternalSymbolName.HackPipelineReference;
18031803
// const newSymbol = bindAnonymousDeclaration(node.dummyDeclaration, SymbolFlags.BlockScopedVariable, bindingName);
1804-
declareSymbol(blockScopeContainer.locals, undefined, node.dummyDeclaration, SymbolFlags.BlockScopedVariable, SymbolFlags.None);
1804+
declareSymbol(blockScopeContainer.locals, /*parent*/ undefined, node.dummyDeclaration, SymbolFlags.BlockScopedVariable, SymbolFlags.None);
18051805
// const hashDeclaration = setTextRange(factory.createBindingElement(undefined, undefined, '#', node.arguments[0]), { pos: node.pos, end: node.pos });
18061806
// setTextRange(hashDeclaration.name!, { pos: node.pos, end: node.pos });
18071807
// (hashDeclaration as any).parent = node;

src/compiler/factory/nodeFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3067,7 +3067,7 @@ namespace ts {
30673067
const node = createBaseExpression<PipelineExpression>(SyntaxKind.PipelineExpression);
30683068
node.argument = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(argument);
30693069
node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression);
3070-
node.dummyDeclaration = createVariableDeclaration("#", undefined, undefined, node.argument);
3070+
node.dummyDeclaration = createVariableDeclaration("#", /*exclamationToken*/ undefined, /*type*/ undefined, node.argument);
30713071
setParent(node.dummyDeclaration, node);
30723072
setNodeFlags(node.dummyDeclaration, NodeFlags.Const);
30733073
node.transformFlags |=

src/compiler/transformers/pipeline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ namespace ts {
1818
);
1919
}
2020

21-
if (node2.kind === SyntaxKind.Identifier && (node2 as Identifier).escapedText === '#') {
21+
if (node2.kind === SyntaxKind.Identifier && (node2 as Identifier).escapedText === "#") {
2222
return placeholderTemp;
2323
}
2424

2525
return visitEachChild(node2, findPlaceholderVisitor, context);
26-
}
26+
};
2727

2828
context.hoistVariableDeclaration(placeholderTemp);
2929
return factory.createParenthesizedExpression(

0 commit comments

Comments
 (0)