|
From: <tc...@us...> - 2007-04-26 11:22:29
|
Revision: 2371
http://svn.sourceforge.net/rubyeclipse/?rev=2371&view=rev
Author: tcorbat
Date: 2007-04-26 04:22:23 -0700 (Thu, 26 Apr 2007)
Log Message:
-----------
Comment handling not yet supportet by JRuby, uncommented the responsible parts.
Modified Paths:
--------------
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeProvider.java
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeProvider.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeProvider.java 2007-04-26 11:07:41 UTC (rev 2370)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeProvider.java 2007-04-26 11:22:23 UTC (rev 2371)
@@ -67,7 +67,7 @@
import org.jruby.parser.RubyParserConfiguration;
import org.jruby.parser.RubyParserPool;
import org.jruby.parser.RubyParserResult;
-import org.jruby.parser.postprocessor.DefaultCommentPlacer;
+//import org.jruby.parser.postprocessor.DefaultCommentPlacer;
import org.rubypeople.rdt.refactoring.nodewrapper.AttrAccessorNodeWrapper;
import org.rubypeople.rdt.refactoring.nodewrapper.FieldNodeWrapper;
import org.rubypeople.rdt.refactoring.nodewrapper.MethodCallNodeWrapper;
@@ -106,7 +106,7 @@
parser.setWarnings(new NullWarnings());
LexerSource lexerSource = new LexerSource(fileName, reader);
RubyParserConfiguration parserConfig = new RubyParserConfiguration();
- parserConfig.addPostProcessor(new DefaultCommentPlacer());
+// parserConfig.addPostProcessor(new DefaultCommentPlacer());
RubyParserResult result = parser.parse(parserConfig, lexerSource);
return (RootNode) result.getAST();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|