pub fn define_local(
        &self,
        name: AvmString<'gc>,
        value: Value<'gc>,
        activation: &mut Activation<'_, 'gc, '_>,
    ) -> Result<(), Error<'gc>> {
        self.locals().set(name, value, activation)
    }
/// Define a named local variable on the scope.
///
/// If the property does not already exist on the local scope, it will created.
/// Otherwise, the existing property will be set to `value`. This does not crawl the scope
/// chain. Any proeprties with the same name deeper in the scope chain will be shadowed.
Define a named local variable on the scope.
If the property does not already exist on the local scope, it will created.
Otherwise, the existing property will be set to `value`. This does not crawl the scope
chain. Any proeprties with the same name deeper in the scope chain will be shadowed.
Define a named local variable on the scope . If the property does not already exist on the local scope it will created . Otherwise the existing property will be set to ` value ` . This does not crawl the scope chain . Any proeprties with the same name deeper in the scope chain will be shadowed .
pub fn define_local(
        &self,
        name: AvmString<'gc>,
        value: Value<'gc>,
        activation: &mut Activation<'_, 'gc, '_>,
    ) -> Result<(), Error<'gc>> {
        self.locals().set(name, value, activation)
    }
pub fn define_local ( & self , name : AvmString < ' gc > , value : Value < ' gc > , activation : & mut Activation < ' _ , ' gc , ' _ > , ) -> Result < ( ) , Error < ' gc > > { self . locals ( ) . set ( name , value , activation ) }
Define a named local variable on the scope.
Define a named local variable on the scope .
&self
name
AvmString<'gc>
value
Value<'gc>
activation
&mut Activation<'_, 'gc, '_>
&self
name
AvmString<'gc>
value
Value<'gc>
activation
&mut Activation<'_, 'gc, '_>