private GetAsConstructors ( Object proto ) : System.Reflection.ConstructorInfo[] | ||
proto | Object | |
리턴 | System.Reflection.ConstructorInfo[] |
internal ConstructorInfo[] GetAsConstructors(Object proto){
JSMemberField field = this;
int n = 0;
while (field != null){
field = field.nextOverload;
n++;
}
ConstructorInfo[] result = new ConstructorInfo[n];
field = this;
n = 0;
while (field != null){
Debug.Assert(field.IsLiteral);
FunctionObject func = (FunctionObject)field.value;
func.isConstructor = true;
func.proto = proto;
result[n++] = new JSConstructor(func);
field = field.nextOverload;
}
return result;
}