Changeset f18e2c2 in tol


Ignore:
Timestamp:
May 20, 2013, 3:58:32 PM (13 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
d60d28c
Parents:
86eec5c
Message:

Fixes #1690
Removing private methods and members from SelectMembersDeep

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@5828 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bgrammar/nameblock.cpp

    r86eec5c rf18e2c2  
    12451245  {
    12461246    obj = iter->second;
     1247    const BText& name = obj->Name();
     1248    if(name[0]=='_'&&name[1]!='.') { continue; }
    12471249    if((oc.mode_==BUSERFUNMODE) &&
    12481250       (obj->Mode()==BOBJECTMODE) &&
    … …  
    12591261    }
    12601262  }
    1261 /*
    1262   for(iter=private_.begin(); iter!=private_.end(); iter++)
    1263   {
    1264     obj = iter->second;
    1265     if((obj->Name()[2]=='.')&&
    1266        (oc.mode_==BUSERFUNMODE) &&
    1267        (obj->Mode()==BOBJECTMODE) &&
    1268        (obj->Grammar()==GraCode()))
    1269     {
    1270       BUserCode* uc = (BUserCode*)obj;
    1271       obj = uc->Contens().Operator();
    1272     }
    1273     bool match = (obj->Grammar()==oc.grammar_) && (obj->Mode()==oc.mode_);
    1274     if(match)
    1275     {
    1276     //Std(BText("\n")+"  "+GetModeName(obj->Mode())+" "+obj->Grammar()->Name()+" "+obj->Name()+" matches? "+int(match));
    1277       lst = Cons(obj,lst);
    1278     }
    1279   }
    1280 */
    12811263  return(lst);
    12821264}
    … …  
    12931275  {
    12941276    obj = iter->second;
     1277    const BText& name = obj->Name();
     1278    if(name[0]=='_'&&name[1]!='.') { continue; }
    12951279    if((obj->Grammar()==GraNameBlock()) && (obj->Mode()==BOBJECTMODE))
    12961280    {
    … …  
    12991283    }
    13001284  }
    1301 /*
    1302   for(iter=private_.begin(); iter!=private_.end(); iter++)
    1303   {
    1304     obj = iter->second;
    1305     if((obj->Name()[2]=='.')&&
    1306        (obj->Grammar()==GraNameBlock()) && (obj->Mode()==BOBJECTMODE))
    1307     {
    1308       BUserNameBlock* unb = (BUserNameBlock*)obj;
    1309       lst = unb->Contens().SelectMembersDeep(lst, oc);
    1310     }
    1311   }
    1312 */
    13131285  return(lst);
    13141286}
Note: See TracChangeset for help on using the changeset viewer.