Merge pull request #1314 from Microsoft/crFeedback
Code review feedback.
This commit is contained in:
commit
22f9000de1
|
@ -1575,12 +1575,12 @@ module ts {
|
|||
}
|
||||
|
||||
// Container of resolvedExportSymbol is visible
|
||||
return forEach(resolvedExportSymbol.declarations, (declaration: Node) => {
|
||||
while (declaration) {
|
||||
if (declaration === node) {
|
||||
return forEach(resolvedExportSymbol.declarations, (current: Node) => {
|
||||
while (current) {
|
||||
if (current === node) {
|
||||
return true;
|
||||
}
|
||||
declaration = declaration.parent;
|
||||
current = current.parent;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -421,6 +421,7 @@ module ts {
|
|||
exprName: EntityName;
|
||||
}
|
||||
|
||||
// A TypeLiteral is the declaration node for an anonymous symbol.
|
||||
export interface TypeLiteralNode extends TypeNode, Declaration {
|
||||
members: NodeArray<Node>;
|
||||
}
|
||||
|
@ -547,7 +548,8 @@ module ts {
|
|||
export interface ArrayLiteralExpression extends PrimaryExpression {
|
||||
elements: NodeArray<Expression>;
|
||||
}
|
||||
|
||||
|
||||
// An ObjectLiteralExpression is the declaration node for an anonymous symbol.
|
||||
export interface ObjectLiteralExpression extends PrimaryExpression, Declaration {
|
||||
properties: NodeArray<Declaration>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue