Show
Ignore:
Timestamp:
08/28/08 07:55:03 (4 months ago)
Author:
Chuck.Esterbrook
Message:

Code cleanup.
Retire BoxMember?.box in favor of the more explicitly named .parentBox

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Expr.cobra

    r1605 r1606  
    12661266                                        pass 
    12671267                                else if _definition.isProtected 
    1268                                         if not .compiler.curBox.isDescendantOf(_definition.box) 
     1268                                        if not .compiler.curBox.isDescendantOf(_definition.parentBox) 
    12691269                                                whoseTypeIs = if(isBoxAccess, '', ' whose type is "[left.receiverType.name]"') 
    12701270                                                .throwError('Cannot access protected "[_name]" in "[left.toCobraSource]"[whoseTypeIs].') 
    12711271                                else if _definition.isPrivate 
    1272                                         if not .compiler.curBox is _definition.box 
     1272                                        if not .compiler.curBox is _definition.parentBox 
    12731273                                                whoseTypeIs = if(isBoxAccess, '', ' whose type is "[left.receiverType.name]"') 
    12741274                                                .throwError('Cannot access private "[_name]" in "[left.toCobraSource]"[whoseTypeIs].') 
     
    24202420 
    24212421        def _bindImp is override 
    2422                 possible = _propertyMember.parent.box.symbolForName(_name, true) 
     2422                possible = _propertyMember.parent.parentBox.symbolForName(_name, true) 
    24232423                if possible is nil 
    24242424                        .throwError('Cannot find a class variable named "[_name]".')