## @file\r
-# This file contained the parser for [Guids], [Ppis], [Protocols] sections in INF file \r
+# This file contained the parser for [Guids], [Ppis], [Protocols] sections in INF file\r
#\r
-# Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
-# This program and the accompanying materials are licensed and made available \r
-# under the terms and conditions of the BSD License which accompanies this \r
-# distribution. The full text of the license may be found at \r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# distribution. The full text of the license may be found at\r
# http://opensource.org/licenses/bsd-license.php\r
#\r
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
#\r
def InfGuidParser(self, SectionString, InfSectionObject, FileName):\r
#\r
- # Macro defined in this section \r
+ # Macro defined in this section\r
#\r
SectionMacros = {}\r
ValueList = []\r
\r
#\r
# Replace with Local section Macro and [Defines] section Macro.\r
- # \r
+ #\r
ValueList = [InfExpandMacro(Value, (FileName, LineContent, LineNo),\r
self.FileLocalMacros, SectionMacros, True)\r
for Value in ValueList]\r
\r
#\r
# Current section archs\r
- # \r
+ #\r
ArchList = []\r
LineIndex = -1\r
for Item in self.LastSectionHeaderContent:\r
#\r
def InfPpiParser(self, SectionString, InfSectionObject, FileName):\r
#\r
- # Macro defined in this section \r
+ # Macro defined in this section\r
#\r
SectionMacros = {}\r
ValueList = []\r
\r
#\r
# Replace with Local section Macro and [Defines] section Macro.\r
- # \r
+ #\r
ValueList = [InfExpandMacro(Value, (FileName, LineContent, LineNo), self.FileLocalMacros, SectionMacros)\r
for Value in ValueList]\r
\r
\r
#\r
# Current section archs\r
- # \r
+ #\r
ArchList = []\r
LineIndex = -1\r
for Item in self.LastSectionHeaderContent:\r
\r
## InfUserExtensionParser\r
#\r
- # \r
+ #\r
def InfUserExtensionParser(self, SectionString, InfSectionObject, FileName):\r
\r
UserExtensionContent = ''\r
\r
#\r
# Current section UserId, IdString\r
- # \r
+ #\r
IdContentList = []\r
LastItem = ''\r
SectionLineNo = None\r
IdContentList.append((UserId, IdString, Arch))\r
else:\r
#\r
- # Each UserExtensions section header must have a unique set \r
+ # Each UserExtensions section header must have a unique set\r
# of UserId, IdString and Arch values.\r
- # This means that the same UserId can be used in more than one \r
- # section header, provided the IdString or Arch values are \r
- # different. The same IdString values can be used in more than \r
- # one section header if the UserId or Arch values are \r
- # different. The same UserId and the same IdString can be used \r
- # in a section header if the Arch values are different in each \r
+ # This means that the same UserId can be used in more than one\r
+ # section header, provided the IdString or Arch values are\r
+ # different. The same IdString values can be used in more than\r
+ # one section header if the UserId or Arch values are\r
+ # different. The same UserId and the same IdString can be used\r
+ # in a section header if the Arch values are different in each\r
# of the section headers.\r
#\r
Logger.Error('InfParser',\r
\r
def InfProtocolParser(self, SectionString, InfSectionObject, FileName):\r
#\r
- # Macro defined in this section \r
+ # Macro defined in this section\r
#\r
SectionMacros = {}\r
ValueList = []\r
\r
#\r
# Replace with Local section Macro and [Defines] section Macro.\r
- # \r
+ #\r
ValueList = [InfExpandMacro(Value, (FileName, LineContent, LineNo), self.FileLocalMacros, SectionMacros)\r
for Value in ValueList]\r
\r
\r
#\r
# Current section archs\r
- # \r
+ #\r
ArchList = []\r
LineIndex = -1\r
for Item in self.LastSectionHeaderContent:\r