Browse Source

Removed autocomplete invoke info inside valueless lambda body

Brian Fiete 3 years ago
parent
commit
a82130352a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 3 - 1
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -13377,7 +13377,9 @@ BfLambdaInstance* BfExprEvaluator::GetLambdaInstance(BfLambdaBindExpression* lam
 	if ((autoComplete != NULL) && (invokeMethodInstance != NULL))
 	if ((autoComplete != NULL) && (invokeMethodInstance != NULL))
 	{
 	{
 		wasCapturingMethodInfo = autoComplete->mIsCapturingMethodMatchInfo;
 		wasCapturingMethodInfo = autoComplete->mIsCapturingMethodMatchInfo;
-		autoComplete->CheckInvocation(lambdaBindExpr, lambdaBindExpr->mOpenParen, lambdaBindExpr->mCloseParen, lambdaBindExpr->mCommas);
+
+		if (autoComplete->IsAutocompleteNode(lambdaBindExpr, lambdaBindExpr->mFatArrowToken))
+			autoComplete->CheckInvocation(lambdaBindExpr, lambdaBindExpr->mOpenParen, lambdaBindExpr->mCloseParen, lambdaBindExpr->mCommas);
 
 
 		if (autoComplete->mIsCapturingMethodMatchInfo)
 		if (autoComplete->mIsCapturingMethodMatchInfo)
 		{			
 		{