Skip to content

Commit e0f7384

Browse files
committed
Added missing semicolons
1 parent 02d0b02 commit e0f7384

18 files changed

+33
-33
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ module ts {
174174
var result: Map<T> = {};
175175

176176
forEach(array, value => {
177-
result[makeKey(value)] = value
177+
result[makeKey(value)] = value;
178178
});
179179

180180
return result;

src/compiler/tc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ module ts {
362362
var output = "";
363363

364364
// We want to align our "syntax" and "examples" commands to a certain margin.
365-
var syntaxLength = getDiagnosticText(Diagnostics.Syntax_Colon_0, "").length
366-
var examplesLength = getDiagnosticText(Diagnostics.Examples_Colon_0, "").length
365+
var syntaxLength = getDiagnosticText(Diagnostics.Syntax_Colon_0, "").length;
366+
var examplesLength = getDiagnosticText(Diagnostics.Examples_Colon_0, "").length;
367367
var marginLength = Math.max(syntaxLength, examplesLength);
368368

369369
// Build up the syntactic skeleton.

src/compiler/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,8 @@ module ts {
635635

636636
export interface SymbolAccessiblityResult {
637637
accessibility: SymbolAccessibility;
638-
errorSymbolName?: string // Optional symbol name that results in error
639-
errorModuleName?: string // If the symbol is not visibile from module, module's name
638+
errorSymbolName?: string; // Optional symbol name that results in error
639+
errorModuleName?: string; // If the symbol is not visibile from module, module's name
640640
}
641641

642642
export interface EmitResolver {

src/harness/compilerRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ class CompilerBaselineRunner extends RunnerBase {
365365
walker.results.forEach(result => {
366366
var formattedLine = result.identifierName + " : " + result.type;
367367
if (!typeMap[file.unitName]) {
368-
typeMap[file.unitName] = {}
368+
typeMap[file.unitName] = {};
369369
}
370370

371371
var typeInfo = [formattedLine];
@@ -386,7 +386,7 @@ class CompilerBaselineRunner extends RunnerBase {
386386
walker.results.forEach(result => {
387387
var formattedLine = result.identifierName + " : " + result.type;
388388
if (!typeMap[file.unitName]) {
389-
typeMap[file.unitName] = {}
389+
typeMap[file.unitName] = {};
390390
} else {
391391
typeLines.push('No type information for this code.');
392392
}

src/harness/exec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WindowsScriptHostExec implements IExec {
3232
var process = shell.Exec(fileName + ' ' + cmdLineArgs.join(' '));
3333
} catch(e) {
3434
result.stderr = e.message;
35-
result.exitCode = 1
35+
result.exitCode = 1;
3636
handleResult(result);
3737
return;
3838
}

src/harness/fourslash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ module FourSlash {
466466
this.assertItemInCompletionList(members.entries, symbol, type, docComment, fullSymbolName, kind);
467467
}
468468
else {
469-
throw new Error("Expected a member list, but none was provided")
469+
throw new Error("Expected a member list, but none was provided");
470470
}
471471
}
472472

@@ -2040,7 +2040,7 @@ module FourSlash {
20402040
globalOptions: opts,
20412041
files: files,
20422042
ranges: ranges
2043-
}
2043+
};
20442044
}
20452045

20462046
enum State {

src/harness/harness.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module Utils {
107107
} else {
108108
return cache[key] = f.apply(this, arguments);
109109
}
110-
})
110+
});
111111
}
112112
}
113113

@@ -555,7 +555,7 @@ module Harness {
555555
getCanonicalFileName: ts.getCanonicalFileName,
556556
useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames,
557557
getNewLine: ()=> sys.newLine
558-
}
558+
};
559559
}
560560

561561
export class HarnessCompiler {
@@ -1018,7 +1018,7 @@ module Harness {
10181018
}
10191019
}
10201020

1021-
var fileCache: { [idx: string]: boolean } = {}
1021+
var fileCache: { [idx: string]: boolean } = {};
10221022
function generateActual(actualFilename: string, generateContent: () => string): string {
10231023
// For now this is written using TypeScript, because sys is not available when running old test cases.
10241024
// But we need to move to sys once we have
@@ -1083,8 +1083,8 @@ module Harness {
10831083
var lineEndingSensitive = opts && opts.LineEndingSensitive;
10841084

10851085
if (!lineEndingSensitive) {
1086-
expected = expected.replace(/\r\n?/g, '\n')
1087-
actual = actual.replace(/\r\n?/g, '\n')
1086+
expected = expected.replace(/\r\n?/g, '\n');
1087+
actual = actual.replace(/\r\n?/g, '\n');
10881088
}
10891089

10901090
return { expected: expected, actual: actual };

src/harness/harnessLanguageService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module Harness.LanguageService {
9191
}
9292

9393
class CancellationToken {
94-
public static None: CancellationToken = new CancellationToken(null)
94+
public static None: CancellationToken = new CancellationToken(null);
9595

9696
constructor(private cancellationToken: ts.CancellationToken) {
9797
}
@@ -283,7 +283,7 @@ module Harness.LanguageService {
283283

284284
/** Parse a file on disk given its fileName */
285285
public parseFile(fileName: string) {
286-
var sourceText = TypeScript.ScriptSnapshot.fromString(Harness.IO.readFile(fileName))
286+
var sourceText = TypeScript.ScriptSnapshot.fromString(Harness.IO.readFile(fileName));
287287
return this.parseSourceText(fileName, sourceText);
288288
}
289289

src/harness/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var mytestconfig = 'mytest.config';
4141
var testconfig = 'test.config';
4242
var testConfigFile =
4343
Harness.IO.fileExists(mytestconfig) ? Harness.IO.readFile(mytestconfig) :
44-
(Harness.IO.fileExists(testconfig) ? Harness.IO.readFile(testconfig) : '')
44+
(Harness.IO.fileExists(testconfig) ? Harness.IO.readFile(testconfig) : '');
4545

4646
if (testConfigFile !== '') {
4747
// TODO: not sure why this is crashing mocha

src/services/braceMatcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module TypeScript.Services {
3636
if (start(currentToken) === position) {
3737
var closingBraceKind = BraceMatcher.getMatchingCloseBraceTokenKind(currentToken);
3838
if (closingBraceKind !== null) {
39-
var parentElement = currentToken.parent
39+
var parentElement = currentToken.parent;
4040
var currentPosition = fullStart(currentToken.parent);
4141
for (var i = 0, n = childCount(parentElement); i < n; i++) {
4242
var element = childAt(parentElement, i);
@@ -87,7 +87,7 @@ module TypeScript.Services {
8787
var element = positionedElement !== null && positionedElement;
8888
switch (element.kind()) {
8989
case TypeScript.SyntaxKind.OpenBraceToken:
90-
return TypeScript.SyntaxKind.CloseBraceToken
90+
return TypeScript.SyntaxKind.CloseBraceToken;
9191
case TypeScript.SyntaxKind.OpenParenToken:
9292
return TypeScript.SyntaxKind.CloseParenToken;
9393
case TypeScript.SyntaxKind.OpenBracketToken:

0 commit comments

Comments
 (0)