mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
cleaner hasNonAmbientClass
This commit is contained in:
@@ -139,11 +139,9 @@ module ts {
|
||||
* Checks if the symbol contains a class declaration that is non-ambient.
|
||||
*/
|
||||
function hasNonAmbientClass(symbol: Symbol): boolean {
|
||||
if (symbol) {
|
||||
return forEach(symbol.declarations, (element: Declaration) => {
|
||||
return element.kind === SyntaxKind.ClassDeclaration && !(element.flags & NodeFlags.Ambient);
|
||||
});
|
||||
}
|
||||
return symbol && forEach(symbol.declarations, (element: Declaration) => {
|
||||
return element.kind === SyntaxKind.ClassDeclaration && !(element.flags & NodeFlags.Ambient);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user