Inheritance: System.Reflection.ConstructorInfo
Exemple #1
0
        internal ConstructorInfo[] GetAsConstructors(object proto)
        {
            JSMemberField nextOverload = this;
            int           num          = 0;

            while (nextOverload != null)
            {
                nextOverload = nextOverload.nextOverload;
                num++;
            }
            ConstructorInfo[] infoArray = new ConstructorInfo[num];
            nextOverload = this;
            num          = 0;
            while (nextOverload != null)
            {
                FunctionObject cons = (FunctionObject)nextOverload.value;
                cons.isConstructor = true;
                cons.proto         = proto;
                infoArray[num++]   = new JSConstructor(cons);
                nextOverload       = nextOverload.nextOverload;
            }
            return(infoArray);
        }
        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);
        }
Exemple #3
0
 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;
 }
 internal ConstructorInfo[] GetAsConstructors(object proto)
 {
     JSMemberField nextOverload = this;
     int num = 0;
     while (nextOverload != null)
     {
         nextOverload = nextOverload.nextOverload;
         num++;
     }
     ConstructorInfo[] infoArray = new ConstructorInfo[num];
     nextOverload = this;
     num = 0;
     while (nextOverload != null)
     {
         FunctionObject cons = (FunctionObject) nextOverload.value;
         cons.isConstructor = true;
         cons.proto = proto;
         infoArray[num++] = new JSConstructor(cons);
         nextOverload = nextOverload.nextOverload;
     }
     return infoArray;
 }