ソースを参照

Renaming MethodProperty to MethodPropertyDescriptor

Sebastien Ros 12 年 前
コミット
e56e6e8952

+ 1 - 1
Jint/Jint.csproj

@@ -116,7 +116,7 @@
     <Compile Include="Runtime\Descriptors\AccessorDescriptor.cs" />
     <Compile Include="Runtime\Descriptors\DataDescriptor.cs" />
     <Compile Include="Runtime\Descriptors\PropertyDescriptor.cs" />
-    <Compile Include="Runtime\Descriptors\Specialized\MethodProperty.cs" />
+    <Compile Include="Runtime\Descriptors\Specialized\MethodPropertyDescriptor.cs" />
     <Compile Include="Runtime\Environments\DeclarativeEnvironmentRecord.cs" />
     <Compile Include="Runtime\Environments\EnvironmentRecord.cs" />
     <Compile Include="Runtime\Environments\ExecutionContext.cs" />

+ 2 - 2
Jint/Native/Array/ArrayConstructor.cs

@@ -19,9 +19,9 @@ namespace Jint.Native.Array
             // the constructor is the function constructor of an object
             this.Prototype.DefineOwnProperty("constructor", new DataDescriptor(this) { Writable = true, Enumerable = false, Configurable = false }, false);
             this.Prototype.DefineOwnProperty("prototype", new DataDescriptor(this.Prototype) { Writable = true, Enumerable = false, Configurable = false }, false);
-
+                                  
             // Array prototype properties
-            this.Prototype.DefineOwnProperty("length", new MethodProperty<ArrayInstance>(_engine, x => x.Length), false);
+            this.Prototype.DefineOwnProperty("length", new MethodPropertyDescriptor<ArrayInstance>(_engine, x => x.Length), false);
 
             this.Prototype.DefineOwnProperty("push", new DataDescriptor(new ClrFunctionInstance(engine, (Action<ArrayInstance, object>)Push)), false);
             this.Prototype.DefineOwnProperty("pop", new DataDescriptor(new ClrFunctionInstance(engine, (Func<ArrayInstance, object>)Pop)), false);

+ 3 - 3
Jint/Runtime/Descriptors/Specialized/MethodProperty.cs → Jint/Runtime/Descriptors/Specialized/MethodPropertyDescriptor.cs

@@ -3,14 +3,14 @@ using Jint.Runtime.Interop;
 
 namespace Jint.Runtime.Descriptors.Specialized
 {
-    public sealed class MethodProperty<T> : AccessorDescriptor
+    public sealed class MethodPropertyDescriptor<T> : AccessorDescriptor
     {
-        public MethodProperty(Engine engine, Func<T, object> get)
+        public MethodPropertyDescriptor(Engine engine, Func<T, object> get)
             : this(engine, get, null)
         {
         }
 
-        public MethodProperty(Engine engine, Func<T, object> get, Action<T, object> set)
+        public MethodPropertyDescriptor(Engine engine, Func<T, object> get, Action<T, object> set)
             : base(
                 new GetterFunctionInstance<T>(engine, get),
                 set == null ? null : new SetterFunctionInstance<T>(engine, set)