Add more isDefinition tests and fix computed property bug

This commit is contained in:
Nathan Shively-Sanders
2016-06-14 09:39:30 -07:00
parent 792b23edc2
commit 7bf40c4935
6 changed files with 45 additions and 1 deletions

View File

@@ -6741,7 +6741,7 @@ namespace ts {
fileName: node.getSourceFile().fileName,
textSpan: createTextSpanFromBounds(start, end),
isWriteAccess: isWriteAccess(node),
isDefinition: isDeclarationName(node)
isDefinition: isDeclarationName(node) || node.parent.kind === SyntaxKind.ComputedPropertyName
};
}