From ffa48152eb8329202f604cc2d9c3c8e8da5faf08 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Fri, 14 Nov 2014 17:15:01 -0800 Subject: [PATCH] update comment. --- src/compiler/binder.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 37ac1dd9ef1..18fd8c711b8 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -306,13 +306,12 @@ module ts { } function bindFunctionOrConstructorType(node: SignatureDeclaration) { - // For a given function type "<...>(...) => T" we want to generate a type identical - // to: { <...>(...): T } + // For a given function symbol "<...>(...) => T" we want to generate a symbol identical + // to the one we would get for: { <...>(...): T } // - // We do that by making an anonymous type literal type, that points to an anonymous - // type literal symbol, and then setting the function symbol as its sole of the type - // literal symbol. To the rest of the system, this type will be indistinguishable - // from an actual type literal type you would have gotten had you used the long form. + // We do that by making an anonymous type literal symbol, and then setting the function + // symbol as its sole member. To the rest of the system, this symbol will be indistinguishable + // from an actual type literal symbol you would have gotten had you used the long form. var symbolKind = node.kind === SyntaxKind.FunctionType ? SymbolFlags.CallSignature : SymbolFlags.ConstructSignature; var symbol = createSymbol(symbolKind, getDeclarationName(node));