提交 0348f1d8 编写于 作者: L Lavanya

Removed helper method which wasn't used

上级 d7d2bd71
......@@ -110,15 +110,6 @@ static ImmutableArray<IParameterSymbol> CreateParameterSymbol(ImmutableArray<ISy
}
//Helper method to get all the variables captured inside the local function
internal bool TryGetCapturesAsync(SemanticModel semanticModel, LocalFunctionStatementSyntax localfunction, out ImmutableArray<ISymbol> captures)
{
var dataFlow = semanticModel.AnalyzeDataFlow(localfunction);
captures = dataFlow.CapturedInside;
return dataFlow.Succeeded && captures.Length == 0;
}
internal SyntaxNode GenerateArgument(IParameterSymbol p, string name, bool shouldUseNamedArguments = false)
=> s_generator.Argument(shouldUseNamedArguments ? name : null, p.RefKind, name.ToIdentifierName());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册