Skip to content

Commit 83ed41b

Browse files
committed
move indices comment into plain comment
1 parent 0f87a89 commit 83ed41b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

javascript/ql/src/semmle/javascript/TypeScript.qll

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,11 @@ class TupleTypeExpr extends @tupletypeexpr, TypeExpr {
857857
/**
858858
* Gets the name of the `n`th tuple member, starting at 0.
859859
* Only has a result if the tuple members are named.
860-
*
861-
* Type element names are at indices -1, -2, -3, ...
862860
*/
863-
Identifier getElementName(int n) { result = getChild(-(n + 1)) and n >= 0 }
861+
Identifier getElementName(int n) {
862+
// Type element names are at indices -1, -2, -3, ...
863+
result = getChild(-(n + 1)) and n >= 0
864+
}
864865
}
865866

866867
/**

0 commit comments

Comments
 (0)