pub fn is_defined(
        &self,
        activation: &mut Activation<'_, 'gc, '_>,
        name: AvmString<'gc>,
    ) -> bool {
        if self.locals().has_property(activation, name) {
            return true;
        }

        if let Some(scope) = self.parent() {
            return scope.is_defined(activation, name);
        }

        false
    }
/// Check if a particular property in the scope chain is defined.
Check if a particular property in the scope chain is defined.
Check if a particular property in the scope chain is defined .
pub fn is_defined(
        &self,
        activation: &mut Activation<'_, 'gc, '_>,
        name: AvmString<'gc>,
    ) -> bool {
        if self.locals().has_property(activation, name) {
            return true;
        }
        if let Some(scope) = self.parent() {
            return scope.is_defined(activation, name);
        }
        false
    }
pub fn is_defined ( & self , activation : & mut Activation < ' _ , ' gc , ' _ > , name : AvmString < ' gc > , ) -> bool { if self . locals ( ) . has_property ( activation , name ) { return true ; } if let Some ( scope ) = self . parent ( ) { return scope . is_defined ( activation , name ) ; } false }
Check if a particular property in the scope chain is defined.
Check if a particular property in the scope chain is defined .
&self
activation
&mut Activation<'_, 'gc, '_>
name
AvmString<'gc>
&self
activation
&mut Activation<'_, 'gc, '_>
name
AvmString<'gc>