@@ -5045,7 +5045,7 @@ module ts {
50455045 function isInsideFunction(node: Node, threshold: Node): boolean {
50465046 var current = node;
50475047 while (current && current !== threshold) {
5048- if (isAnyFunction (current)) {
5048+ if (isFunctionLike (current)) {
50495049 return true;
50505050 }
50515051 current = current.parent;
@@ -8550,7 +8550,7 @@ module ts {
85508550 // if block scoped variable is defined in the function\module\source file scope (because of variable hoisting)
85518551 var namesShareScope =
85528552 container &&
8553- (container.kind === SyntaxKind.Block && isAnyFunction (container.parent) ||
8553+ (container.kind === SyntaxKind.Block && isFunctionLike (container.parent) ||
85548554 (container.kind === SyntaxKind.ModuleBlock && container.kind === SyntaxKind.ModuleDeclaration) ||
85558555 container.kind === SyntaxKind.SourceFile);
85568556
@@ -9065,7 +9065,7 @@ module ts {
90659065 if (!checkGrammarStatementInAmbientContext(node)) {
90669066 var current = node.parent;
90679067 while (current) {
9068- if (isAnyFunction (current)) {
9068+ if (isFunctionLike (current)) {
90699069 break;
90709070 }
90719071 if (current.kind === SyntaxKind.LabeledStatement && (<LabeledStatement>current).label.text === node.label.text) {
@@ -11623,7 +11623,7 @@ module ts {
1162311623 function checkGrammarBreakOrContinueStatement(node: BreakOrContinueStatement): boolean {
1162411624 var current: Node = node;
1162511625 while (current) {
11626- if (isAnyFunction (current)) {
11626+ if (isFunctionLike (current)) {
1162711627 return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary);
1162811628 }
1162911629
@@ -11954,7 +11954,7 @@ module ts {
1195411954
1195511955 // Find containing block which is either Block, ModuleBlock, SourceFile
1195611956 var links = getNodeLinks(node);
11957- if (!links.hasReportedStatementInAmbientContext && isAnyFunction (node.parent)) {
11957+ if (!links.hasReportedStatementInAmbientContext && isFunctionLike (node.parent)) {
1195811958 return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)
1195911959 }
1196011960
0 commit comments