Skip to content

Commit c783e37

Browse files
committed
Compiler flag to specify line ending microsoft#1693 code review adjustments
1 parent c1d2aea commit c783e37

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compiler/diagnosticInformationMap.generated.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ module ts {
504504
File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files: { code: 6059, category: DiagnosticCategory.Error, key: "File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files." },
505505
Emit_newline_Colon_CRLF_dos_or_LF_unix: { code: 6061, category: DiagnosticCategory.Message, key: "Emit newline: 'CRLF' (dos) or 'LF' (unix)." },
506506
NEWLINE: { code: 6062, category: DiagnosticCategory.Message, key: "NEWLINE" },
507-
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6063, category: DiagnosticCategory.Error, key: "Argument for --newLine option must be 'CRLF' or 'LF'." },
507+
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6063, category: DiagnosticCategory.Error, key: "Argument for 'newLine' option must be 'CRLF' or 'LF'." },
508508
Variable_0_implicitly_has_an_1_type: { code: 7005, category: DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." },
509509
Parameter_0_implicitly_has_an_1_type: { code: 7006, category: DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." },
510510
Member_0_implicitly_has_an_1_type: { code: 7008, category: DiagnosticCategory.Error, key: "Member '{0}' implicitly has an '{1}' type." },

src/compiler/program.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module ts {
9191
}
9292
}
9393

94-
let newLine =
94+
let newLine =
9595
options.newLine === NewLineKind.CarriageReturnLineFeed ? "\r\n" :
9696
options.newLine === NewLineKind.LineFeed ? "\n" :
9797
sys.newLine;

src/compiler/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ module ts {
16561656
locale?: string;
16571657
mapRoot?: string;
16581658
module?: ModuleKind;
1659-
newLine?: string;
1659+
newLine?: NewLineKind;
16601660
noEmit?: boolean;
16611661
noEmitHelpers?: boolean;
16621662
noEmitOnError?: boolean;

0 commit comments

Comments
 (0)