diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 2e692470cc..55e58bb4d4 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -536,10 +536,10 @@ namespace ts { } /** - * Extract comments from the given source text starting at the given position. + * Extract comments from text prefixing the token closest following `pos`. * The return value is an array containing a TextRange for each comment. * Single-line comment ranges include the beginning '//' characters but not the ending line break. - * Multi - line comment ranges include the beginning '/* and ending '/' characters. + * Multi - line comment ranges include the beginning '/* and ending '/' characters. * The return value is undefined if no comments were found. * @param trailing * If false, whitespace is skipped until the first line break and comments between that location