Browse Source

[Completion] Added pointer reference completion.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
8a80ae0375
  1. 1044
      ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs
  2. 30
      ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs

1044
ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs

File diff suppressed because it is too large Load Diff

30
ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs

@ -5295,6 +5295,36 @@ static class Ext @@ -5295,6 +5295,36 @@ static class Ext
Assert.IsNull(provider.Find("this"), "'this' found.");
});
}
/// <summary>
/// Bug 5404 - Completion and highlighting for pointers
/// </summary>
[Test()]
public void TestBug5404()
{
CombinedProviderTest(
@"using System;
namespace TestConsole
{
unsafe class MainClass
{
public int i = 5, j =19;
public static void Main (string[] args)
{
MainClass* mc;
$mc->$
}
}
}
", provider => {
Assert.IsNotNull(provider.Find("i"), "'i' not found.");
});
}
}
}

Loading…
Cancel
Save