Skip to content

Commit edc65e1

Browse files
committed
addressed CR feedback: renamed update to updateSourceFile
1 parent cf8c218 commit edc65e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ module ts {
658658
// from this SourceFile that are being held onto may change as a result (including
659659
// becoming detached from any SourceFile). It is recommended that this SourceFile not
660660
// be used once 'update' is called on it.
661-
export function update(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange): SourceFile {
661+
export function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange): SourceFile {
662662
if (textChangeRangeIsUnchanged(textChangeRange)) {
663663
// if the text didn't change, then we can just return our current source file as-is.
664664
return sourceFile;

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ module ts {
15871587
if (version !== sourceFile.version || isOpen != sourceFile.isOpen) {
15881588
// Once incremental parsing is ready, then just call into this function.
15891589
if (!disableIncrementalParsing) {
1590-
var newSourceFile = update(sourceFile, scriptSnapshot.getText(0, scriptSnapshot.getLength()), textChangeRange);
1590+
var newSourceFile = updateSourceFile(sourceFile, scriptSnapshot.getText(0, scriptSnapshot.getLength()), textChangeRange);
15911591
setSourceFileFields(newSourceFile, scriptSnapshot, version, isOpen);
15921592
return newSourceFile;
15931593
}

0 commit comments

Comments
 (0)