[gobject-introspection] giscanner: rename the parse() method to parse_comment_blocks()



commit e88a99496cf4091ec16670a2fe656878fc055692
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Wed May 15 22:38:28 2013 +0200

    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.

 giscanner/annotationmain.py   |    2 +-
 giscanner/annotationparser.py |    2 +-
 giscanner/scannermain.py      |    2 +-
 tests/warn/warningtester.py   |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/annotationmain.py b/giscanner/annotationmain.py
index ea19cce..8756dcd 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 66fa03b..3b9b90a 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 40a941b..e4436b8 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 15822cf..c78f92a 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()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]