File tree 2 files changed +4
-8
lines changed
mirror-common/src/main/java/cn/com/mirror
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) {
97
97
98
98
@ Override
99
99
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
-
103
100
IBinding binding = node .resolveBinding ();
104
101
if (binding instanceof IVariableBinding ) {
105
102
IVariableBinding iVariableBinding = (IVariableBinding ) binding ;
@@ -116,11 +113,6 @@ public boolean visit(SimpleName node) {
116
113
private void addVariable (Integer lineNum ,
117
114
Variable variable ) {
118
115
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
-
124
116
if (!varStatMap .containsKey (lineNum )) {
125
117
Statement statement = new Statement (this .file ,
126
118
lineNum ,
Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ public void construct() {
60
60
Base tailB = getBaseElement (ctrlVal );
61
61
62
62
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
+
63
67
log .debug ("TARGET: {}" , targetPath );
64
68
log .debug ("HEAD: {}:{} \t ->\t TAIL: {}:{}" , ctrlKey .getLineNum (),
65
69
ctrlKey .getVertexType (), ctrlVal .getLineNum (), ctrlVal .getVertexType ());
You can’t perform that action at this time.
0 commit comments