2004-08-26 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Thu, 26 Aug 2004 04:33:37 +0000 (04:33 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Thu, 26 Aug 2004 04:33:37 +0000 (04:33 -0000)
* ArrayPrototype.cs: mark method as built in.

svn path=/trunk/mcs/; revision=32859

mcs/class/Microsoft.JScript/Microsoft.JScript/ArrayPrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog

index 870f3a6b6ca3ed4c5b1c63a88d6df4f1612ccb0c..72a39924f3ab78b615268bfcd7813dec2dcb26db 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-namespace Microsoft.JScript.Tmp
-{
-       using System;
-       using Microsoft.JScript.Vsa;
+using System;
+using Microsoft.JScript.Vsa;
 
-       public class ArrayPrototype : ArrayObject
-       {
+namespace Microsoft.JScript {
+
+       public class ArrayPrototype : ArrayObject {
+               
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasVarArgs | JSFunctionAttributeEnum.HasEngine, JSBuiltin.Array_concat)]
                public static ArrayObject concat (object thisObj, VsaEngine engine,
                                                  params object [] args)
                {
@@ -46,50 +47,50 @@ namespace Microsoft.JScript.Tmp
                        get { throw new NotImplementedException (); }
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_join)]
                public static string join (object thisObj, object separator)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_pop)]
                public static object pop (object thisObj)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasVarArgs, JSBuiltin.Array_push)]
                public static long push (object thisObj, params object [] args)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_reverse)]
                public static object reverse (object thisObj)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_shift)]
                public static object shift (object thisObj)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasEngine, JSBuiltin.Array_slice)]
                public static ArrayObject slice (object thisObj, VsaEngine engine,
                                                 double start, object end)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_sort)]
                public static object sort (object thisObj, object function)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasVarArgs | JSFunctionAttributeEnum.HasEngine, JSBuiltin.Array_splice)]
                public static ArrayObject splice (object thisObj, VsaEngine engine,
                                                  double start, double deleteCnt, 
                                                  params object [] args)
@@ -97,22 +98,22 @@ namespace Microsoft.JScript.Tmp
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_toLocaleString)]
                public static string toLocaleString (object thisObj)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_toString)]
                public static string ToString (object thisObj)
                {
                        throw new NotImplementedException ();
                }
 
-
+               [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject | JSFunctionAttributeEnum.HasVarArgs, JSBuiltin.Array_unshift)]
                public static object unshift (object thisObj, params object [] args)
                {
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
index 4e0c5eab8c865f2cb1b51007b777fca51c8428b5..daa850ee66c1ae57a8d127856d90adb463bd090d 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-26  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
+
+       * ArrayPrototype.cs: mark method as built in.
+
 2004-08-25  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
 
        * expression.cs: made Binary is IAssignable, added fields assign