Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to mark an ASTNode uniquely ? Even if I rebuild AST Tree the mark wouldn't change?
How to mark an ASTNode uniquely ? Even if I rebuild AST Tree the mark wouldn't change? [message #1271014] Thu, 13 March 2014 23:37
Wang Felix is currently offline Wang Felix
Messages: 3
Registered: January 2014
Junior Member
How to mark an ASTNode uniquely,even if I rebuild AST Tree the mark wouldn't change?
Or,I change the code a little...

Here is an example:
------------------------------
private void method(){
  String str = "test";
  {
     str.toString();
  }
  str.toString();  // I want this one marked
}

-------------------------------
private void method(){
  String str = "test";
  ; //DO NOTHING
  {
     str.toString();
  }
  str.toString();   // I want this one marked
}


How can I get the same mark of "str.toString"?
Thank you~
Previous Topic:Inconsistent Eclipse user experience
Next Topic:Missing java source files
Goto Forum:
  


Current Time: Wed Jul 30 21:37:36 EDT 2014

Powered by FUDForum. Page generated in 0.03264 seconds