CloneSet3991


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18481
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetQualifiedNameReference.java
28552
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSingleNameReference.java
Clone Instance
1
Line Count
8
Source Line
481
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetQualifiedNameReference.java

        /**
         * Check and/or redirect the field access to the delegate receiver if any
         */
        public TypeBinding getReceiverType(BlockScope currentScope) {
                Scope scope = currentScope.parent;
                while (true) {
                                switch (scope.kind) {
                                        case Scope.CLASS_SCOPE:
                                                return ((ClassScope) scope).referenceContext.binding;
                                        default:
                                                scope = scope.parent;
                                      }
                }
        }


Clone Instance
2
Line Count
8
Source Line
552
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSingleNameReference.java

/**
 * Check and/or redirect the field access to the delegate receiver if any
 */
public TypeBinding getReceiverType(BlockScope currentScope) {
        Scope scope = currentScope.parent;
        while (true) {
                        switch (scope.kind) {
                                case Scope.CLASS_SCOPE:
                                        return ((ClassScope) scope).referenceContext.binding;
                                default:
                                        scope = scope.parent;
                              }
        }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
 * Check and/or redirect the field access to the delegate receiver if any
 */
/**
         * Check and/or redirect the field access to the delegate receiver if any
         */
public TypeBinding getReceiverType(BlockScope currentScope) {
  Scope scope = currentScope.parent;
  while (true) {
    switch (scope.kind) {
      case Scope.CLASS_SCOPE:
        return ((ClassScope) scope).referenceContext.binding;
      default:
        scope = scope.parent;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None