CloneSet1286


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21201.000statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121548
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
221599
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
Clone Instance
1
Line Count
21
Source Line
548
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

        assistNode = reference;
        this.lastCheckPoint = reference.sourceEnd + 1;

        pushOnAstStack(reference);

        if (currentToken == TokenNameSEMICOLON) {
                reference.declarationSourceEnd = scanner.currentPosition - 1;
        }
        else   {
                reference.declarationSourceEnd = (int) positions[length - 1];
        }
        //endPosition is just before the ;
        reference.declarationSourceStart = intStack[intPtr-- ];
        // flush annotations defined prior to import statements
        reference.declarationSourceEnd = this.flushCommentsDefinedPriorTo(reference.declarationSourceEnd);
        // recovery
        if (currentElement != null) {
                lastCheckPoint = reference.declarationSourceEnd + 1;
                currentElement = currentElement.add(reference, 0);
                lastIgnoredToken = -1;
                restartRecovery = true; // used to avoid branching back into the regular automaton              
        }


Clone Instance
2
Line Count
21
Source Line
599
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

        assistNode = reference;
        this.lastCheckPoint = reference.sourceEnd + 1;

        pushOnAstStack(reference);

        if (currentToken == TokenNameSEMICOLON) {
                reference.declarationSourceEnd = scanner.currentPosition - 1;
        }
        else   {
                reference.declarationSourceEnd = (int) positions[length - 1];
        }
        //endPosition is just before the ;
        reference.declarationSourceStart = intStack[intPtr-- ];
        // flush comments defined prior to import statements
        reference.declarationSourceEnd = this.flushCommentsDefinedPriorTo(reference.declarationSourceEnd);
        // recovery
        if (currentElement != null) {
                lastCheckPoint = reference.declarationSourceEnd + 1;
                currentElement = currentElement.add(reference, 0);
                lastIgnoredToken = -1;
                restartRecovery = true; // used to avoid branching back into the regular automaton              
        }


Clone AbstractionParameter Count: 0Parameter Bindings

assistNode = reference;
this.lastCheckPoint = reference.sourceEnd + 1;
pushOnAstStack(reference);
if (currentToken == TokenNameSEMICOLON) {
  reference.declarationSourceEnd = scanner.currentPosition - 1;
}
else {
  reference.declarationSourceEnd = (int) positions[length - 1];
}
//endPosition is just before the ;
reference.declarationSourceStart = intStack[intPtr-- ];
// flush comments defined prior to import statements
// flush annotations defined prior to import statements
reference.declarationSourceEnd = this.flushCommentsDefinedPriorTo(reference.declarationSourceEnd);
// recovery
if (currentElement != null) {
  lastCheckPoint = reference.declarationSourceEnd + 1;
  currentElement = currentElement.add(reference, 0);
  lastIgnoredToken = -1;
  restartRecovery = true; // used to avoid branching back into the regular automaton              
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None