@@ -890,16 +890,16 @@ namespace ts {
890
890
sourceFile . scriptSnapshot = scriptSnapshot ;
891
891
}
892
892
893
- export function createLanguageServiceSourceFile ( fileName : string , scriptSnapshot : IScriptSnapshot , scriptTarget : ScriptTarget , version : string , setNodeParents : boolean , scriptKind ?: ScriptKind , cheat ?: string ) : SourceFile {
894
- const text = cheat || scriptSnapshot . getText ( 0 , scriptSnapshot . getLength ( ) ) ;
893
+ export function createLanguageServiceSourceFile ( fileName : string , scriptSnapshot : IScriptSnapshot , scriptTarget : ScriptTarget , version : string , setNodeParents : boolean , scriptKind ?: ScriptKind ) : SourceFile {
894
+ const text = scriptSnapshot . getText ( 0 , scriptSnapshot . getLength ( ) ) ;
895
895
const sourceFile = createSourceFile ( fileName , text , scriptTarget , setNodeParents , scriptKind ) ;
896
896
setSourceFileFields ( sourceFile , scriptSnapshot , version ) ;
897
897
return sourceFile ;
898
898
}
899
899
900
900
export let disableIncrementalParsing = false ;
901
901
902
- export function updateLanguageServiceSourceFile ( sourceFile : SourceFile , scriptSnapshot : IScriptSnapshot , version : string , textChangeRange : TextChangeRange , aggressiveChecks ?: boolean , cheat ?: string ) : SourceFile {
902
+ export function updateLanguageServiceSourceFile ( sourceFile : SourceFile , scriptSnapshot : IScriptSnapshot , version : string , textChangeRange : TextChangeRange , aggressiveChecks ?: boolean ) : SourceFile {
903
903
// If we were given a text change range, and our version or open-ness changed, then
904
904
// incrementally parse this file.
905
905
if ( textChangeRange ) {
@@ -954,7 +954,7 @@ namespace ts {
954
954
}
955
955
956
956
// Otherwise, just create a new source file.
957
- return createLanguageServiceSourceFile ( sourceFile . fileName , scriptSnapshot , sourceFile . languageVersion , version , /*setNodeParents*/ true , sourceFile . scriptKind , cheat ) ;
957
+ return createLanguageServiceSourceFile ( sourceFile . fileName , scriptSnapshot , sourceFile . languageVersion , version , /*setNodeParents*/ true , sourceFile . scriptKind ) ;
958
958
}
959
959
960
960
class CancellationTokenObject implements CancellationToken {
0 commit comments