- Timestamp:
- 06/08/10 12:50:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t3d/src/org/etsi/t3d/visitor/VisitorCommonFunctions.java
r7 r8 1 1 package org.etsi.t3d.visitor; 2 2 3 import java.util.ArrayList; 4 import java.util.Iterator; 3 import java.util.Collection; 5 4 import java.util.LinkedList; 6 5 import java.util.List; … … 17 16 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.LocationAST; 18 17 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.TTCN3FormatterTreeParser; 19 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.TTCN3Lexer;20 18 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.TTCN3ParserTokenTypes; 21 19 import de.ugoe.cs.swe.trex.core.analyzer.rfparser.symboltable.Scope; … … 149 147 Map<String, List<ReferenceWithContext>> result = referenceFinder.findReferences(symb); 150 148 151 Iterator<List<ReferenceWithContext>> refIt = result.values().iterator(); 152 if(refIt != null) 153 while(refIt.hasNext()){ 154 155 ArrayList<ReferenceWithContext> refList = (ArrayList<ReferenceWithContext>)refIt.next(); 156 for(ReferenceWithContext ref : refList){ 157 linkedRefList.add(ref.getReferenceNode()); 158 } 149 Collection<List<ReferenceWithContext>> values = result.values(); 150 151 for (List<ReferenceWithContext> referenceList : values) { 152 for (ReferenceWithContext reference : referenceList) { 153 linkedRefList.add(reference.getReferenceNode()); 159 154 } 160 if(linkedRefList.isEmpty()) 161 return null; 155 } 156 if (linkedRefList.isEmpty()) { 157 return null; 158 } 162 159 return linkedRefList; 163 160 } 164 165 161 166 162 //returns the location of an html file that would represent node 167 163 public static String getLocationFromIdentifier(LocationAST node){
Note: See TracChangeset
for help on using the changeset viewer.