SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

NRefactory

Last post 04-23-2008 2:29 PM by DanielGrunwald. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-23-2008 10:17 AM

    NRefactory

    Hi there, 

     Re: NRefactory


    I wish to create a command line util that will parse a file and, when given a line and column number, output a list of suitable autocompletion/intellisense statements for that point. I wish to use this to give my text editor (the 'e' editor) the ability to display intellisense when I press a combination.

    Is NRefactory the most suitable library for this?

    Also: What is the current status of NRefactory e.g does it cover the whole of C# 2.0. Does it cover C# 3.0?

    Is there any difference in the functionality of NRefactory in SharpDevelop and monoDevelop? 

    Thanks for your attention and for any help you may be able to provide.

    Regards

    Graham Peden

    Filed under:
  • 04-23-2008 12:42 PM In reply to

    Re: NRefactory

    NRefactory in SharpDevelop 2.2.1 covers whole C# 2.0, in SharpDevelop 3.0 it covers C# 3.0.

    MonoDevelop uses a modified version of SharpDevelop (they're fixing bugs on their own instead of coordinating with us), no difference in the functionality.

    NRefactory is just a C# parser; for code completion, you also need a type system. In SharpDevelop, this is available in ICSharpCode.SharpDevelop.Dom. The source code download of SharpDevelop contains a project "samples/CSharpCodeCompletion" that demonstrates how to use ICSharpCode.SharpDevelop.Dom (the sample also uses ICSharpCode.TextEditor, but ICSharpCode.SharpDevelop.Dom is independent of the text editor used).

    I don't if the type system in MonoDevelop is available in a separate library or if it's tied to the IDE and its project system.

    Daniel Grunwald
  • 04-23-2008 1:01 PM In reply to

    Re: NRefactory

    Many thanks Daniel.

    Can you comment on how useable/stable the parser and Dom code in  v3.0 is at present?

    Is the a target date for release? 

    Thanks again.

    Graham 

      

    Filed under:
  • 04-23-2008 2:29 PM In reply to

    Re: NRefactory

    I'm not aware of any problems that cause crashes/exceptions, but there are some cases where code completion returns no or incorrect results. Take a look at the categories "Lexer/Parser" and "Dom/Resolver" in our bugtracker: http://bugtracker.sharpdevelop.net/

    There is no target date for release.

    Daniel Grunwald
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.