@@ -687,6 +687,7 @@ namespace ts {
687
687
return sourceFile ;
688
688
}
689
689
690
+
690
691
function addJSDocComment < T extends Node > ( node : T ) : T {
691
692
const comments = getJSDocCommentRanges ( node , sourceFile . text ) ;
692
693
if ( comments ) {
@@ -741,7 +742,7 @@ namespace ts {
741
742
function createSourceFile ( fileName : string , languageVersion : ScriptTarget , scriptKind : ScriptKind ) : SourceFile {
742
743
// code from createNode is inlined here so createNode won't have to deal with special case of creating source files
743
744
// this is quite rare comparing to other nodes and createNode should be as fast as possible
744
- const sourceFile = < SourceFile > new SourceFileConstructor ( SyntaxKind . SourceFile , /*pos*/ 0 , /*end*/ sourceText . length ) ;
745
+ const sourceFile = < SourceFile > new SourceFileConstructor ( SyntaxKind . SourceFile , /*pos*/ 0 , /* end */ sourceText . length ) ;
745
746
nodeCount ++ ;
746
747
747
748
sourceFile . text = sourceText ;
@@ -6978,7 +6979,8 @@ namespace ts {
6978
6979
// inconsistent tree. Setting the parents on the new tree should be very fast. We
6979
6980
// will immediately bail out of walking any subtrees when we can see that their parents
6980
6981
// are already correct.
6981
- return Parser . parseSourceFile ( sourceFile . fileName , newText , sourceFile . languageVersion , syntaxCursor , /*setParentNodes*/ true , sourceFile . scriptKind ) ;
6982
+ const result = Parser . parseSourceFile ( sourceFile . fileName , newText , sourceFile . languageVersion , syntaxCursor , /*setParentNodes*/ true , sourceFile . scriptKind ) ;
6983
+ return result ;
6982
6984
}
6983
6985
6984
6986
function moveElementEntirelyPastChangeRange ( element : IncrementalElement , isArray : boolean , delta : number , oldText : string , newText : string , aggressiveChecks : boolean ) {
0 commit comments