File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed 
mirror-common/src/main/java/cn/com/mirror Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,6 @@ public boolean visit(MethodDeclaration node) {
9797
9898    @ Override 
9999    public  boolean  visit (SimpleName  node ) {
100-         // TODO xyz the statement of "return this;" and "return null" can not be visited 
101-         // return statement directly control dependence on the method it belongs. 
102- 
103100        IBinding  binding  = node .resolveBinding ();
104101        if  (binding  instanceof  IVariableBinding ) {
105102            IVariableBinding  iVariableBinding  = (IVariableBinding ) binding ;
@@ -116,11 +113,6 @@ public boolean visit(SimpleName node) {
116113    private  void  addVariable (Integer  lineNum ,
117114                             Variable  variable ) {
118115
119-         if  ("/home/piggy/work/mirror/mirror-common/src/main/java/cn/com/mirror/project/unit/element/Method.java" 
120-                 .equals (variable .getFile ()) && (lineNum  == 49  || lineNum  == 51 )) {
121-             log .debug ("a;lsjd;lfjsajdlfjalsjd;lf" );
122-         }
123- 
124116        if  (!varStatMap .containsKey (lineNum )) {
125117            Statement  statement  = new  Statement (this .file ,
126118                    lineNum ,
Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ public void construct() {
6060                Base  tailB  = getBaseElement (ctrlVal );
6161
6262                if  (null  == headB  || null  == tailB ) {
63+                     // TODO xyz the statement of "return this;" and "return null" can not be visited, 
64+                     // directly result in that head statement can not be retrieve from the base elements. 
65+                     // do some spacial treatment for "return this;" and "return null". 
66+ 
6367                    log .debug ("TARGET: {}" , targetPath );
6468                    log .debug ("HEAD: {}:{} \t ->\t  TAIL: {}:{}" , ctrlKey .getLineNum (),
6569                            ctrlKey .getVertexType (), ctrlVal .getLineNum (), ctrlVal .getVertexType ());
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments