Compiler flag to specify line ending #1693 fix whitespace

This commit is contained in:
Keith Mashinter 2015-04-26 12:19:16 -04:00 committed by kmashint
parent 532f92b88f
commit 16d7e5cad7
4 changed files with 14 additions and 14 deletions

View File

@ -69,9 +69,9 @@ module ts {
{
name: "newLine",
type: { "crlf": NewLineKind.CRLF, "lf": NewLineKind.LF },
description: Diagnostics.Emit_newline_Colon_CRLF_dos_or_LF_unix,
description: Diagnostics.Emit_newline_Colon_CRLF_dos_or_LF_unix,
paramType: Diagnostics.NEWLINE,
error: Diagnostics.Argument_for_newLine_option_must_be_CRLF_or_LF
error: Diagnostics.Argument_for_newLine_option_must_be_CRLF_or_LF
},
{
name: "noEmit",

View File

@ -1999,17 +1999,17 @@
"code": 6059
},
"Emit newline: 'CRLF' (dos) or 'LF' (unix).": {
"category": "Message",
"code": 6061
},
"category": "Message",
"code": 6061
},
"NEWLINE": {
"category": "Message",
"code": 6062
},
"category": "Message",
"code": 6062
},
"Argument for --newLine option must be 'CRLF' or 'LF'.": {
"category": "Error",
"code": 6063
},
"category": "Error",
"code": 6063
},
"Variable '{0}' implicitly has an '{1}' type.": {

View File

@ -91,7 +91,7 @@ module ts {
}
}
let newLine = [sys.newLine, "\r\n", "\n"][options.newLine ? Number(options.newLine) : 0];
let newLine = [sys.newLine, "\r\n", "\n"][options.newLine ? Number(options.newLine) : 0];
return {
getSourceFile,

View File

@ -1656,7 +1656,7 @@ module ts {
locale?: string;
mapRoot?: string;
module?: ModuleKind;
newLine?: string;
newLine?: string;
noEmit?: boolean;
noEmitHelpers?: boolean;
noEmitOnError?: boolean;
@ -1692,7 +1692,7 @@ module ts {
export const enum NewLineKind {
DEFAULT = 0,
CRLF = 1,
CRLF = 1,
LF = 2,
}