File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/TokenMarker.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/syntax/TokenMarker.java | |||
Method name: boolean handleRule(ParserRule, boolean)
|
Method name: boolean handleRule(ParserRule, boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if((checkRule.action & ParserRule.REGEXP) != 0)↵ | 1 | if((checkRule.action & ParserRule.REGEXP) != 0)↵ | |
2 | {↵ | 2 | {↵ | |
3 | handleTokenWithSpaces(tokenHandler,↵ | 3 | handleTokenWithSpaces(tokenHandler,↵ | |
4 | tokenType,↵ | 4 | checkRule.token,↵ | |
5 | pos - line.offset,↵ | 5 | pos - line.offset,↵ | |
6 | matchedChars,↵ | 6 | matchedChars,↵ | |
7 | context);↵ | 7 | context);↵ | |
8 | }↵ | 8 | }↵ | |
9 | else↵ | 9 | else↵ | |
10 | {↵ | 10 | {↵ | |
11 | tokenHandler.handleToken(line,↵ | 11 | tokenHandler.handleToken(line,↵ | |
12 | tokenType,↵ | 12 | checkRule.token,↵ | |
13 | pos - line.offset,↵ | 13 | pos - line.offset,↵ | |
14 | matchedChars,context);↵ | 14 | matchedChars,context);↵ | |
15 | } | 15 |
| |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
Number of mapped statements | 3 |
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) | 1.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
66 | if ((checkRule.action & ParserRule.REGEXP) != 0) | 55 | if ((checkRule.action & ParserRule.REGEXP) != 0) | ||||||||||||
67 | handleTokenWithSpaces(tokenHandler, tokenType, pos - line.offset, matchedChars, context); |
| 56 | handleTokenWithSpaces(tokenHandler, checkRule.token, pos - line.offset, matchedChars, context); | |||||||||||
else | else | ||||||||||||||
68 | tokenHandler.handleToken(line, tokenType, pos - line.offset, matchedChars, context); |
| 57 | tokenHandler.handleToken(line, checkRule.token, pos - line.offset, matchedChars, context); |
Row | Violation |
---|---|
1 | Expression checkRule.token cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression checkRule.token cannot be parameterized, because it has dependencies to/from statements that will be extracted |