/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
H A D | CommentParsing.py | 58 # @param CommentList: List of (Comment, LineNumber)
89 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)
[all...] |
H A D | String.py | 92 # @param CommentCharacter: Comment char, used to ignore comment content
112 # @param CommentCharacter: Comment char, used to ignore comment content
272 # @param CommentCharacter: Comment char, used to ignore comment content,
308 # @param CommentCharacter: Comment char, used to ignore comment content,
330 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[Star [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/ |
H A D | MetaDataParser.py | 86 # @param CommentList: List of (Comment, LineNumber)
129 Msg = 'Comment must start with #'
131 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) [all...] |
H A D | CodeFragment.py | 19 class Comment :
class in inherits:
|
H A D | CodeFragmentCollector.py | 28 from CodeFragment import Comment
namespace 373 CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_TWO_SLASH)
381 CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_SLASH_STAR)
495 CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_TWO_SLASH)
503 CommentObj = Comment('', (self.CurrentLineNumber, self.CurrentOffsetWithinLine), None, T_COMMENT_SLASH_STAR)
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/UnitTest/ |
H A D | CommentParsingUnitTest.py | 57 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, LineNu [all...] |
H A D | DecParserUnitTest.py | 35 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, '# an [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/GenMetaFile/ |
H A D | GenInfFile.py | 635 # @param Value: (Target, Family, TagName, Comment)
643 (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 [all...] |
H A D | GenMetaFileMisc.py | 159 Comment = OrigDict[Statement, SortedArch]
161 # apply the NComment/1Comment rule
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/Workspace/ |
H A D | MetaFileCommentParser.py | 44 for Comment in Comments:
45 for Word in Comment[0].replace('#', ' ').split():
|
H A D | MetaFileParser.py | 521 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 [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/ |
H A D | DecParser.py | 211 # @param Comment: Comment of current line
213 def _TailCommentStrategy(self, Comment):
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 [all...] |
H A D | DecParserMisc.py | 107 # @param CommentCharacter: Comment char, used to ignore comment content,
124 Comment = ''
131 Comment = Line[Index:].strip()
135 return Line, Comment
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Xml/ |
H A D | CommonXml.py | 773 Comment = XmlElement(ValueNodeItem, \
774 'SourceFileOtherAttr/Comment')
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])
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/ |
H A D | CodeFragment.py | 19 class Comment :
class in inherits:
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Object/Parser/ |
H A D | DecObject.py | 58 # @param Comment: comment content
60 def SetHeadComment(self, Comment):
61 self._HeadComment = Comment
70 # @param Comment: comment content
72 def SetTailComment(self, Comment):
73 self._TailComment = Comment
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ |
H A D | ParseUpdateProfile.c | 171 @param Buffer Comment buffer to be added.
173 @param CommentHead Comment Item head entry.
433 @param Comment Comment entry list.
439 IN COMMENT_LINE *Comment
460 while (Comment != NULL) {
461 PtrComment = Comment;
462 Comment = Comment->ptrNext;
788 Pre process config data buffer into Section entry list and Comment entr [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
H A D | tokenize.py | 50 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/ |
H A D | tokenize.py | 53 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/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | tokenize.py | 49 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/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/etree/ |
H A D | ElementTree.py | 59 "Comment",
168 # @see Comment
535 # Comment element factory. This factory function creates a special
546 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:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/etree/ |
H A D | ElementTree.py | 59 "Comment",
168 # @see Comment
535 # Comment element factory. This factory function creates a special
546 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/BaseTools/Source/Python/UPT/Object/POM/ |
H A D | CommonObject.py | 821 self.Comment = ''
842 def SetComment(self, Comment):
843 self.Comment = Comment
846 return self.Comment
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
H A D | String.py | 160 # @param CommentCharacter: Comment char, used to ignore comment content
182 # @param CommentCharacter: Comment char, used to ignore comment content
326 # @param CommentCharacter: Comment char, used to ignore comment content, default is DataType.TAB_COMMENT_SPLIT
383 # @param CommentCharacter: Comment char, used to ignore comment content, default is DataType.TAB_COMMENT_SPLIT
402 Comment = ''
409 Comment = Line[Index:].strip()
413 return Line, Comment
423 # @param CommentCharacter: Comment char, used to ignore comment content
444 # @param CommentCharacter: Comment char, used to ignore comment content
489 # @param CommentCharacter: Comment cha [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_xml_etree.py | 81 if elem.tag == ET.Comment:
82 return "<Comment>"
758 >>> elem.insert(0, ET.Comment("comment"))
1729 ET.Comment, not cET.comment).
1732 >>> a.append(ET.Comment('foo'))
1733 >>> a[0].tag == ET.Comment
1764 >>> comment_b = ET.Comment("TEST-b")
1766 >>> summarize_list(a.iter(ET.Comment))
1767 ['<Comment>']
|