From cde4dbb35132848ffece59ef9cfaccff32347124 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 14 Jul 2020 15:24:17 -0400 Subject: Use dprint for internal formatting (#6682) --- deno_typescript/compiler_main.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'deno_typescript/compiler_main.js') diff --git a/deno_typescript/compiler_main.js b/deno_typescript/compiler_main.js index 847f3435f..a42f96860 100644 --- a/deno_typescript/compiler_main.js +++ b/deno_typescript/compiler_main.js @@ -52,7 +52,7 @@ function main(configText, rootNames) { // TS5009: Cannot find the common subdirectory path for the input files. if (code === 5009) return false; return true; - }) + }), ); const emitResult = program.emit(); @@ -60,7 +60,7 @@ function main(configText, rootNames) { dispatch( "op_set_emit_result", - Object.assign(emitResult, { tsVersion: ts.version }) + Object.assign(emitResult, { tsVersion: ts.version }), ); } @@ -176,7 +176,7 @@ class Host { fileName, languageVersion, _onError, - shouldCreateNewSourceFile + shouldCreateNewSourceFile, ) { assert(!shouldCreateNewSourceFile); // We haven't yet encountered this. @@ -204,7 +204,7 @@ class Host { const sourceFile = ts.createSourceFile( fileName, sourceCode, - languageVersion + languageVersion, ); sourceFile.moduleName = fileName; return sourceFile; @@ -222,7 +222,7 @@ class Host { data, _writeByteOrderMark, _onError = null, - sourceFiles = null + sourceFiles = null, ) { if (sourceFiles == null) { return; @@ -243,7 +243,7 @@ class Host { _path, _languageVersion, _onError, - _shouldCreateNewSourceFile + _shouldCreateNewSourceFile, ) { unreachable(); } @@ -301,14 +301,14 @@ class Host { function configure(configurationText) { const { config, error } = ts.parseConfigFileTextToJson( "tsconfig.json", - configurationText + configurationText, ); if (error) { return { options: {}, diagnostics: [error] }; } const { options, errors } = ts.convertCompilerOptionsFromJson( config.compilerOptions, - "" + "", ); return { options, -- cgit v1.2.3