File path: /jruby-1.4.0/src/org/jruby/compiler/ASTCompiler.java | File path: /jruby-1.4.0/src/org/jruby/compiler/ASTCompiler.java | |||
Method name: void call(BodyCompiler)
|
Method name: void branch(BodyCompiler)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if (moduleNode.getBodyNode() != null) {↵ | 1 | if (untilNode.getBodyNode() != null) {↵ | |
2 | compile(moduleNode.getBodyNode(), context,true);↵ | 2 | compile(untilNode.getBodyNode(), context, true);↵ | |
3 | }↵ | 3 | ↵ | |
4 | context.loadNil(); | 4 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same java file |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.9 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (moduleNode.getBodyNode() != null) |
| 1 | if (untilNode.getBodyNode() != null) | |||||||||||||||||||||
2 | compile(moduleNode.getBodyNode(), context, true); |
| 2 | compile(untilNode.getBodyNode(), context, true); | |||||||||||||||||||||
3 | context.loadNil(); |
| |
Row | Violation |
---|---|
1 | Expression moduleNode cannot be unified with expression untilNode , because common superclass org.jruby.ast.Node does not declare member(s) public org.jruby.ast.Node getBodyNode() |
2 | Expression moduleNode cannot be unified with expression untilNode , because common superclass org.jruby.ast.Node does not declare member(s) public org.jruby.ast.Node getBodyNode() |
3 | Expression moduleNode cannot be unified with expression untilNode , because common superclass org.jruby.ast.Node does not declare member(s) public org.jruby.ast.Node getBodyNode() |
4 | Unmatched statement context.loadNil(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |