changes
This commit is contained in:
+1
@@ -177,6 +177,7 @@ public abstract class AbstractSrcmlTreeGenerator extends TreeGenerator {
|
||||
private void fixPos(TreeContext ctx) {
|
||||
for (ITree t : ctx.getRoot().postOrder()) {
|
||||
if (!t.isLeaf()) {
|
||||
if(t.getType() == 0) continue;
|
||||
//put the keywords as labels
|
||||
// if(t.getType() == 34 || t.getType() ==37 || t.getType() ==38 || t.getType()==39 || t.getType() == 41 || t.getType()==45 || t.getType() ==55 || t.getType()==14){
|
||||
// t.setLabel(NodeMap_new.map.get(t.getType())+" " +t.getLabel());
|
||||
|
||||
@@ -200,6 +200,7 @@ public class NodeMap_new {
|
||||
map.put( 197 , "message");
|
||||
map.put( 199 , "protocol_list");
|
||||
map.put( 200 , "category");
|
||||
map.put( 201 , "clause");
|
||||
|
||||
//
|
||||
// map.put(1 , "unit");
|
||||
|
||||
Reference in New Issue
Block a user