Skip to content

Commit b3fcae8

Browse files
committed
Fix typo
1 parent 8964b8e commit b3fcae8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/program.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,13 +494,13 @@ module ts {
494494
return getNormalizedPathFromPathComponents(commonPathComponents);
495495
}
496496

497-
function checkSourceFilesBelongToPath(soruceFiles: SourceFile[], rootDirectory: string): boolean {
497+
function checkSourceFilesBelongToPath(sourceFiles: SourceFile[], rootDirectory: string): boolean {
498498
let allFilesBelongToPath = true;
499-
if (soruceFiles) {
499+
if (sourceFiles) {
500500
let currentDirectory = host.getCurrentDirectory();
501501
let absoluteRootDirectoryPath = host.getCanonicalFileName(getNormalizedAbsolutePath(rootDirectory, currentDirectory));
502502

503-
for (var sourceFile of soruceFiles) {
503+
for (var sourceFile of sourceFiles) {
504504
if (!isDeclarationFile(sourceFile)) {
505505
let absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory));
506506
if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {

0 commit comments

Comments
 (0)