compiler/LexTest/AST.cpp
//search for variable in the current class inherits

search for variable in the current class inherits
search for variable in the current class inherits
bool ID_Node::SearchInherits(my_implements *inherit,char *name,Variable*& locate,char *Caller)
{
	Variable* tmp='\0';
	if (!inherit->implement.empty()&&(inherit->place != NULL))
	{
		Class *myclass=(Class *)inherit->place;
		if (SearchClass(myclass,name,false,tmp,Caller))
		{
			locate=tmp;
			return true;
		}
		else
		{
			if (!myclass->inherit_class->implement.empty())
				return SearchInherits(myclass->inherit_class,name,locate,Caller);
			else
				return false;
		}
	}
	else
		 return false;
}
bool ID_Node :: SearchInherits ( my_implements * inherit , char * name , Variable * & locate , char * Caller ) { Variable * tmp = ' \0 ' ; if ( ! inherit -> implement . empty ( ) && ( inherit -> place != NULL ) ) { Class * myclass = ( Class * ) inherit -> place ; if ( SearchClass ( myclass , name , false , tmp , Caller ) ) { locate = tmp ; return true ; } else { if ( ! myclass -> inherit_class -> implement . empty ( ) ) return SearchInherits ( myclass -> inherit_class , name , locate , Caller ) ; else return false ; } } else return false ; }
search for variable in the current class inherits
search for variable in the current class inherits