edk2toollib/uefi/edk2/parsers/dsc_parser.py
def __ProcessDefines(self, lines):
        '''
        ProcessDefines goes through a file once to look for [Define] sections.
        Only Sections, DEFINE, X = Y, and !includes are resolved
        This resolves all the defines since they can be anywhere in a file.
        Ideally this should be run until we reach stable state but this parser is not
        accurate and is more of an approximation of what the real parser does.
        '''

        if(len(lines) == 0):
            return
        for raw_line in lines:
            # we want to catch exceptions here since we are doing includes as we potentially might blow up
            # we want to catch on a line by line basis
            try:
                (line, add) = self.__ParseDefineLine(raw_line)
                self.__ProcessDefines(add)
            except Exception:
                # Since we're going to do this in ProcessMore, don't warn people if there's an exception
                # otherwise, raise the exception and act normally
                if not self._no_fail_mode:
                    raise

        ProcessDefines goes through a file once to look for [Define] sections.
        Only Sections, DEFINE, X = Y, and !includes are resolved
        This resolves all the defines since they can be anywhere in a file.
        Ideally this should be run until we reach stable state but this parser is not
        accurate and is more of an approximation of what the real parser does.
        
ProcessDefines goes through a file once to look for [Define] sections.
Only Sections, DEFINE, X = Y, and !includes are resolved
This resolves all the defines since they can be anywhere in a file.
Ideally this should be run until we reach stable state but this parser is not
accurate and is more of an approximation of what the real parser does.
ProcessDefines goes through a file once to look for [ Define ] sections . Only Sections DEFINE X = Y and !includes are resolved This resolves all the defines since they can be anywhere in a file . Ideally this should be run until we reach stable state but this parser is not accurate and is more of an approximation of what the real parser does .
def __ProcessDefines(self, lines):
        if(len(lines) == 0):
            return
        for raw_line in lines:
            try:
                (line, add) = self.__ParseDefineLine(raw_line)
                self.__ProcessDefines(add)
            except Exception:
                if not self._no_fail_mode:
                    raise
def __ProcessDefines ( self , lines ) : if ( len ( lines ) == 0 ) : return for raw_line in lines : try : ( line , add ) = self . __ParseDefineLine ( raw_line ) self . __ProcessDefines ( add ) except Exception : if not self . _no_fail_mode : raise
ProcessDefines goes through a file once to look for [Define] sections.
ProcessDefines goes through a file once to look for [ Define ] sections .
'''
        ProcessDefines goes through a file once to look for [Define] sections.
        Only Sections, DEFINE, X = Y, and !includes are resolved
        This resolves all the defines since they can be anywhere in a file.
        Ideally this should be run until we reach stable state but this parser is not
        accurate and is more of an approximation of what the real parser does.
        ''' # we want to catch exceptions here since we are doing includes as we potentially might blow up # we want to catch on a line by line basis # Since we're going to do this in ProcessMore, don't warn people if there's an exception # otherwise, raise the exception and act normally
self
lines