if(pos==-1 && tree instanceof JCVariableDecl) {
return ((JCVariableDecl)tree).pos;
}
if(pos==-1 && tree instanceof JCMethodDecl) {
// a bug in the constructor start position detection
JCMethodDecl mt = (JCMethodDecl) tree;
if(mt.restype==null)
return mt.pos;
}
return pos;
}