More CR feedback.

This commit is contained in:
Cyrus Najmabadi committed 2014-12-03 15:36:39 -08:00
1 parent 22d7aed980
commit 158cf62206
4 files changed
+3 -8

No files matched your search

+2 -2
View File
@@ -471,11 +471,11 @@ module ts {
}
export function isFunctionBlock(node: Node) {
return node && node.kind === SyntaxKind.Block && isAnyFunction(node.parent);
return node !== undefined && node.kind === SyntaxKind.Block && isAnyFunction(node.parent);
}
export function isObjectLiteralMethod(node: Node) {
return node && node.kind === SyntaxKind.Method && node.parent.kind === SyntaxKind.ObjectLiteralExpression;
return node !== undefined && node.kind === SyntaxKind.Method && node.parent.kind === SyntaxKind.ObjectLiteralExpression;
}
export function getContainingFunction(node: Node): FunctionLikeDeclaration {