Examples of errors detected by the V6100 diagnostic
V6100. An object is used as an argument to its own method. Consider checking the first actual argument of the 'Foo' method.
Rhino
V6100 An object is used as an argument to its own method. Consider checking the first actual argument of the 'setParentScope' method. Scope.java(123)
public class Scope extends Jump {
....
public static Scope splitScope(Scope scope) {
Scope result = new Scope(scope.getType());
result.symbolTable = scope.symbolTable;
scope.symbolTable = null;
result.parent = scope.parent;
result.setParentScope(scope.getParentScope());
result.setParentScope(result); // <=
scope.parent = result;
result.top = scope.top;
return result;
}
....
}