Skip to content

Commit 230f8b5

Browse files
committed
Compiler flag to specify line ending microsoft#1693 code review adjustments
1 parent e278b2e commit 230f8b5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compiler/diagnosticInformationMap.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ module ts {
501501
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." },
502502
Emit_newline_Colon_CRLF_dos_or_LF_unix: { code: 6061, category: DiagnosticCategory.Message, key: "Emit newline: 'CRLF' (dos) or 'LF' (unix)." },
503503
NEWLINE: { code: 6062, category: DiagnosticCategory.Message, key: "NEWLINE" },
504-
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6063, category: DiagnosticCategory.Error, key: "Argument for --newLine option must be 'CRLF' or 'LF'." },
504+
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6063, category: DiagnosticCategory.Error, key: "Argument for 'newLine' option must be 'CRLF' or 'LF'." },
505505
Variable_0_implicitly_has_an_1_type: { code: 7005, category: DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." },
506506
Parameter_0_implicitly_has_an_1_type: { code: 7006, category: DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." },
507507
Member_0_implicitly_has_an_1_type: { code: 7008, category: DiagnosticCategory.Error, key: "Member '{0}' implicitly has an '{1}' type." },

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ module ts {
16501650
locale?: string;
16511651
mapRoot?: string;
16521652
module?: ModuleKind;
1653-
newLine?: string;
1653+
newLine?: NewLineKind;
16541654
noEmit?: boolean;
16551655
noEmitOnError?: boolean;
16561656
noErrorTruncation?: boolean;

0 commit comments

Comments
 (0)