File path: /jruby-1.4.0/src/org/jruby/compiler/ASTCompiler.java | File path: /jruby-1.4.0/src/org/jruby/compiler/ASTCompiler19.java | |||
Method name: void compileOptimizedMultipleAsgn(MultipleAsgnNode, BodyCompiler, boolean)
|
Method name: void compileOptimizedMultipleAsgn19(MultipleAsgn19Node, BodyCompiler, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | for (Node asgn : multipleAsgnNode.getHeadNode().childNodes()) {↵ | 1 | for (Node asgn : multipleAsgn19Node.getPre().childNodes()) {↵ | |
2 | if (asgn instanceof ListNode) {↵ | 2 | if (asgn instanceof ListNode) {↵ | |
3 | normalAssigns = false;↵ | 3 | normalAssigns = false;↵ | |
4 | break;↵ | 4 | break;↵ | |
5 | }↵ | 5 | }↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | for (Node asgn : multipleAsgnNode.getHeadNode().childNodes()) |
| 5 | for (Node asgn : multipleAsgn19Node.getPre().childNodes()) | ||||||||||||||||
6 | if (asgn instanceof ListNode) | 6 | if (asgn instanceof ListNode) | |||||||||||||||||
7 | normalAssigns = false; | 7 | normalAssigns = false; | |||||||||||||||||
8 | break; | 8 | break; |
Row | Violation |
---|