@@ -365,12 +365,12 @@ namespace ts {
365365
366366 const hasOwnProperty = Object . prototype . hasOwnProperty ;
367367
368- export function isWhiteSpaceLike ( ch : number ) : boolean {
369- return isWhiteSpace ( ch ) || isLineBreak ( ch ) ;
368+ export function isWhiteSpace ( ch : number ) : boolean {
369+ return isWhiteSpaceSingleLine ( ch ) || isLineBreak ( ch ) ;
370370 }
371371
372372 /** Does not include line breaks. For that, see isWhiteSpaceLike. */
373- export function isWhiteSpace ( ch : number ) : boolean {
373+ export function isWhiteSpaceSingleLine ( ch : number ) : boolean {
374374 // Note: nextLine is in the Zs space, and should be considered to be a whitespace.
375375 // It is explicitly not a line-break as it isn't in the exact set specified by EcmaScript.
376376 return ch === CharacterCodes . space ||
@@ -511,7 +511,7 @@ namespace ts {
511511 break ;
512512
513513 default :
514- if ( ch > CharacterCodes . maxAsciiCharacter && ( isWhiteSpaceLike ( ch ) ) ) {
514+ if ( ch > CharacterCodes . maxAsciiCharacter && ( isWhiteSpace ( ch ) ) ) {
515515 pos ++ ;
516516 continue ;
517517 }
@@ -664,7 +664,7 @@ namespace ts {
664664 }
665665 break ;
666666 default :
667- if ( ch > CharacterCodes . maxAsciiCharacter && ( isWhiteSpaceLike ( ch ) ) ) {
667+ if ( ch > CharacterCodes . maxAsciiCharacter && ( isWhiteSpace ( ch ) ) ) {
668668 if ( result && result . length && isLineBreak ( ch ) ) {
669669 lastOrUndefined ( result ) . hasTrailingNewLine = true ;
670670 }
@@ -1209,7 +1209,7 @@ namespace ts {
12091209 continue ;
12101210 }
12111211 else {
1212- while ( pos < end && isWhiteSpace ( text . charCodeAt ( pos ) ) ) {
1212+ while ( pos < end && isWhiteSpaceSingleLine ( text . charCodeAt ( pos ) ) ) {
12131213 pos ++ ;
12141214 }
12151215 return token = SyntaxKind . WhitespaceTrivia ;
@@ -1527,7 +1527,7 @@ namespace ts {
15271527 }
15281528 return token = getIdentifierToken ( ) ;
15291529 }
1530- else if ( isWhiteSpace ( ch ) ) {
1530+ else if ( isWhiteSpaceSingleLine ( ch ) ) {
15311531 pos ++ ;
15321532 continue ;
15331533 }
@@ -1696,7 +1696,7 @@ namespace ts {
16961696 let ch = text . charCodeAt ( pos ) ;
16971697 while ( pos < end ) {
16981698 ch = text . charCodeAt ( pos ) ;
1699- if ( isWhiteSpace ( ch ) ) {
1699+ if ( isWhiteSpaceSingleLine ( ch ) ) {
17001700 pos ++ ;
17011701 }
17021702 else {
0 commit comments