respond to comment

This commit is contained in:
Arthur Ozga 2017-06-01 16:41:46 -07:00
parent 2fb9ab798c
commit 40f22ec6e2
2 changed files with 4 additions and 4 deletions

View File

@ -681,6 +681,10 @@ namespace ts {
return nodeLinks[nodeId] || (nodeLinks[nodeId] = { flags: 0 });
}
function getObjectFlags(type: Type): ObjectFlags {
return type.flags & TypeFlags.Object ? (<ObjectType>type).objectFlags : 0;
}
function isGlobalSourceFile(node: Node) {
return node.kind === SyntaxKind.SourceFile && !isExternalOrCommonJsModule(<SourceFile>node);
}

View File

@ -733,10 +733,6 @@ namespace ts {
return false;
}
export function getObjectFlags(type: Type): ObjectFlags {
return type.flags & TypeFlags.Object ? (<ObjectType>type).objectFlags : 0;
}
export function isChildOfNodeWithKind(node: Node, kind: SyntaxKind): boolean {
while (node) {
if (node.kind === kind) {