|
From: <caw...@us...> - 2007-02-07 18:18:13
|
Revision: 1937
http://svn.sourceforge.net/rubyeclipse/?rev=1937&view=rev
Author: cawilliams
Date: 2007-02-07 10:18:08 -0800 (Wed, 07 Feb 2007)
Log Message:
-----------
apply same fix for Modules as I just did for Classes
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java 2007-02-07 18:15:08 UTC (rev 1936)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java 2007-02-07 18:18:08 UTC (rev 1937)
@@ -1311,6 +1311,12 @@
handleNode(iVisited);
String name = getFullyQualifiedName(iVisited.getCPath());
RubyModule module = new RubyModule(modelStack.peek(), name);
+ RubyElement parent = modelStack.peek();
+ RubyType existing = (RubyType) findChild(parent, IRubyElement.TYPE, name);
+ if (existing != null) {
+ // FIXME Should we just increment the occurence count like I do here, or should we conglomerate the types into one LogicalType?
+ module.occurrenceCount = existing.occurrenceCount + 1;
+ }
modelStack.push(module);
RubyElementInfo parentInfo = infoStack.peek();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|