Add support for parsing C# scripts #194
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#194
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?
When using NRefactory for code completion with C# scripts (.csx) I have to surround the script code with a class and method declaration. I could really need this for my C# scripting project: https://github.com/ArnovaAssetManagement/CShell
A script like this:
has to be surrounded like this and then parsed in NRefactory
This works okey for now, but I cant really support real Roslyn style scripts like this:
Any feedback on this? If this is not added as a feature, how would you recommend constructing the document that is used finally for code completion?
#rcan be my problem to preprocess them.How do I get best from a script containing this:
To a document that has been automatically "refactored" to look like this:
I can take care of course that the right dlls are referenced in the workspace and that the caretOffset is tracked right. But what would be the best strategy to get to such a document for code completion?
I switch NRefactory to roslyn recently - in the roslyn branch:
https://github.com/icsharpcode/NRefactory/tree/roslyn
And the completion APIs should be easier to use as well.
With the split of the roslyn NRefactory into RefactoringEssentials, where does that leave code completions stuff that is based on Roslyn?