diff --git a/lib/typescriptServices.d.ts b/lib/typescriptServices.d.ts index 9840a5e688f15..7b4eaea9e16f8 100644 --- a/lib/typescriptServices.d.ts +++ b/lib/typescriptServices.d.ts @@ -1450,6 +1450,7 @@ declare namespace ts { function getTrailingCommentRanges(text: string, pos: number): CommentRange[]; function isIdentifierStart(ch: number, languageVersion: ScriptTarget): boolean; function isIdentifierPart(ch: number, languageVersion: ScriptTarget): boolean; + function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant: ts.LanguageVariant, text?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner; } declare namespace ts { function getDefaultLibFileName(options: CompilerOptions): string; diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 33003b6e8c205..2f73c9c8820ac 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -672,7 +672,6 @@ namespace ts { ch > CharacterCodes.maxAsciiCharacter && isUnicodeIdentifierPart(ch, languageVersion); } - /* @internal */ // Creates a scanner over a (possibly unspecified) range of a piece of text. export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean,