File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16851,18 +16851,18 @@ namespace ts {
1685116851 function checkFunctionExpressionOrObjectLiteralMethod(node: FunctionExpression | MethodDeclaration, checkMode?: CheckMode): Type {
1685216852 Debug.assert(node.kind !== SyntaxKind.MethodDeclaration || isObjectLiteralMethod(node));
1685316853
16854- // Grammar checking
16855- const hasGrammarError = checkGrammarFunctionLikeDeclaration(node);
16856- if (!hasGrammarError && node.kind === SyntaxKind.FunctionExpression) {
16857- checkGrammarForGenerator(node);
16858- }
16859-
1686016854 // The identityMapper object is used to indicate that function expressions are wildcards
1686116855 if (checkMode === CheckMode.SkipContextSensitive && isContextSensitive(node)) {
1686216856 checkNodeDeferred(node);
1686316857 return anyFunctionType;
1686416858 }
1686516859
16860+ // Grammar checking
16861+ const hasGrammarError = checkGrammarFunctionLikeDeclaration(node);
16862+ if (!hasGrammarError && node.kind === SyntaxKind.FunctionExpression) {
16863+ checkGrammarForGenerator(node);
16864+ }
16865+
1686616866 const links = getNodeLinks(node);
1686716867 const type = getTypeOfSymbol(node.symbol);
1686816868
You can’t perform that action at this time.
0 commit comments