Code review feedback.
Explain how TypeLiterals and ObjectLiterals are declarations. Rename variable to be clearer.
This commit is contained in:
parent
4b6bb626f0
commit
0b8b90cdbc
|
@ -1575,12 +1575,12 @@ module ts {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Container of resolvedExportSymbol is visible
|
// Container of resolvedExportSymbol is visible
|
||||||
return forEach(resolvedExportSymbol.declarations, (declaration: Node) => {
|
return forEach(resolvedExportSymbol.declarations, (current: Node) => {
|
||||||
while (declaration) {
|
while (current) {
|
||||||
if (declaration === node) {
|
if (current === node) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
declaration = declaration.parent;
|
current = current.parent;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,6 +421,7 @@ module ts {
|
||||||
exprName: EntityName;
|
exprName: EntityName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A TypeLiteral is the declaration node for an anonymous symbol.
|
||||||
export interface TypeLiteralNode extends TypeNode, Declaration {
|
export interface TypeLiteralNode extends TypeNode, Declaration {
|
||||||
members: NodeArray<Node>;
|
members: NodeArray<Node>;
|
||||||
}
|
}
|
||||||
|
@ -548,6 +549,7 @@ module ts {
|
||||||
elements: NodeArray<Expression>;
|
elements: NodeArray<Expression>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// An ObjectLiteralExpression is the declaration node for an anonymous symbol.
|
||||||
export interface ObjectLiteralExpression extends PrimaryExpression, Declaration {
|
export interface ObjectLiteralExpression extends PrimaryExpression, Declaration {
|
||||||
properties: NodeArray<Declaration>;
|
properties: NodeArray<Declaration>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue