Dictionary: rename param in .has() .has_all() .erase()
fixes #5190, param should be named key, not value
This commit is contained in:
parent
d42117eeb6
commit
7a19e3c6ae
|
@ -1437,9 +1437,9 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
|
||||||
ADDFUNC0(DICTIONARY,INT,Dictionary,size,varray());
|
ADDFUNC0(DICTIONARY,INT,Dictionary,size,varray());
|
||||||
ADDFUNC0(DICTIONARY,BOOL,Dictionary,empty,varray());
|
ADDFUNC0(DICTIONARY,BOOL,Dictionary,empty,varray());
|
||||||
ADDFUNC0(DICTIONARY,NIL,Dictionary,clear,varray());
|
ADDFUNC0(DICTIONARY,NIL,Dictionary,clear,varray());
|
||||||
ADDFUNC1(DICTIONARY,BOOL,Dictionary,has,NIL,"value",varray());
|
ADDFUNC1(DICTIONARY,BOOL,Dictionary,has,NIL,"key",varray());
|
||||||
ADDFUNC1(DICTIONARY,BOOL,Dictionary,has_all,ARRAY,"values",varray());
|
ADDFUNC1(DICTIONARY,BOOL,Dictionary,has_all,ARRAY,"keys",varray());
|
||||||
ADDFUNC1(DICTIONARY,NIL,Dictionary,erase,NIL,"value",varray());
|
ADDFUNC1(DICTIONARY,NIL,Dictionary,erase,NIL,"key",varray());
|
||||||
ADDFUNC0(DICTIONARY,INT,Dictionary,hash,varray());
|
ADDFUNC0(DICTIONARY,INT,Dictionary,hash,varray());
|
||||||
ADDFUNC0(DICTIONARY,ARRAY,Dictionary,keys,varray());
|
ADDFUNC0(DICTIONARY,ARRAY,Dictionary,keys,varray());
|
||||||
ADDFUNC0(DICTIONARY,ARRAY,Dictionary,values,varray());
|
ADDFUNC0(DICTIONARY,ARRAY,Dictionary,values,varray());
|
||||||
|
|
|
@ -10440,7 +10440,7 @@ This approximation makes straight segments between each point, then subdivides t
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="erase">
|
<method name="erase">
|
||||||
<argument index="0" name="value" type="var">
|
<argument index="0" name="key" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Erase a dictionary key/value pair by key.
|
Erase a dictionary key/value pair by key.
|
||||||
|
@ -10449,7 +10449,7 @@ This approximation makes straight segments between each point, then subdivides t
|
||||||
<method name="has">
|
<method name="has">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="value" type="var">
|
<argument index="0" name="key" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Return true if the dictionary has a given key.
|
Return true if the dictionary has a given key.
|
||||||
|
@ -10458,7 +10458,7 @@ This approximation makes straight segments between each point, then subdivides t
|
||||||
<method name="has_all">
|
<method name="has_all">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="values" type="Array">
|
<argument index="0" name="keys" type="Array">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Return true if the dictionary has all of the keys in the given array.
|
Return true if the dictionary has all of the keys in the given array.
|
||||||
|
|
Loading…
Reference in New Issue