Home
last modified time | relevance | path

Searched refs:Comment (Results 1 – 25 of 60) sorted by relevance

123

/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/
DCommentParsing.py89 Comment = CleanString2(Line)[1]
90 Comment = Comment.strip()
96 if not Comment and HeaderCommentStage not in [HEADER_COMMENT_LICENSE, \
101 if Comment.startswith(STR_HEADER_COMMENT_START):
104 License += Comment + EndOfLine
110 if not Comment:
112 elif _IsCopyrightLine(Comment):
113 Result, ErrMsg = _ValidateCopyright(Comment)
115 Copyright += Comment + EndOfLine
118 Abstract += Comment + EndOfLine
[all …]
DString.py330 Comment = LineParts[1].strip()
335 End = len(Comment)
336 while Start < End and Comment.startswith(CommentCharacter, Start, End):
338 while End >= 0 and Comment.endswith(CommentCharacter, Start, End):
340 Comment = Comment[Start:End]
341 Comment = Comment.strip()
343 Comment = ''
345 return Line, Comment
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/
DMetaDataParser.py131 Comment = CleanString2(Line)[1]
132 Comment = Comment.strip()
138 if not Comment and HeaderCommentStage not in [HEADER_COMMENT_LICENSE, \
143 if Comment.startswith(STR_HEADER_COMMENT_START):
146 License += Comment + EndOfLine
152 if not Comment:
155 elif _IsCopyrightLine(Comment):
156 Copyright += Comment + EndOfLine
159 Abstract += Comment + EndOfLine
165 if _IsCopyrightLine(Comment):
[all …]
DCodeFragmentCollector.py28 from CodeFragment import Comment
373 …CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_T…
381 …CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_S…
495 …CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_T…
503 …CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_S…
DCodeFragment.py19 class Comment : class
Dconfig.ini102 # Check whether Meta data File header Comment End with '##'
104 # Check whether C File header Comment content start with two spaces
106 # Check whether C File header Comment's each reference at list should begin with a bullet character…
108 # Check whether C File header Comment have the License immediately after the ""Copyright"" line
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/UnitTest/
DCommentParsingUnitTest.py57 for Comment in CommentList:
59 TestCommentLinesList.append((Comment, LineNum))
98 for Comment in CommentList:
100 TestCommentLinesList.append((Comment, LineNum))
139 for Comment in CommentList:
141 TestCommentLinesList.append((Comment, LineNum))
184 for Comment in CommentList:
186 TestCommentLinesList.append((Comment, LineNum))
228 for Comment in CommentList:
230 TestCommentLinesList.append((Comment, LineNum))
[all …]
DDecParserUnitTest.py35 Line, Comment = CleanString('')
37 self.assertEqual(Comment, '')
39 Line, Comment = CleanString('line without comment')
41 self.assertEqual(Comment, '')
43 Line, Comment = CleanString('# pure comment')
45 self.assertEqual(Comment, '# pure comment')
47 Line, Comment = CleanString('line # and comment')
49 self.assertEqual(Comment, '# and comment')
52 Line, Comment = CleanString('line // and comment', AllowCppStyleComment = True)
54 self.assertEqual(Comment, '# and comment')
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/GenMetaFile/
DGenInfFile.py643 (Target, Family, TagName, Comment) = Value
648 Comment = ''
649 if Comment:
650 Statement = GenGenericCommentF(Comment)
699 Comment = GenGenericCommentF(HelpStr)
702 Comment = HelpStr.replace('\n', ' ')
703 Comment = Comment.strip()
704 if Comment:
705 Comment = ' # ' + Comment
707 Comment = ''
[all …]
DGenMetaFileMisc.py159 Comment = OrigDict[Statement, SortedArch]
163 if Comment.find('\n') != len(Comment) - 1:
164 NewStateMent = Comment + Statement
167 NewStateMent = Statement.ljust(LeftOffset) + ' ' + Comment.rstrip('\n')
169 NewStateMent = Statement + ' ' + Comment.rstrip('\n')
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/
DDecParser.py213 def _TailCommentStrategy(self, Comment): argument
214 if Comment:
242 Comment = ''
250 if Comment:
251 CommentList.append((Comment, self._RawData.LineIndex))
259 Line, Comment = CleanString(self._RawData.GetNextLine())
308 Comment = ''
314 Line, Comment = CleanString(self._RawData.GetNextLine())
327 if Comment:
328 Comments = [(Comment, self._RawData.LineIndex)]
[all …]
DDecParserMisc.py124 Comment = ''
131 Comment = Line[Index:].strip()
135 return Line, Comment
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Workspace/
DMetaFileCommentParser.py44 for Comment in Comments:
45 for Word in Comment[0].replace('#', ' ').split():
DMetaFileParser.py521 Line, Comment = CleanString2(Content[Index], AllowCppStyleComment=True)
526 if Comment:
527 Comments.append((Comment, Index + 1))
604 if Comment:
605 Comments.append((Comment, Index + 1))
626 for Comment, LineNo in Comments:
627 self._Store(MODEL_META_DATA_COMMENT, Comment, '', '', Arch, Platform,
637 for Comment in TailComments:
638 self._Store(MODEL_META_DATA_TAIL_COMMENT, Comment[0], '', '', 'COMMON',
1634 Line, Comment = CleanString2(Content[Index])
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Xml/
DCommonXml.py773 Comment = XmlElement(ValueNodeItem, \
775 if (TagName == ' ') and (ToolCode == ' ') and (Comment == ' '):
778 Comment = ''
779 ValueList.append((TagName, ToolCode, Comment))
795 for (TagName, ToolCode, Comment) in ValueList:
797 if not (TagName or ToolCode or Comment):
800 Comment = ' '
803 ValueNodeList.append(["Comment", Comment])
841 Comment = XmlElement(ValueNodeItem, \
844 (TagName == ' ') and (Comment == ' '):
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Object/Parser/
DDecObject.py60 def SetHeadComment(self, Comment): argument
61 self._HeadComment = Comment
72 def SetTailComment(self, Comment): argument
73 self._TailComment = Comment
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/
DParseUpdateProfile.c439 IN COMMENT_LINE *Comment in FreeAllList() argument
460 while (Comment != NULL) { in FreeAllList()
461 PtrComment = Comment; in FreeAllList()
462 Comment = Comment->ptrNext; in FreeAllList()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dtokenize.py49 Comment = r'#[^\r\n]*' variable
50 Ignore = Whitespace + any(r'\\\r?\n' + Whitespace) + maybe(Comment)
98 PseudoExtras = group(r'\\\r?\n', Comment, Triple)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Object/POM/
DCommonObject.py821 self.Comment = ''
842 def SetComment(self, Comment): argument
843 self.Comment = Comment
846 return self.Comment
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dtokenize.py50 Comment = r'#[^\r\n]*' variable
51 Ignore = Whitespace + any(r'\\\r?\n' + Whitespace) + maybe(Comment)
99 PseudoExtras = group(r'\\\r?\n|\Z', Comment, Triple)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
Dtokenize.py53 Comment = r'#[^\r\n]*' variable
54 Ignore = Whitespace + any(r'\\\r?\n' + Whitespace) + maybe(Comment)
102 PseudoExtras = group(r'\\\r?\n', Comment, Triple)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/
DCodeFragment.py19 class Comment : class
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
DString.py402 Comment = ''
409 Comment = Line[Index:].strip()
413 return Line, Comment
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/etree/
DElementTree.py546 def Comment(text=None): function
547 element = Element(Comment)
880 elif tag is not None and tag is not Comment and tag is not PI:
897 if tag is Comment:
952 if tag is Comment:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/etree/
DElementTree.py546 def Comment(text=None): function
547 element = Element(Comment)
885 elif tag is not None and tag is not Comment and tag is not PI:
902 if tag is Comment:
957 if tag is Comment:

123