Skip to content

Commit af2e7d0

Browse files
committed
Merge branch 'formatTernary' of https://github.com/SaschaNaz/TypeScript; branch 'master' of https://github.com/Microsoft/TypeScript into formatTernary
2 parents 8391c9e + 88c6825 commit af2e7d0

File tree

472 files changed

+9542
-2161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

472 files changed

+9542
-2161
lines changed

Jakefile.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ var servicesSources = [
151151
"signatureHelp.ts",
152152
"symbolDisplay.ts",
153153
"transpile.ts",
154+
// Formatting
154155
"formatting/formatting.ts",
155156
"formatting/formattingContext.ts",
156157
"formatting/formattingRequestKind.ts",
@@ -166,7 +167,18 @@ var servicesSources = [
166167
"formatting/rulesMap.ts",
167168
"formatting/rulesProvider.ts",
168169
"formatting/smartIndenter.ts",
169-
"formatting/tokenRange.ts"
170+
"formatting/tokenRange.ts",
171+
// CodeFixes
172+
"codeFixProvider.ts",
173+
"codefixes/fixes.ts",
174+
"codefixes/fixExtendsInterfaceBecomesImplements.ts",
175+
"codefixes/fixClassIncorrectlyImplementsInterface.ts",
176+
"codefixes/fixClassDoesntImplementInheritedAbstractMember.ts",
177+
"codefixes/fixClassSuperMustPrecedeThisAccess.ts",
178+
"codefixes/fixConstructorForDerivedNeedSuperCall.ts",
179+
"codefixes/helpers.ts",
180+
"codefixes/importFixes.ts",
181+
"codefixes/unusedIdentifierFixes.ts"
170182
].map(function (f) {
171183
return path.join(servicesDirectory, f);
172184
}));
@@ -1179,7 +1191,6 @@ task("update-sublime", ["local", serverFile], function () {
11791191
var tslintRuleDir = "scripts/tslint";
11801192
var tslintRules = [
11811193
"nextLineRule",
1182-
"preferConstRule",
11831194
"booleanTriviaRule",
11841195
"typeOperatorSpacingRule",
11851196
"noInOperatorRule",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"through2": "latest",
7676
"travis-fold": "latest",
7777
"ts-node": "latest",
78-
"tslint": "4.0.0-dev.3",
78+
"tslint": "next",
7979
"typescript": "next"
8080
},
8181
"scripts": {

scripts/tslint/preferConstRule.ts

Lines changed: 0 additions & 204 deletions
This file was deleted.

src/compiler/binder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ namespace ts {
283283
// Parameters with names are handled at the top of this function. Parameters
284284
// without names can only come from JSDocFunctionTypes.
285285
Debug.assert(node.parent.kind === SyntaxKind.JSDocFunctionType);
286-
let functionType = <JSDocFunctionType>node.parent;
287-
let index = indexOf(functionType.parameters, node);
286+
const functionType = <JSDocFunctionType>node.parent;
287+
const index = indexOf(functionType.parameters, node);
288288
return "arg" + index;
289289
case SyntaxKind.JSDocTypedefTag:
290290
const parentNode = node.parent && node.parent.parent;
@@ -3133,6 +3133,7 @@ namespace ts {
31333133
case SyntaxKind.TaggedTemplateExpression:
31343134
case SyntaxKind.ShorthandPropertyAssignment:
31353135
case SyntaxKind.StaticKeyword:
3136+
case SyntaxKind.MetaProperty:
31363137
// These nodes are ES6 syntax.
31373138
transformFlags |= TransformFlags.AssertES2015;
31383139
break;

0 commit comments

Comments
 (0)