AsteriskToken should always have length 1 (#21126)

This commit is contained in:
Andy
2018-01-10 12:52:35 -08:00
committed by GitHub
parent ee87cf409b
commit 7a1deae6aa
+1 -1
View File
@@ -6491,7 +6491,7 @@ namespace ts {
if (state === JSDocState.BeginningOfLine) {
// leading asterisks start recording on the *next* (non-whitespace) token
state = JSDocState.SawAsterisk;
indent += scanner.getTokenText().length;
indent += 1;
break;
}
// record the * as a comment