if (definitions2.length == 1) {
//and if it is a function, we're actually unable to find
//out about its return value
if (definitions2[0] instanceof Definition) {
Definition definition = (Definition) definitions2[0];
if (definition.ast instanceof FunctionDef) {
return true;
} else if (definition.ast instanceof ClassDef) {
ClassDef def = (ClassDef) definition.ast;
if (isDynamicClass(def)) {
return true;
}
}
}
}
} else if (foundDefinition instanceof Definition) { //not Assign definition
Definition definition = (Definition) foundDefinition;
if (definition.ast instanceof ClassDef) {
//direct class access
ClassDef classDef = (ClassDef) definition.ast;
if (isDynamicClass(classDef)) {
return true;