From b3fcae88b9c7d3d9740f7a3d57c44a0ae6889e9c Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Sun, 19 Apr 2015 13:24:39 -0700 Subject: [PATCH] Fix typo --- src/compiler/program.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 10559208cb4..70e55000d85 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -494,13 +494,13 @@ module ts { return getNormalizedPathFromPathComponents(commonPathComponents); } - function checkSourceFilesBelongToPath(soruceFiles: SourceFile[], rootDirectory: string): boolean { + function checkSourceFilesBelongToPath(sourceFiles: SourceFile[], rootDirectory: string): boolean { let allFilesBelongToPath = true; - if (soruceFiles) { + if (sourceFiles) { let currentDirectory = host.getCurrentDirectory(); let absoluteRootDirectoryPath = host.getCanonicalFileName(getNormalizedAbsolutePath(rootDirectory, currentDirectory)); - for (var sourceFile of soruceFiles) { + for (var sourceFile of sourceFiles) { if (!isDeclarationFile(sourceFile)) { let absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory)); if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {