8000 Refactoring compiler utility-related files to use short-hand · rbuckton/TypeScript@d50ce1c · GitHub
[go: up one dir, main page]

Skip to content

Commit d50ce1c

Browse files
author
Yui T
committed
Refactoring compiler utility-related files to use short-hand
1 parent 26a5e43 commit d50ce1c

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

src/compiler/commandLineParser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ module ts {
153153

154154
parseStrings(commandLine);
155155
return {
156-
options: options,
157-
filenames: filenames,
158-
errors: errors
156+
options,
157+
filenames,
158+
errors
159159
};
160160

161161
function parseStrings(args: string[]) {

src/compiler/core.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ module ts {
258258
}
259259

260260
return {
261-
file: file,
262-
start: start,
263-
length: length,
261+
file,
262+
start,
263+
length,
264264

265265
messageText: text,
266266
category: message.category,
@@ -335,12 +335,12 @@ module ts {
335335
}
336336

337337
return {
338-
file: file,
339-
start: start,
340-
length: length,
341-
code: code,
342-
category: category,
343-
messageText: messageText
338+
file,
339+
start,
340+
length,
341+
code,
342+
category,
343+
messageText
344344
};
345345
}
346346

src/compiler/sys.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ var sys: System = (function () {
9999
}
100100

101101
return {
102-
args: args,
102+
args,
103103
newLine: "\r\n",
104104
useCaseSensitiveFileNames: false,
105105
write(s: string): void {
106106
WScript.StdOut.Write(s);
107107
},
108-
readFile: readFile,
109-
writeFile: writeFile,
108+
readFile,
109+
writeFile,
110110
resolvePath(path: string): string {
111111
return fso.GetAbsolutePathName(path);
112112
},
@@ -191,8 +191,8 @@ var sys: System = (function () {
191191
// 1 is a standard descriptor for stdout
192192
_fs.writeSync(1, s);
193193
},
194-
readFile: readFile,
195-
writeFile: writeFile,
194+
readFile,
195+
writeFile,
196196
watchFile: (fileName, callback) => {
197197
// watchFile polls a file every 250ms, picking up file notifications.
198198
_fs.watchFile(fileName, { persistent: true, interval: 250 }, fileChanged);

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ module ts {
713713
getSymbolCount(): number;
714714
getTypeCount(): number;
715715
checkProgram(): void;
716-
emitFiles(targetSourceFile?: SourceFile): EmitResult;
716+
invokeEmitter(targetSourceFile?: SourceFile): EmitResult;
717717
getParentOfSymbol(symbol: Symbol): Symbol;
718718
getNarrowedTypeOfSymbol(symbol: Symbol, node: Node): Type;
719719
getDeclaredTypeOfSymbol(symbol: Symbol): Type;

0 commit comments

Comments
 (0)
0