зеркало из https://github.com/mozilla/pluotsorbet.git
Don't use isFinalClass
This commit is contained in:
Родитель
9ca46db104
Коммит
33c3fd368f
|
@ -88,29 +88,28 @@ module J2ME {
|
|||
}
|
||||
|
||||
export function isFinalMethod(methodInfo: MethodInfo): boolean {
|
||||
if (isFinalClass(methodInfo.classInfo)) {
|
||||
return true;
|
||||
}
|
||||
return methodInfo.isFinal;
|
||||
// XXX The following can only be used if every class in all jars is loaded.
|
||||
//var result = methodInfo.isFinal;
|
||||
//if (!result) {
|
||||
// var classInfo = methodInfo.classInfo;
|
||||
// var allSubClasses = classInfo.allSubClasses;
|
||||
// result = true;
|
||||
// for (var i = 0; i < allSubClasses.length; i++) {
|
||||
// var subClassMethods = allSubClasses[i].methods;
|
||||
// for (var j = 0; j < subClassMethods.length; j++) {
|
||||
// var subClassMethodInfo = subClassMethods[j];
|
||||
// if (methodInfo.name === subClassMethodInfo.name &&
|
||||
// methodInfo.signature === subClassMethodInfo.signature) {
|
||||
// result = false;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//return result;
|
||||
/*
|
||||
var result = methodInfo.isFinal;
|
||||
if (!result) {
|
||||
var classInfo = methodInfo.classInfo;
|
||||
var allSubClasses = classInfo.allSubClasses;
|
||||
result = true;
|
||||
for (var i = 0; i < allSubClasses.length; i++) {
|
||||
var subClassMethods = allSubClasses[i].methods;
|
||||
for (var j = 0; j < subClassMethods.length; j++) {
|
||||
var subClassMethodInfo = subClassMethods[j];
|
||||
if (methodInfo.name === subClassMethodInfo.name &&
|
||||
methodInfo.signature === subClassMethodInfo.signature) {
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
*/
|
||||
}
|
||||
|
||||
export function gatherCallees(callees: MethodInfo [], classInfo: ClassInfo, methodInfo: MethodInfo) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче