File path: /jruby-1.4.0/src/org/jruby/ast/UntilNode.java | File path: /jruby-1.4.0/src/org/jruby/ast/WhileNode.java | |||
Method name: void UntilNode(ISourcePosition, Node, Node, boolean)
|
Method name: void WhileNode(ISourcePosition, Node, Node, boolean)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | super(position);↵ | 1 | super(position);↵ | |
2 | ↵ | 2 | ↵ | |
3 | assert conditionNode != null : "conditionNode is not null";↵ | 3 | assert conditionNode != null : "conditionNode is not null";↵ | |
4 | assert bodyNode != null : "bodyNode is not null";↵ | 4 | assert bodyNode != null : "bodyNode is not null";↵ | |
5 | ↵ | 5 | ↵ | |
6 | this.conditionNode = conditionNode;↵ | 6 | this.conditionNode = conditionNode;↵ | |
7 | this.bodyNode = bodyNode;↵ | 7 | this.bodyNode = bodyNode;↵ | |
8 | this.evaluateAtStart = evaluateAtStart; | 8 | this.evaluateAtStart = evalAtStart; | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 15 |
Number of mapped statements | 6 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(position); | 1 | super(position); | |||||||||||
2 | assert conditionNode != null : "conditionNode is not null"; | 2 | assert conditionNode != null : "conditionNode is not null"; | |||||||||||
3 | assert bodyNode != null : "bodyNode is not null"; | 3 | assert bodyNode != null : "bodyNode is not null"; | |||||||||||
4 | this.conditionNode = conditionNode; | 4 | this.conditionNode = conditionNode; | |||||||||||
5 | this.bodyNode = bodyNode; | 5 | this.bodyNode = bodyNode; | |||||||||||
6 | this.evaluateAtStart = evaluateAtStart; |
| 6 | this.evaluateAtStart = evalAtStart; |
Row | Violation |
---|