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.
2 parents cd15fb3 + bf9d748 commit d9c1589Copy full SHA for d9c1589
javascript/extractor/src/com/semmle/js/parser/JSDocParser.java
@@ -561,7 +561,8 @@ private Token scanNumber() throws ParseError {
561
private Token scanTypeName() {
562
char ch, ch2;
563
564
- value = new String(Character.toChars(advance()));
+ StringBuilder sb = new StringBuilder();
565
+ sb.append((char)advance());
566
while (index < endIndex && isTypeName(source.charAt(index))) {
567
ch = source.charAt(index);
568
if (ch == '.') {
@@ -572,8 +573,9 @@ private Token scanTypeName() {
572
573
}
574
575
- value += new String(Character.toChars(advance()));
576
577
578
+ value = sb.toString();
579
return Token.NAME;
580
581
0 commit comments