@@ -7243,7 +7243,7 @@ module ts {
7243
7243
}
7244
7244
7245
7245
function checkPropertyAssignment(node: PropertyAssignment, contextualMapper?: TypeMapper): Type {
7246
- if (hasDynamicName( node) ) {
7246
+ if (node.name.kind === SyntaxKind.ComputedPropertyName ) {
7247
7247
checkComputedPropertyName(<ComputedPropertyName>node.name);
7248
7248
}
7249
7249
@@ -7254,7 +7254,7 @@ module ts {
7254
7254
// Grammar checking
7255
7255
checkGrammarMethod(node);
7256
7256
7257
- if (hasDynamicName( node) ) {
7257
+ if (node.name.kind === SyntaxKind.ComputedPropertyName ) {
7258
7258
checkComputedPropertyName(<ComputedPropertyName>node.name);
7259
7259
}
7260
7260
@@ -8066,12 +8066,13 @@ module ts {
8066
8066
function checkFunctionLikeDeclaration(node: FunctionLikeDeclaration): void {
8067
8067
checkSignatureDeclaration(node);
8068
8068
8069
- if (hasDynamicName( node) ) {
8069
+ if (node.name.kind === SyntaxKind.ComputedPropertyName ) {
8070
8070
// This check will account for methods in class/interface declarations,
8071
8071
// as well as accessors in classes/object literals
8072
8072
checkComputedPropertyName(<ComputedPropertyName>node.name);
8073
8073
}
8074
- else {
8074
+
8075
+ if (!hasDynamicName(node)) {
8075
8076
// first we want to check the local symbol that contain this declaration
8076
8077
// - if node.localSymbol !== undefined - this is current declaration is exported and localSymbol points to the local symbol
8077
8078
// - if node.localSymbol === undefined - this node is non-exported so we can just pick the result of getSymbolOfNode
@@ -8300,12 +8301,11 @@ module ts {
8300
8301
function checkVariableLikeDeclaration(node: VariableLikeDeclaration) {
8301
8302
checkSourceElement(node.type);
8302
8303
// For a computed property, just check the initializer and exit
8303
- if (hasDynamicName( node) ) {
8304
+ if (node.name.kind === SyntaxKind.ComputedPropertyName ) {
8304
8305
checkComputedPropertyName(<ComputedPropertyName>node.name);
8305
8306
if (node.initializer) {
8306
8307
checkExpressionCached(node.initializer);
8307
8308
}
8308
- return;
8309
8309
}
8310
8310
// For a binding pattern, check contained binding elements
8311
8311
if (isBindingPattern(node.name)) {
0 commit comments