File path: /jruby-1.4.0/src/org/jruby/RubyEnumerable.java | File path: /jruby-1.4.0/src/org/jruby/RubyEnumerable.java | |||
Method name: IRubyObject none_p(ThreadContext, IRubyObject, Block)
|
Method name: IRubyObject none_p(ThreadContext, IRubyObject, Block)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | callEach(runtime, context, self, new BlockCallback() {↵ | 1 | callEach(runtime, context, self, new BlockCallback() {↵ | |
2 | public IRubyObject call(ThreadContext ctx, IRubyObject[] largs, Block blk) {↵ | 2 | public IRubyObject call(ThreadContext ctx, IRubyObject[] largs, Block blk) {↵ | |
3 | checkContext(localContext, ctx, "none?");↵ | 3 | checkContext(localContext, ctx, "none?");↵ | |
4 | IRubyObject larg = checkArgs(runtime, largs);↵ | 4 | IRubyObject larg = checkArgs(runtime, largs);↵ | |
5 | if (block.yield(ctx, larg).isTrue()) throw JumpException.SPECIAL_JUMP; ↵ | 5 | if (larg.isTrue()) throw JumpException.SPECIAL_JUMP;↵ | |
6 | return runtime.getNil();↵ | 6 | return runtime.getNil();↵ | |
7 | ↵ | |||
8 | }↵ | 7 | }↵ | |
9 | }); | 8 |
| |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | callEach(runtime, context, self, new BlockCallback() {...}); |
| 6 | callEach(runtime, context, self, new BlockCallback() {...}); |
Row | Violation |
---|---|
1 | Expression block.yield(ctx,larg) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression larg cannot be parameterized, because it has dependencies to/from statements that will be extracted |