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_FOLLOWING");↵ | 3 | error("empty-tag","MARK_PREVIOUS");↵ | |
4 | return;↵ | 4 | return;↵ | |
5 | }↵ | 5 | }↵ | |
6 | rules.addRule(ParserRule↵ | 6 | rules.addRule(ParserRule↵ | |
7 | .createMarkFollowingRule(↵ | 7 | .createMarkPreviousRule(↵ | |
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) | 5.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75 | if (lastStart == null) | 81 | if (lastStart == null) | |||||||||||
76 | error("empty-tag", "MARK_FOLLOWING"); |
| 82 | error("empty-tag", "MARK_PREVIOUS"); | ||||||||||
77 | return; |
| 83 | return; | ||||||||||
78 | rules.addRule(ParserRule.createMarkFollowingRule(lastStartPosMatch, lastStart, lastTokenID, lastExcludeMatch)); |
| 84 | rules.addRule(ParserRule.createMarkPreviousRule(lastStartPosMatch, lastStart, lastTokenID, lastExcludeMatch)); | ||||||||||
79 | reset(); | 85 | reset(); |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |