Skip to content

Commit 083d9a1

Browse files
committed
Merge pull request #406 from DickvdBrink/typo-fix
Fixed typo soruceFile -> sourceFile
2 parents 39046fa + 877b0cf commit 083d9a1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/services/services.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,10 @@ module ts {
420420
}
421421

422422
public static createSourceFileObject(languageVersion: ScriptTarget, filename: string, scriptSnapshot: TypeScript.IScriptSnapshot, version: number, isOpen: boolean, syntaxTree: TypeScript.SyntaxTree) {
423-
var newSoruceFile = <SourceFileObject><any>createSourceFile(filename, scriptSnapshot.getText(0, scriptSnapshot.getLength()), languageVersion, version, isOpen);
424-
newSoruceFile.scriptSnapshot = scriptSnapshot;
425-
newSoruceFile.syntaxTree = syntaxTree;
426-
return newSoruceFile;
423+
var newSourceFile = <SourceFileObject><any>createSourceFile(filename, scriptSnapshot.getText(0, scriptSnapshot.getLength()), languageVersion, version, isOpen);
424+
newSourceFile.scriptSnapshot = scriptSnapshot;
425+
newSourceFile.syntaxTree = syntaxTree;
426+
return newSourceFile;
427427
}
428428
}
429429

@@ -697,7 +697,7 @@ module ts {
697697
referencedFiles: string[]): SourceFile;
698698

699699
updateDocument(
700-
soruceFile: SourceFile,
700+
sourceFile: SourceFile,
701701
filename: string,
702702
compilationSettings: CompilerOptions,
703703
scriptSnapshot: TypeScript.IScriptSnapshot,
@@ -1112,19 +1112,19 @@ module ts {
11121112
function reportStats() {
11131113
var bucketInfoArray = Object.keys(buckets).filter(name => name && name.charAt(0) === '_').map(name => {
11141114
var entries = lookUp(buckets, name);
1115-
var soruceFiles: { name: string; refCount: number; references: string[]; }[] = [];
1115+
var sourceFiles: { name: string; refCount: number; references: string[]; }[] = [];
11161116
for (var i in entries) {
11171117
var entry = entries[i];
1118-
soruceFiles.push({
1118+
sourceFiles.push({
11191119
name: i,
11201120
refCount: entry.refCount,
11211121
references: entry.owners.slice(0)
11221122
});
11231123
}
1124-
soruceFiles.sort((x, y) => y.refCount - x.refCount);
1124+
sourceFiles.sort((x, y) => y.refCount - x.refCount);
11251125
return {
11261126
bucket: name,
1127-
sourceFiles: soruceFiles
1127+
sourceFiles: sourceFiles
11281128
};
11291129
});
11301130
return JSON.stringify(bucketInfoArray, null, 2);

0 commit comments

Comments
 (0)