We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e6f6a4 commit b142bfcCopy full SHA for b142bfc
scripts/tslint/preferConstRule.ts
@@ -13,14 +13,6 @@ function isBindingPattern(node: ts.Node): node is ts.BindingPattern {
13
return !!node && (node.kind === ts.SyntaxKind.ArrayBindingPattern || node.kind === ts.SyntaxKind.ObjectBindingPattern);
14
}
15
16
-function walkUpBindingElementsAndPatterns(node: ts.Node): ts.Node {
17
- while (node && (node.kind === ts.SyntaxKind.BindingElement || isBindingPattern(node))) {
18
- node = node.parent;
19
- }
20
-
21
- return node;
22
-}
23
24
function isLet(node: ts.Node) {
25
return !!(ts.getCombinedNodeFlags(node) & ts.NodeFlags.Let);
26
0 commit comments