未验证 提交 f212118e 编写于 作者: H Heejae Chang 提交者: GitHub

Variable misuse ML model found a bug where wrong variable is used to … (#23437)

* Variable misuse ML model found a bug where wrong variable is used to call a method.

* more variable misusage cases
上级 76922697
......@@ -362,7 +362,7 @@ private string GetTestOutputFilePath(string filepath)
try
{
outputFilePath = Path.GetDirectoryName(_filePath);
outputFilePath = Path.GetDirectoryName(filepath);
}
catch (ArgumentException)
{
......
......@@ -162,7 +162,7 @@ protected LinePosition GetTrackingLineColumn(Workspace workspace, DocumentId doc
}
var currentSnapshot = textBuffer.CurrentSnapshot;
return GetLinePosition(snapshot, trackingPoint);
return GetLinePosition(currentSnapshot, trackingPoint);
}
private LinePosition GetLinePosition(ITextSnapshot snapshot, ITrackingPoint trackingPoint)
......
......@@ -87,8 +87,6 @@ internal static partial class ISymbolExtensions
Contract.Requires(within is INamedTypeSymbol || within is IAssemblySymbol);
failedThroughTypeCheck = false;
var withinAssembly = (within as IAssemblySymbol) ?? ((INamedTypeSymbol)within).ContainingAssembly;
switch (symbol.Kind)
{
case SymbolKind.Alias:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册