提交 967dfe46 编写于 作者: C CyrusNajmabadi

REmove commented out code.

上级 d3936957
......@@ -147,29 +147,6 @@ private ISymbol GetEnclosingSymbol(SemanticModel semanticModel, int position, Ca
c => ReplaceTextAsync(context.Document, expandedSpan, replacement, c)));
}
//private bool TryMatchTextAsSymbol(
// CodeRefactoringContext context, TextSpan expandedSpan,
// string text, SemanticModel semanticModel,
// int speculativePosition, SpeculativeBindingOption binding)
//{
// var parsed = ParseExpression(text);
// var symbolInfo = semanticModel.GetSpeculativeSymbolInfo(speculativePosition, parsed, binding);
// switch (symbolInfo.GetAnySymbol())
// {
// case IParameterSymbol parameter:
// return true;
// case ITypeParameterSymbol typeParameter:
// return true;
// case ISymbol symbol:
// RegisterRefactoring(context, expandedSpan, $@"<see cref=""{text}""/>");
// return true;
// default:
// return false;
// }
//}
private async Task<Document> ReplaceTextAsync(
Document document, TextSpan span, string replacement, CancellationToken cancellationToken)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册