File path: /emf-2.4.1/src/org/eclipse/emf/mapping/util/MappingSwitch.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreSwitch.java | |||
Method name: T doSwitch(int, EObject)
|
Method name: T doSwitch(int, EObject)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | FunctionPair functionPair = (FunctionPair)theEObject;↵ | 1 | EEnumLiteral eEnumLiteral = (EEnumLiteral)theEObject;↵ | |
2 | T result = caseFunctionPair(functionPair);↵ | 2 | T result = caseEEnumLiteral(eEnumLiteral);↵ | |
3 | if (result == null) result = caseTypeConverter(functionPair);↵ | 3 | if (result == null) result = caseENamedElement(eEnumLiteral);↵ | |
4 | if (result == null) result = caseMappingHelper(functionPair);↵ | 4 | if (result == null) result = caseEModelElement(eEnumLiteral);↵ | |
5 | if (result == null) result = defaultCase(theEObject);↵ | 5 | if (result == null) result = defaultCase(theEObject);↵ | |
6 | return result; | 6 |
| |
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.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 37 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | FunctionPair functionPair = (FunctionPair)theEObject; | | |||||||||||||
24 | T result = caseFunctionPair(functionPair); | | |||||||||||||
| 73 | EEnumLiteral eEnumLiteral = (EEnumLiteral)theEObject; | |||||||||||||
| 74 | T result = caseEEnumLiteral(eEnumLiteral); | |||||||||||||
25 | if (result == null) |
| 75 | if (result == null) | |||||||||||
26 | result = caseTypeConverter(functionPair); |
| | ||||||||||||
|
| 76 | result = caseENamedElement(eEnumLiteral); | ||||||||||||
27 | if (result == null) |
| 77 | if (result == null) | |||||||||||
28 | result = caseMappingHelper(functionPair); |
| | ||||||||||||
|
| 78 | result = caseEModelElement(eEnumLiteral); | ||||||||||||
29 | if (result == null) |
| 79 | if (result == null) | |||||||||||
30 | result = defaultCase(theEObject); |
| | ||||||||||||
|
| 80 | result = defaultCase(theEObject); | ||||||||||||
31 | return result; |
| | ||||||||||||
|
| 81 | return result; |
Row | Violation |
---|---|
1 | Type T of variable result does not match with type T of variable result |
2 | Unmatched statement result=caseTypeConverter(functionPair); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement result=caseENamedElement(eEnumLiteral); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Type T of variable result does not match with type T of variable result |
5 | Unmatched statement result=caseMappingHelper(functionPair); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement result=caseEModelElement(eEnumLiteral); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Type T of variable result does not match with type T of variable result |
8 | Unmatched statement result=defaultCase(theEObject); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
9 | Unmatched statement result=defaultCase(theEObject); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
10 | Unmatched return result; |
11 | Unmatched return result; |