Skip to content
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
Update function name
  • Loading branch information
Kanchalai Tanglertsampan committed May 11, 2016
commit 0660d5ac7b5972f44a65912d84bcdee384580bae
6 changes: 3 additions & 3 deletions src/compiler/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
return false;
}

function nameOfClassExpressionInPropertyAccessInStaticPropertyDeclaration(node: Identifier) {
function getClassExpressionInPropertyAccessInStaticPropertyDeclaration(node: Identifier) {
if (languageVersion >= ScriptTarget.ES6) {
let parent = node.parent;
if (parent.kind === SyntaxKind.PropertyAccessExpression && (<PropertyAccessExpression>parent).expression === node) {
Expand Down Expand Up @@ -1700,10 +1700,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
write(node.text);
}
else if (isExpressionIdentifier(node)) {
const classExpression = nameOfClassExpressionInPropertyAccessInStaticPropertyDeclaration(node);
const classExpression = getClassExpressionInPropertyAccessInStaticPropertyDeclaration(node);
if (classExpression) {
const declaration = resolver.getReferencedValueDeclaration(node);
if (declaration == classExpression) {
if (declaration === classExpression) {
write(getGeneratedNameForNode(declaration.name));
return;
}
Expand Down