Skip to content

Commit 16d7e5c

Browse files
committed
Compiler flag to specify line ending microsoft#1693 fix whitespace
1 parent 532f92b commit 16d7e5c

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/compiler/commandLineParser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ module ts {
6969
{
7070
name: "newLine",
7171
type: { "crlf": NewLineKind.CRLF, "lf": NewLineKind.LF },
72-
description: Diagnostics.Emit_newline_Colon_CRLF_dos_or_LF_unix,
72+
description: Diagnostics.Emit_newline_Colon_CRLF_dos_or_LF_unix,
7373
paramType: Diagnostics.NEWLINE,
74-
error: Diagnostics.Argument_for_newLine_option_must_be_CRLF_or_LF
74+
error: Diagnostics.Argument_for_newLine_option_must_be_CRLF_or_LF
7575
},
7676
{
7777
name: "noEmit",

src/compiler/diagnosticMessages.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1999,17 +1999,17 @@
19991999
"code": 6059
20002000
},
20012001
"Emit newline: 'CRLF' (dos) or 'LF' (unix).": {
2002-
"category": "Message",
2003-
"code": 6061
2004-
},
2002+
"category": "Message",
2003+
"code": 6061
2004+
},
20052005
"NEWLINE": {
2006-
"category": "Message",
2007-
"code": 6062
2008-
},
2006+
"category": "Message",
2007+
"code": 6062
2008+
},
20092009
"Argument for --newLine option must be 'CRLF' or 'LF'.": {
2010-
"category": "Error",
2011-
"code": 6063
2012-
},
2010+
"category": "Error",
2011+
"code": 6063
2012+
},
20132013

20142014

20152015
"Variable '{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 = [sys.newLine, "\r\n", "\n"][options.newLine ? Number(options.newLine) : 0];
94+
let newLine = [sys.newLine, "\r\n", "\n"][options.newLine ? Number(options.newLine) : 0];
9595

9696
return {
9797
getSourceFile,

src/compiler/types.ts

+2-2
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?: string;
16601660
noEmit?: boolean;
16611661
noEmitHelpers?: boolean;
16621662
noEmitOnError?: boolean;
@@ -1692,7 +1692,7 @@ module ts {
16921692

16931693
export const enum NewLineKind {
16941694
DEFAULT = 0,
1695-
CRLF = 1,
1695+
CRLF = 1,
16961696
LF = 2,
16971697
}
16981698

0 commit comments

Comments
 (0)