File path: /jruby-1.4.0/src/org/jruby/compiler/impl/AbstractVariableCompiler.java | File path: /jruby-1.4.0/src/org/jruby/compiler/impl/AbstractVariableCompiler.java | |||
Method name: void assignMethodArguments(Object, int, Object, int, ArrayCallback, ArrayCallback, ArrayCallback, CompilerCallback, CompilerCallback)
|
Method name: void assignMethodArguments19(Object, int, Object, int, int, Object, int, ArrayCallback, ArrayCallback, ArrayCallback, CompilerCallback, CompilerCallback)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (blockAssignment != null) {↵ | 1 | if (blockAssignment != null) {↵ | |
2 | methodCompiler.loadRuntime();↵ | 2 | methodCompiler.loadRuntime();↵ | |
3 | method.aload(methodCompiler.getClosureIndex());↵ | 3 | method.aload(methodCompiler.getClosureIndex());↵ | |
4 | methodCompiler.invokeUtilityMethod("processBlockArgument", sig(IRubyObject.class, params(Ruby.class, Block.class)));↵ | 4 | methodCompiler.invokeUtilityMethod("processBlockArgument", sig(IRubyObject.class, params(Ruby.class, Block.class)));↵ | |
5 | blockAssignment.call(methodCompiler);↵ | 5 | blockAssignment.call(methodCompiler);↵ | |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 25 |
Number of mapped statements | 5 |
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) | 3.1 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
37 | if (blockAssignment != null) | 45 | if (blockAssignment != null) | |
38 | methodCompiler.loadRuntime(); | 46 | methodCompiler.loadRuntime(); | |
39 | method.aload(methodCompiler.getClosureIndex()); | 47 | method.aload(methodCompiler.getClosureIndex()); | |
40 | methodCompiler.invokeUtilityMethod("processBlockArgument", sig(IRubyObject.class, params(Ruby.class, Block.class))); | 48 | methodCompiler.invokeUtilityMethod("processBlockArgument", sig(IRubyObject.class, params(Ruby.class, Block.class))); | |
41 | blockAssignment.call(methodCompiler); | 49 | blockAssignment.call(methodCompiler); |
Row | Violation |
---|