changes
This commit is contained in:
+2
-1
@@ -113,12 +113,13 @@ public abstract class AbstractSrcmlTreeGenerator extends TreeGenerator {
|
||||
typeLabel = prefix + ":"+typeLabel;
|
||||
}
|
||||
|
||||
if(typeLabel.equals("literal")){
|
||||
if(typeLabel.equals("literal") || typeLabel.equals("if")){
|
||||
if(s.getAttributeByName(COMMENT_BLOCK) != null){
|
||||
String value = s.getAttributeByName(COMMENT_BLOCK).getValue();
|
||||
typeLabel = typeLabel + ":"+value;
|
||||
}
|
||||
}
|
||||
|
||||
List<Integer> keysByValue = getKeysByValue(NodeMap_new.map, typeLabel);
|
||||
if(keysByValue == null || keysByValue.size() ==0){
|
||||
System.out.println(typeLabel);
|
||||
|
||||
@@ -421,6 +421,9 @@ public class NodeMap_new {
|
||||
StatementMap.put( 39 , "goto");
|
||||
StatementMap.put( 40 , "label");
|
||||
|
||||
StatementMap.put( 43 , "macro");
|
||||
StatementMap.put( 55 , "switch");
|
||||
|
||||
StatementMap.put( 81 , "struct");
|
||||
StatementMap.put( 82 , "struct_decl");
|
||||
StatementMap.put( 83 , "union");
|
||||
|
||||
Reference in New Issue
Block a user