This commit is contained in:
ANIL KOYUNCU
2020-05-25 09:40:54 +02:00
parent e25310a882
commit 8a376e4f6b
19 changed files with 1305 additions and 2080 deletions
@@ -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");