File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/XModeHandler.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/XModeHandler.java | |||
Method name: void endElement(String)
|
Method name: void endElement(String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if(lastStart == null)↵ | 1 | if(lastStart == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | error("empty-tag","MARK_PREVIOUS");↵ | 3 | error("empty-tag","MARK_FOLLOWING");↵ | |
4 | return;↵ | 4 | return;↵ | |
5 | }↵ | 5 | }↵ | |
6 | rules.addRule(ParserRule↵ | 6 | rules.addRule(ParserRule↵ | |
7 | .createMarkPreviousRule(↵ | 7 | .createMarkFollowingRule(↵ | |
8 | lastStartPosMatch,lastStart,↵ | 8 | lastStartPosMatch,lastStart,↵ | |
9 | lastTokenID,lastExcludeMatch));↵ | 9 | lastTokenID,lastExcludeMatch));↵ | |
10 | reset(); | 10 |
| |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 12 |
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) | 2.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81 | if (lastStart == null) | 75 | if (lastStart == null) | |||||||||||
82 | error("empty-tag", "MARK_PREVIOUS"); |
| 76 | error("empty-tag", "MARK_FOLLOWING"); | ||||||||||
83 | return; |
| 77 | return; | ||||||||||
84 | rules.addRule(ParserRule.createMarkPreviousRule(lastStartPosMatch, lastStart, lastTokenID, lastExcludeMatch)); |
| 78 | rules.addRule(ParserRule.createMarkFollowingRule(lastStartPosMatch, lastStart, lastTokenID, lastExcludeMatch)); | ||||||||||
85 | reset(); | 79 | reset(); |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |