A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Microsoft/TypeScript/commit/de13648c9f87e0da272f5ed14767afb2c8788322 below:

Merge pull request #1918 from Microsoft/filename · microsoft/TypeScript@de13648 · GitHub

@@ -55,7 +55,7 @@ module ts {

55 55 56 56

export function shouldEmitToOwnFile(sourceFile: SourceFile, compilerOptions: CompilerOptions): boolean {

57 57

if (!isDeclarationFile(sourceFile)) {

58 -

if ((isExternalModule(sourceFile) || !compilerOptions.out) && !fileExtensionIs(sourceFile.filename, ".js")) {

58 +

if ((isExternalModule(sourceFile) || !compilerOptions.out) && !fileExtensionIs(sourceFile.fileName, ".js")) {

59 59

return true;

60 60

}

61 61

return false;

@@ -314,7 +314,7 @@ module ts {

314 314

}

315 315 316 316

function getSourceFilePathInNewDir(sourceFile: SourceFile, host: EmitHost, newDirPath: string) {

317 -

var sourceFilePath = getNormalizedAbsolutePath(sourceFile.filename, host.getCurrentDirectory());

317 +

var sourceFilePath = getNormalizedAbsolutePath(sourceFile.fileName, host.getCurrentDirectory());

318 318

sourceFilePath = sourceFilePath.replace(host.getCommonSourceDirectory(), "");

319 319

return combinePaths(newDirPath, sourceFilePath);

320 320

}

@@ -325,15 +325,15 @@ module ts {

325 325

var emitOutputFilePathWithoutExtension = removeFileExtension(getSourceFilePathInNewDir(sourceFile, host, compilerOptions.outDir));

326 326

}

327 327

else {

328 -

var emitOutputFilePathWithoutExtension = removeFileExtension(sourceFile.filename);

328 +

var emitOutputFilePathWithoutExtension = removeFileExtension(sourceFile.fileName);

329 329

}

330 330 331 331

return emitOutputFilePathWithoutExtension + extension;

332 332

}

333 333 334 -

function writeFile(host: EmitHost, diagnostics: Diagnostic[], filename: string, data: string, writeByteOrderMark: boolean) {

335 -

host.writeFile(filename, data, writeByteOrderMark, hostErrorMessage => {

336 -

diagnostics.push(createCompilerDiagnostic(Diagnostics.Could_not_write_file_0_Colon_1, filename, hostErrorMessage));

334 +

function writeFile(host: EmitHost, diagnostics: Diagnostic[], fileName: string, data: string, writeByteOrderMark: boolean) {

335 +

host.writeFile(fileName, data, writeByteOrderMark, hostErrorMessage => {

336 +

diagnostics.push(createCompilerDiagnostic(Diagnostics.Could_not_write_file_0_Colon_1, fileName, hostErrorMessage));

337 337

});

338 338

}

339 339

@@ -1481,7 +1481,7 @@ module ts {

1481 1481 1482 1482

function writeReferencePath(referencedFile: SourceFile) {

1483 1483

var declFileName = referencedFile.flags & NodeFlags.DeclarationFile

1484 -

? referencedFile.filename // Declaration file, use declaration file name

1484 +

? referencedFile.fileName // Declaration file, use declaration file name

1485 1485

: shouldEmitToOwnFile(referencedFile, compilerOptions)

1486 1486

? getOwnEmitOutputFilePath(referencedFile, host, ".d.ts") // Own output file so get the .d.ts file

1487 1487

: removeFileExtension(compilerOptions.out) + ".d.ts";// Global out file

@@ -1735,14 +1735,14 @@ module ts {

1735 1735

var sourcesDirectoryPath = compilerOptions.sourceRoot ? host.getCommonSourceDirectory() : sourceMapDir;

1736 1736 1737 1737

sourceMapData.sourceMapSources.push(getRelativePathToDirectoryOrUrl(sourcesDirectoryPath,

1738 -

node.filename,

1738 +

node.fileName,

1739 1739

host.getCurrentDirectory(),

1740 1740

host.getCanonicalFileName,

1741 1741

/*isAbsolutePathAnUrl*/ true));

1742 1742

sourceMapSourceIndex = sourceMapData.sourceMapSources.length - 1;

1743 1743 1744 1744

// The one that can be used from program to get the actual source file

1745 -

sourceMapData.inputSourceFileNames.push(node.filename);

1745 +

sourceMapData.inputSourceFileNames.push(node.fileName);

1746 1746

}

1747 1747 1748 1748

function recordScopeNameOfNode(node: Node, scopeName?: string) {

@@ -1857,7 +1857,7 @@ module ts {

1857 1857

}

1858 1858 1859 1859

// Initialize source map data

1860 -

var sourceMapJsFile = getBaseFilename(normalizeSlashes(jsFilePath));

1860 +

var sourceMapJsFile = getBaseFileName(normalizeSlashes(jsFilePath));

1861 1861

sourceMapData = {

1862 1862

sourceMapFilePath: jsFilePath + ".map",

1863 1863

jsSourceMappingURL: sourceMapJsFile + ".map",


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4