Exemplo n.º 1
0
 public EcmaValue this[IStaticModifier staticModifier, PropertyDefinitionType type, EcmaPropertyKey key] {
     set {
         Guard.ArgumentNotNull(staticModifier, "staticModifier");
         if (staticModifier.IsStatic)
         {
             EnsureBuilder(ref staticProperties).Add(new PropertyDefinition(type, key, value));
         }
         else
         {
             this[type, key] = value;
         }
     }
 }
Exemplo n.º 2
0
 public EcmaValue this[IStaticModifier staticModifier, EcmaPropertyKey key] {
     set {
         Guard.ArgumentNotNull(staticModifier, "staticModifier");
         if (staticModifier.IsStatic)
         {
             EnsureBuilder(ref staticProperties).Add(key, value);
         }
         else
         {
             this[key] = value;
         }
     }
 }