Resolving members with CSHarpTypeResolveContext #507
Labels
No labels
Bug
Feature Request
NR6Pack
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-icsharpcode/NRefactory#507
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
We are using NRefactory for c# code completion and most times it works great :) Recently we found a problem which we think is caused by not finding the correct
CSHarpTypeResolveContext. For a given code snippet and a given cursorPosition we calculate theCSHarpTypeResolveContextas follows (this is a simplified version of our production code):We think, the code above should satisfy the following four test cases. But for code snippet
CodeBwe can not determine the correct context.The problem with CodeB is, that we can not find a member:
Is this actually a bug or are we doing something wrong?
Thanks for your help!