summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/tag_returns.xml
Commit message (Collapse)AuthorAgeFilesLines
* giscanner: refactor GTK-Doc comment block serializationDieter Verfaillie2013-10-081-0/+94
|
* giscanner: add missing testsDieter Verfaillie2013-10-081-0/+137
|
* giscanner: make some warnings errorsDieter Verfaillie2013-10-081-3/+3
| | | | | | | GTK-Doc comment block fixer tool will refuse to rewrite source files that generated errors (indicating a source->parse tree->source would result in information being lost), but will happily continue on warnings (which do not result in information being lost).
* giscanner: honor line and paragraph breaks in description fieldsDieter Verfaillie2013-10-081-1/+3
| | | | | | | | | GTK-Doc parameter description fields are allowed to span multiple lines, tag description fields are allowed to span multiple lines and paragraphs. A tool fixing/rewriting GTK-Doc comment blocks in source files would need to have description fields parsed and stored (almost) exactly as they appear in the source file.
* giscanner: improve state trackingDieter Verfaillie2013-10-081-8/+2
|
* giscanner: refactor annotation validationDieter Verfaillie2013-10-081-0/+32
| | | | | | | | - annotations on the identifier (formerly g-i specific tags) have never been validated before, so fix this - removes duplicate validation code from GtkDocTag and GtkDocParameter - remove repeated validation code doing the same thing as annotationparser from maintransformer...
* giscanner: extract tag valuesDieter Verfaillie2013-10-081-2/+2
|
* giscanner: restore support for 'Return:' and 'Returns value:' tagsDieter Verfaillie2013-10-081-0/+102
| | | | | Accepted by old version of annotationparser.py and actually encountered in the wild. Internaly normalize to 'Returns:'.
* tests: move GTK-Doc comment block warning testsDieter Verfaillie2013-10-081-3/+155
| | | | | | It makes sense to let test_parser.py check everything which is focused purely on testing GTK-Doc comment blocks (ie annotationparser.py functionality).
* tests: validate GTK-Doc test filesDieter Verfaillie2013-10-081-4/+4
| | | | | | | | This is more of a handy developer tool than something that is always expected to be executed as part of the test suite, so we don't add a hard dependency on xmllint. https://bugzilla.gnome.org/show_bug.cgi?id=688897
* tests: put <docblock> element inside a <parser> elementDieter Verfaillie2013-10-081-36/+42
| | | | | | | The <parser> element can then hold both the expected <docblock> parse tree and the warning/error messages emitted by the parser in a future <messages> child element.
* tests: rename <commentblock> element to <input>Dieter Verfaillie2013-10-081-6/+6
| | | | | | We'll start testing parser warning/error messages and serialized output later on so this will make it easier to see what's parser input and output...
* giscanner: add AnnotationParser testsDieter Verfaillie2012-11-281-0/+76
The tests in giscanner/annotationpatters.py only test the regular expression programs used when parsing GTK-Doc comment blocks but do not test the structure of the resulting "parse tree". This patch adds 193 GTK-Doc comment blocks and the expected results AnnotationParser should return (with it's current level of understanding of GTK-Doc comment block syntax). These are compared by tests/scanner/annotationparser/test_parser.py which complains with a diff on failure. https://bugzilla.gnome.org/show_bug.cgi?id=688897