Skip to content

NRefactoryJava

Mehdi Mohammadi edited this page Feb 19, 2014 · 2 revisions

We contributed back our changes to NRefactory to SharpDevelop project but they don't have interest to include them in original project. This page created because of requests to receive these changes. For detailed change list check NRefactoryChanges

Steps to include Java parser and other required stuff in NRefactory :

  1. Grab NRefactory sources: a. Revision 2622 of NRefactory b. EasyCodeDOM.cs from Sharpdevelop source code and put it in NRefactoryASTGenerator folder.

Note: Recent revisions of NRefactory (SharpDevelop) migrated to VS 2008 and C# 3.0.

  1. Include Janett changes to support Java (All required files as a package are downloadable from here.)

a. Apply NRefactory-Java.patch b. Apply ProjectFiles.patch c. Unpack NRefactory-Java.zip

  1. Now you can generate Java lexer and parser or use generated ones

a. Apply NRefactory-Java-Generated.patch b. Unpack NRefactory-Java-Generated.zip

if you want to generate them (because of your changes in source files) a. Open command prompt in Projectfolder and run "...pl" (you should install a Perl interpreter to do this step) b. Run Project.bat c. Set NRefactoryASTGenerator as startup project and Run it

  1. Ensure JavaOutputTest and JavaParserTests are passed

Clone this wiki locally