8000 Local types by ahejlsberg · Pull Request #3266 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content

Local types #3266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
May 31, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removing unnecessary logic
  • Loading branch information
ahejlsberg committed May 30, 2015
commit db30e5745bf92e42fb04d2175b0d644a5bb0acc3
9 changes: 1 addition & 8 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,6 @@ module ts {
let i = 0;
if (outerTypeParameters) {
let length = outerTypeParameters.length;
let group = 0;
while (i < length) {
// Find group of type arguments for type parameters with the same declaring container.
let start = i;
Expand All @@ -1572,16 +1571,10 @@ module ts {
// When type parameters are their own type arguments for the whole group (i.e. we have
// the default outer type arguments), we don't show the group.
if (!rangeEquals(outerTypeParameters, typeArguments, start, i)) {
if (group) {
writePunctuation(writer, SyntaxKind.DotToken);
}
writeSymbolTypeReference(parent, typeArguments, start, i);
group++;
writePunctuation(writer, SyntaxKind.DotToken);
}
}
if (group) {
writePunctuation(writer, SyntaxKind.DotToken);
}
}
writeSymbolTypeReference(type.symbol, typeArguments, i, typeArguments.length);
}
Expand Down
0