mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:01:48 -05:00
Added missing semicolons
This commit is contained in:
@@ -36,7 +36,7 @@ module TypeScript.Services {
|
||||
if (start(currentToken) === position) {
|
||||
var closingBraceKind = BraceMatcher.getMatchingCloseBraceTokenKind(currentToken);
|
||||
if (closingBraceKind !== null) {
|
||||
var parentElement = currentToken.parent
|
||||
var parentElement = currentToken.parent;
|
||||
var currentPosition = fullStart(currentToken.parent);
|
||||
for (var i = 0, n = childCount(parentElement); i < n; i++) {
|
||||
var element = childAt(parentElement, i);
|
||||
@@ -87,7 +87,7 @@ module TypeScript.Services {
|
||||
var element = positionedElement !== null && positionedElement;
|
||||
switch (element.kind()) {
|
||||
case TypeScript.SyntaxKind.OpenBraceToken:
|
||||
return TypeScript.SyntaxKind.CloseBraceToken
|
||||
return TypeScript.SyntaxKind.CloseBraceToken;
|
||||
case TypeScript.SyntaxKind.OpenParenToken:
|
||||
return TypeScript.SyntaxKind.CloseParenToken;
|
||||
case TypeScript.SyntaxKind.OpenBracketToken:
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
///<reference path='references.ts' />
|
||||
|
||||
module TypeScript {
|
||||
var proto = "__proto__"
|
||||
var proto = "__proto__";
|
||||
|
||||
class BlockIntrinsics<T> {
|
||||
public prototype: T = undefined;
|
||||
|
||||
@@ -155,7 +155,7 @@ module TypeScript {
|
||||
|
||||
config.name = name;
|
||||
config.short = short;
|
||||
config.flag = true
|
||||
config.flag = true;
|
||||
|
||||
this.options.push(config);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ module TypeScript {
|
||||
var noDefaultLib = false;
|
||||
var diagnostics: Diagnostic[] = [];
|
||||
var referencedFiles: IFileReference[] = [];
|
||||
var lineMap = text.lineMap()
|
||||
var lineMap = text.lineMap();
|
||||
|
||||
for (var i = 0, n = leadingTrivia.count(); i < n; i++) {
|
||||
var trivia = leadingTrivia.syntaxTriviaAt(i);
|
||||
|
||||
@@ -94,9 +94,9 @@ module TypeScript {
|
||||
var expectedAst = this.mappingLevel.pop();
|
||||
if (ast !== expectedAst) {
|
||||
var expectedAstInfo: any = (<any>expectedAst).kind ? SyntaxKind[(<any>expectedAst).kind] : [expectedAst.start(), expectedAst.end()];
|
||||
var astInfo: any = (<any>ast).kind ? SyntaxKind[(<any>ast).kind] : [ast.start(), ast.end()]
|
||||
var astInfo: any = (<any>ast).kind ? SyntaxKind[(<any>ast).kind] : [ast.start(), ast.end()];
|
||||
Debug.fail(
|
||||
"Provided ast is not the expected ISyntaxElement, Expected: " + expectedAstInfo + " Given: " + astInfo)
|
||||
"Provided ast is not the expected ISyntaxElement, Expected: " + expectedAstInfo + " Given: " + astInfo);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ module TypeScript {
|
||||
|
||||
export class CancellationToken {
|
||||
|
||||
public static None: CancellationToken = new CancellationToken(null)
|
||||
public static None: CancellationToken = new CancellationToken(null);
|
||||
|
||||
constructor(private cancellationToken: ICancellationToken) {
|
||||
}
|
||||
@@ -237,7 +237,7 @@ module TypeScript {
|
||||
};
|
||||
});
|
||||
documents.sort((x, y) => y.refCount - x.refCount);
|
||||
return { bucket: name, documents: documents }
|
||||
return { bucket: name, documents: documents };
|
||||
});
|
||||
return JSON.stringify(bucketInfoArray, null, 2);
|
||||
}
|
||||
@@ -705,7 +705,7 @@ module TypeScript {
|
||||
//
|
||||
|
||||
public getSyntacticDiagnostics(fileName: string): Diagnostic[] {
|
||||
fileName = TypeScript.switchToForwardSlashes(fileName)
|
||||
fileName = TypeScript.switchToForwardSlashes(fileName);
|
||||
return this.getDocument(fileName).diagnostics();
|
||||
}
|
||||
|
||||
@@ -724,7 +724,7 @@ module TypeScript {
|
||||
var document = this.getDocument(fileName);
|
||||
|
||||
var startTime = (new Date()).getTime();
|
||||
PullTypeResolver.typeCheck(this.compilationSettings(), this.semanticInfoChain, document)
|
||||
PullTypeResolver.typeCheck(this.compilationSettings(), this.semanticInfoChain, document);
|
||||
var endTime = (new Date()).getTime();
|
||||
|
||||
typeCheckTime += endTime - startTime;
|
||||
@@ -1464,7 +1464,7 @@ module TypeScript {
|
||||
// shared emitter (and we'll take care of it after all the files are done.
|
||||
this._sharedEmitter = this.compiler._emitDocument(
|
||||
document, this._emitOptions,
|
||||
outputFiles => { this._current = CompileResult.fromOutputFiles(outputFiles) },
|
||||
outputFiles => { this._current = CompileResult.fromOutputFiles(outputFiles); },
|
||||
this._sharedEmitter);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ module TypeScript.Services {
|
||||
var secondSymbolDecl = secondSymbol.getDeclarations()[0];
|
||||
|
||||
var firstParentDecl = firstSymbolDecl.getParentDecl();
|
||||
var secondParentDecl = secondSymbolDecl.getParentDecl()
|
||||
var secondParentDecl = secondSymbolDecl.getParentDecl();
|
||||
|
||||
if (firstParentDecl.kind === TypeScript.PullElementKind.ObjectLiteral &&
|
||||
secondParentDecl.kind === TypeScript.PullElementKind.ObjectLiteral) {
|
||||
|
||||
@@ -22,7 +22,7 @@ module TypeScript.Services.Formatting {
|
||||
constructor(private syntaxTree: SyntaxTree, private snapshot: ITextSnapshot, private rulesProvider: RulesProvider, editorOptions: ts.EditorOptions) {
|
||||
//
|
||||
// TODO: convert to use FormattingOptions instead of EditorOptions
|
||||
this.options = new FormattingOptions(!editorOptions.ConvertTabsToSpaces, editorOptions.TabSize, editorOptions.IndentSize, editorOptions.NewLineCharacter)
|
||||
this.options = new FormattingOptions(!editorOptions.ConvertTabsToSpaces, editorOptions.TabSize, editorOptions.IndentSize, editorOptions.NewLineCharacter);
|
||||
}
|
||||
|
||||
public formatSelection(minChar: number, limChar: number): ts.TextEdit[] {
|
||||
|
||||
@@ -26,7 +26,7 @@ module TypeScript.Services.Formatting {
|
||||
}
|
||||
|
||||
static create1(left: SyntaxKind, right: SyntaxKind): RuleDescriptor {
|
||||
return RuleDescriptor.create4(Shared.TokenRange.FromToken(left), Shared.TokenRange.FromToken(right))
|
||||
return RuleDescriptor.create4(Shared.TokenRange.FromToken(left), Shared.TokenRange.FromToken(right));
|
||||
}
|
||||
|
||||
static create2(left: Shared.TokenRange, right: SyntaxKind): RuleDescriptor {
|
||||
|
||||
Reference in New Issue
Block a user