@@ -416,10 +416,10 @@ module ts {
416
416
? TypeScript . Parser . parse ( this . filename , text , this . languageVersion , TypeScript . isDTSFile ( this . filename ) )
417
417
: TypeScript . IncrementalParser . parse ( oldSyntaxTree , textChangeRange , text ) ;
418
418
419
- return SourceFileObject . createSourceFileObject ( this . languageVersion , this . filename , scriptSnapshot , version , isOpen , newSyntaxTree ) ;
419
+ return SourceFileObject . createSourceFileObject ( this . filename , scriptSnapshot , this . languageVersion , version , isOpen , newSyntaxTree ) ;
420
420
}
421
421
422
- public static createSourceFileObject ( languageVersion : ScriptTarget , filename : string , scriptSnapshot : TypeScript . IScriptSnapshot , version : number , isOpen : boolean , syntaxTree : TypeScript . SyntaxTree ) {
422
+ public static createSourceFileObject ( filename : string , scriptSnapshot : TypeScript . IScriptSnapshot , languageVersion : ScriptTarget , version : number , isOpen : boolean , syntaxTree ? : TypeScript . SyntaxTree ) {
423
423
var newSourceFile = < SourceFileObject > < any > createSourceFile ( filename , scriptSnapshot . getText ( 0 , scriptSnapshot . getLength ( ) ) , languageVersion , version , isOpen ) ;
424
424
newSourceFile . scriptSnapshot = scriptSnapshot ;
425
425
newSourceFile . syntaxTree = syntaxTree ;
@@ -1134,7 +1134,7 @@ module ts {
1134
1134
}
1135
1135
1136
1136
function createSourceFileFromScriptSnapshot ( filename : string , scriptSnapshot : TypeScript . IScriptSnapshot , settings : CompilerOptions , version : number , isOpen : boolean ) {
1137
- return createSourceFile ( filename , scriptSnapshot . getText ( 0 , scriptSnapshot . getLength ( ) ) , settings . target , version , isOpen ) ;
1137
+ return SourceFileObject . createSourceFileObject ( filename , scriptSnapshot , settings . target , version , isOpen ) ;
1138
1138
}
1139
1139
1140
1140
export function createDocumentRegistry ( ) : DocumentRegistry {
0 commit comments