File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java | File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java | |||
Method name: void beginChainedMethod()
|
Method name: void rescue(BranchCallback, Class, BranchCallback, Class)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (scope.getNumberOfVariables() > 4) {↵ | 1 | if (scope.getNumberOfVariables() > 4) {↵ | |
2 | method.aload(getDynamicScopeIndex());↵ | 2 | mv.aload(getDynamicScopeIndex());↵ | |
3 | method.invokevirtual(p(DynamicScope.class), "getValues", sig(IRubyObject[].class));↵ | 3 | mv.invokevirtual(p(DynamicScope.class), "getValues", sig(IRubyObject[].class));↵ | |
4 | method.astore(getVarsArrayIndex());↵ | 4 | mv.astore(getVarsArrayIndex());↵ | |
5 | } | 5 | } | |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
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) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | if (scope.getNumberOfVariables() > 4) | 37 | if (scope.getNumberOfVariables() > 4) | |||||||||||
12 | method.aload(getDynamicScopeIndex()); |
| 38 | mv.aload(getDynamicScopeIndex()); | ||||||||||
13 | method.invokevirtual(p(DynamicScope.class), "getValues", sig(IRubyObject[].class)); |
| 39 | mv.invokevirtual(p(DynamicScope.class), "getValues", sig(IRubyObject[].class)); | ||||||||||
14 | method.astore(getVarsArrayIndex()); |
| 40 | mv.astore(getVarsArrayIndex()); |
Row | Violation |
---|