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","SEQ");↵ | |
4 | return;↵ | 4 | return;↵ | |
5 | }↵ | 5 | }↵ | |
6 | rules.addRule(ParserRule↵ | 6 | rules.addRule(ParserRule↵ | |
7 | .createMarkFollowingRule(↵ | 7 | .createSequenceRule(↵ | |
8 | lastStartPosMatch,lastStart,↵ | 8 | lastStartPosMatch,lastStart,lastDelegateSet,↵ | |
9 | lastTokenID,lastExcludeMatch));↵ | 9 | lastTokenID));↵ | |
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 | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 5.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75 | if (lastStart == null) | 30 | if (lastStart == null) | |||||||||||
76 | error("empty-tag", "MARK_FOLLOWING"); |
| 31 | error("empty-tag", "SEQ"); | ||||||||||
77 | return; |
| 32 | return; | ||||||||||
|
| 33 | rules.addRule(ParserRule.createSequenceRule(lastStartPosMatch, lastStart, lastDelegateSet, lastTokenID)); | |||||||||||
78 | rules.addRule(ParserRule.createMarkFollowingRule(lastStartPosMatch, lastStart, lastTokenID, lastExcludeMatch)); |
| | |||||||||||
79 | reset(); | 34 | reset(); |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |
3 | Unmatched statement rules.addRule(ParserRule.createSequenceRule(lastStartPosMatch,lastStart,lastDelegateSet,lastTokenID)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement rules.addRule(ParserRule.createMarkFollowingRule(lastStartPosMatch,lastStart,lastTokenID,lastExcludeMatch)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |