Changeset 10
- Timestamp:
- 06/21/10 17:35:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t3d/src/org/etsi/t3d/DependencyPrinter.java
r9 r10 134 134 LocationAST typeNode = LocationAST.getModuleDefinitionTypeNode(node); 135 135 //TODO: refine further 136 String option = ""; 137 if (identifiersList.size() > 1) { 138 option = " conflicted=\"true\""; 139 //TODO: use proper logging interface 140 System.out.println(currentTTCN3File.substring(currentTTCN3File.lastIndexOf("/") + 1)+": "+node.getLine()+": WARNING: Multiple identifiers declared in a single module defintion!"); 141 } 142 LocationAST nextModuleDefinitionNode = node.getNextSibling(); 143 while (nextModuleDefinitionNode!=null && nextModuleDefinitionNode.getType()==TTCN3ParserTokenTypes.SemiColon){ 144 nextModuleDefinitionNode = nextModuleDefinitionNode.getNextSibling(); 145 } 146 if (nextModuleDefinitionNode!=null && node.getLine()==nextModuleDefinitionNode.getLine()){ 147 option = " conflicted=\"true\""; 148 //TODO: use proper logging interface 149 System.out.println(currentTTCN3File.substring(currentTTCN3File.lastIndexOf("/") + 1)+": "+node.getLine()+": WARNING: Multiple module definitions on the same line"); 150 } 136 151 for (LocationAST identifierNode : identifiersList) { 137 152 writeStream("\n\t<element id=\"" … … 141 156 + "\" type=\"" 142 157 + LocationAST.getTTCN3ParserTokenTypeTypePrettyName(typeNode.getType()) 143 + "\" line=\"" 144 + identifierNode.getLine() 158 + "\" startline=\"" 159 + node.getLine() 160 + "\" endline=\"" 161 + node.getEndLine() 145 162 + "\" module=\"" 146 163 + VisitorCommonFunctions.getModuleName(identifierNode) 147 164 + "\" file=\"" 148 165 + currentTTCN3File.substring(currentTTCN3File.lastIndexOf("/") + 1) 149 + "\">"); 166 + "\"" 167 + option 168 + ">"); 150 169 151 170 if (typeNode.getType()==TTCN3ParserTokenTypes.GroupDef) {
Note: See TracChangeset
for help on using the changeset viewer.