summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-05-15 22:38:28 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:54:40 +0200
commite88a99496cf4091ec16670a2fe656878fc055692 (patch)
tree84bdda7c3b7ec854f14c924f5d0c1492943c83ee
parent30b17d39adc7a7284b926cac6ada566eb1b62292 (diff)
downloadgobject-introspection-e88a99496cf4091ec16670a2fe656878fc055692.tar.gz
giscanner: rename the parse() method to parse_comment_blocks()
We already have a parse_comment_block() method parsing a single GTK-Doc comment block so it only seems natural to have a plural parse_comment_blocks() to go along with that.
-rw-r--r--giscanner/annotationmain.py2
-rw-r--r--giscanner/annotationparser.py2
-rwxr-xr-xgiscanner/scannermain.py2
-rw-r--r--tests/warn/warningtester.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/giscanner/annotationmain.py b/giscanner/annotationmain.py
index ea19cce4..8756dcdb 100644
--- a/giscanner/annotationmain.py
+++ b/giscanner/annotationmain.py
@@ -59,7 +59,7 @@ def annotation_main(args):
if options.extract:
parser = GtkDocCommentBlockParser()
- blocks = parser.parse(ss.get_comments())
+ blocks = parser.parse_comment_blocks(ss.get_comments())
print '/' + ('*' * 60) + '/'
print '/* THIS FILE IS GENERATED DO NOT EDIT */'
print '/' + ('*' * 60) + '/'
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 66fa03bf..3b9b90a9 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -831,7 +831,7 @@ class GtkDocCommentBlockParser(object):
.. _47abcd5: 47abcd53b8489ebceec9e394676512a181c1f1f6
"""
- def parse(self, comments):
+ def parse_comment_blocks(self, comments):
'''
Parse multiple GTK-Doc comment blocks.
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 40a941ba..e4436b8c 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -465,7 +465,7 @@ def scanner_main(args):
ss = create_source_scanner(options, args)
cbp = GtkDocCommentBlockParser()
- blocks = cbp.parse(ss.get_comments())
+ blocks = cbp.parse_comment_blocks(ss.get_comments())
# Transform the C symbols into AST nodes
transformer.parse(ss.get_symbols())
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index 15822cfe..c78f92a7 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -115,7 +115,7 @@ def check(args):
transformer.parse(ss.get_symbols())
cbp = GtkDocCommentBlockParser()
- blocks = cbp.parse(ss.get_comments())
+ blocks = cbp.parse_comment_blocks(ss.get_comments())
main = MainTransformer(transformer, blocks)
main.transform()