File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreSwitch.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: 13 | Number of AST nodes: 11 | |||
1 | EReference eReference = (EReference)theEObject;↵ | 1 | E↵ | |
2 | T result = caseEReference(eReference);↵ | |||
3 | if (result == null) result = caseE↵ | 2 | StructuralFeature eStructuralFeature = (EStructuralFeature)theEObject;↵ | |
4 | StructuralFeature(eReference);↵ | 3 | T result = caseEStructuralFeature(eStructuralFeature);↵ | |
5 | if (result == null) result = caseETypedElement(eReference);↵ | 4 | if (result == null) result = caseETypedElement(eStructuralFeature);↵ | |
6 | if (result == null) result = caseENamedElement(eReference);↵ | 5 | if (result == null) result = caseENamedElement(eStructuralFeature);↵ | |
7 | if (result == null) result = caseEModelElement(eReference);↵ | 6 | if (result == null) result = caseEModelElement(eStructuralFeature);↵ | |
8 | if (result == null) result = defaultCase(theEObject);↵ | 7 | if (result == null) result = defaultCase(theEObject);↵ | |
9 | return result; | 8 |
| |
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.7 |
Clones location | Clones are in the same method |
Number of node comparisons | 60 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 8 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 3.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
139 | EReference eReference = (EReference)theEObject; | | |||||
140 | T result = caseEReference(eReference); | | |||||
| 153 | EStructuralFeature eStructuralFeature = (EStructuralFeature)theEObject; | |||||
| 154 | T result = caseEStructuralFeature(eStructuralFeature); | |||||
141 | if (result == null) | 155 | if (result == null) | ||||
142 | result = caseEStructuralFeature(eReference); |
| | ||||
|
| 156 | result = caseETypedElement(eStructuralFeature); | ||||
143 | if (result == null) | 157 | if (result == null) | ||||
144 | result = caseETypedElement(eReference); |
| | ||||
|
| 158 | result = caseENamedElement(eStructuralFeature); | ||||
145 | if (result == null) | 159 | if (result == null) | ||||
146 | result = caseENamedElement(eReference); |
| | ||||
|
| 160 | result = caseEModelElement(eStructuralFeature); | ||||
147 | if (result == null) | 161 | if (result == null) | ||||
148 | result = caseEModelElement(eReference); |
| | ||||
|
| 162 | result = defaultCase(theEObject); | ||||
149 | if (result == null) | | |||||
150 | result = defaultCase(theEObject); |
| | ||||
151 | return result; | 163 | return result; |
Row | Violation |
---|---|
1 | Unmatched statement result=caseEStructuralFeature(eReference); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result=caseETypedElement(eStructuralFeature); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement result=caseETypedElement(eReference); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement result=caseENamedElement(eStructuralFeature); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
5 | Unmatched statement result=caseENamedElement(eReference); 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(eStructuralFeature); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Unmatched statement result=caseEModelElement(eReference); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
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 |