#\r
# @param LineIndex The line index of build rule text\r
#\r
- def ParseInputFile(self, LineIndex):\r
+ def ParseInputFileSubSection(self, LineIndex):\r
FileList = [File.strip() for File in self.RuleContent[LineIndex].split(",")]\r
for ToolChainFamily in self._FamilyList:\r
- InputFiles = self._RuleInfo[ToolChainFamily, self._State]\r
- if InputFiles is None:\r
- InputFiles = []\r
- self._RuleInfo[ToolChainFamily, self._State] = InputFiles\r
- InputFiles.extend(FileList)\r
+ if self._RuleInfo[ToolChainFamily, self._State] is None:\r
+ self._RuleInfo[ToolChainFamily, self._State] = []\r
+ self._RuleInfo[ToolChainFamily, self._State].extend(FileList)\r
\r
## Parse <ExtraDependency> sub-section\r
+ ## Parse <OutputFile> sub-section\r
+ ## Parse <Command> sub-section\r
#\r
# @param LineIndex The line index of build rule text\r
#\r
- def ParseCommon(self, LineIndex):\r
+ def ParseCommonSubSection(self, LineIndex):\r
for ToolChainFamily in self._FamilyList:\r
- Items = self._RuleInfo[ToolChainFamily, self._State]\r
- if Items is None:\r
- Items = []\r
- self._RuleInfo[ToolChainFamily, self._State] = Items\r
- Items.append(self.RuleContent[LineIndex])\r
+ if self._RuleInfo[ToolChainFamily, self._State] is None:\r
+ self._RuleInfo[ToolChainFamily, self._State] = []\r
+ self._RuleInfo[ToolChainFamily, self._State].append(self.RuleContent[LineIndex])\r
\r
## Get a build rule via [] operator\r
#\r
_Section : ParseSection,\r
_SubSectionHeader : ParseSubSectionHeader,\r
_SubSection : ParseSubSection,\r
- _InputFile : ParseInputFile,\r
- _OutputFile : ParseCommon,\r
- _ExtraDependency : ParseCommon,\r
- _Command : ParseCommon,\r
+ _InputFile : ParseInputFileSubSection,\r
+ _OutputFile : ParseCommonSubSection,\r
+ _ExtraDependency : ParseCommonSubSection,\r
+ _Command : ParseCommonSubSection,\r
_UnknownSection : SkipSection,\r
}\r
\r