-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Doxygen \memberof
annotations
#3027
Open
amomchilov
wants to merge
1
commit into
ruby:main
Choose a base branch
from
Shopify:amomchilov/memberof
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+61
−3
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ PRISM_EXPORTED_FUNCTION const char * pm_version(void); | |
* @param source The source to parse. | ||
* @param size The size of the source. | ||
* @param options The optional options to use when parsing. | ||
* \public \memberof pm_parser | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_parser_init(pm_parser_t *parser, const uint8_t *source, size_t size, const pm_options_t *options); | ||
|
||
|
@@ -62,13 +63,15 @@ PRISM_EXPORTED_FUNCTION void pm_parser_init(pm_parser_t *parser, const uint8_t * | |
* | ||
* @param parser The parser to register the callback with. | ||
* @param callback The callback to register. | ||
* \public \memberof pm_parser | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_parser_register_encoding_changed_callback(pm_parser_t *parser, pm_encoding_changed_callback_t callback); | ||
|
||
/** | ||
* Free any memory associated with the given parser. | ||
* | ||
* @param parser The parser to free. | ||
* \public \memberof pm_parser | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_parser_free(pm_parser_t *parser); | ||
|
||
|
@@ -77,13 +80,15 @@ PRISM_EXPORTED_FUNCTION void pm_parser_free(pm_parser_t *parser); | |
* | ||
* @param parser The parser to use. | ||
* @return The AST representing the source. | ||
* \public \memberof pm_parser | ||
*/ | ||
PRISM_EXPORTED_FUNCTION pm_node_t * pm_parse(pm_parser_t *parser); | ||
|
||
/** | ||
* This function is used in pm_parse_stream to retrieve a line of input from a | ||
* This function is used in pm_parse_stream() to retrieve a line of input from a | ||
* stream. It closely mirrors that of fgets so that fgets can be used as the | ||
* default implementation. | ||
* \public \memberof pm_parser | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This shouldn't be marked as a member of parser, as it's a user-defined callback that does not correspond to a parser. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
*/ | ||
typedef char * (pm_parse_stream_fgets_t)(char *string, int size, void *stream); | ||
|
||
|
@@ -96,6 +101,7 @@ typedef char * (pm_parse_stream_fgets_t)(char *string, int size, void *stream); | |
* @param fgets The function to use to read from the stream. | ||
* @param options The optional options to use when parsing. | ||
* @return The AST representing the source. | ||
* \public \memberof pm_parser | ||
*/ | ||
PRISM_EXPORTED_FUNCTION pm_node_t * pm_parse_stream(pm_parser_t *parser, pm_buffer_t *buffer, void *stream, pm_parse_stream_fgets_t *fgets, const pm_options_t *options); | ||
|
||
|
@@ -112,6 +118,7 @@ PRISM_EXPORTED_FUNCTION pm_node_t * pm_parse_stream(pm_parser_t *parser, pm_buff | |
* @param stream The stream to parse. | ||
* @param fgets The function to use to read from the stream. | ||
* @param data The optional data to pass to the parser. | ||
* \public \relatedalso pm_buffer_t | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_serialize_parse_stream(pm_buffer_t *buffer, void *stream, pm_parse_stream_fgets_t *fgets, const char *data); | ||
|
||
|
@@ -121,6 +128,7 @@ PRISM_EXPORTED_FUNCTION void pm_serialize_parse_stream(pm_buffer_t *buffer, void | |
* @param parser The parser to serialize. | ||
* @param list The list of comments to serialize. | ||
* @param buffer The buffer to serialize to. | ||
* \public \memberof pm_buffer_t | ||
*/ | ||
void pm_serialize_comment_list(pm_parser_t *parser, pm_list_t *list, pm_buffer_t *buffer); | ||
|
||
|
@@ -129,6 +137,7 @@ void pm_serialize_comment_list(pm_parser_t *parser, pm_list_t *list, pm_buffer_t | |
* | ||
* @param encoding The encoding to serialize. | ||
* @param buffer The buffer to serialize to. | ||
* \public \memberof pm_buffer_t | ||
*/ | ||
void pm_serialize_encoding(const pm_encoding_t *encoding, pm_buffer_t *buffer); | ||
|
||
|
@@ -138,6 +147,7 @@ void pm_serialize_encoding(const pm_encoding_t *encoding, pm_buffer_t *buffer); | |
* @param parser The parser to serialize. | ||
* @param node The node to serialize. | ||
* @param buffer The buffer to serialize to. | ||
* \public \memberof pm_buffer_t | ||
*/ | ||
void pm_serialize_content(pm_parser_t *parser, pm_node_t *node, pm_buffer_t *buffer); | ||
|
||
|
@@ -147,6 +157,7 @@ void pm_serialize_content(pm_parser_t *parser, pm_node_t *node, pm_buffer_t *buf | |
* @param parser The parser to serialize. | ||
* @param node The node to serialize. | ||
* @param buffer The buffer to serialize to. | ||
* \public \memberof pm_node | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_serialize(pm_parser_t *parser, pm_node_t *node, pm_buffer_t *buffer); | ||
|
||
|
@@ -157,6 +168,7 @@ PRISM_EXPORTED_FUNCTION void pm_serialize(pm_parser_t *parser, pm_node_t *node, | |
* @param source The source to parse. | ||
* @param size The size of the source. | ||
* @param data The optional data to pass to the parser. | ||
* \public \memberof pm_buffer_t | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_serialize_parse(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data); | ||
|
||
|
@@ -167,6 +179,7 @@ PRISM_EXPORTED_FUNCTION void pm_serialize_parse(pm_buffer_t *buffer, const uint8 | |
* @param source The source to parse. | ||
* @param size The size of the source. | ||
* @param data The optional data to pass to the parser. | ||
* \public \relatedalso pm_buffer_t | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_serialize_parse_comments(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data); | ||
|
||
|
@@ -177,6 +190,7 @@ PRISM_EXPORTED_FUNCTION void pm_serialize_parse_comments(pm_buffer_t *buffer, co | |
* @param size The size of the source. | ||
* @param buffer The buffer to serialize to. | ||
* @param data The optional data to pass to the lexer. | ||
* \public \relatedalso pm_buffer_t | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_serialize_lex(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data); | ||
|
||
|
@@ -188,6 +202,7 @@ PRISM_EXPORTED_FUNCTION void pm_serialize_lex(pm_buffer_t *buffer, const uint8_t | |
* @param source The source to parse. | ||
* @param size The size of the source. | ||
* @param data The optional data to pass to the parser. | ||
* \public \relatedalso pm_buffer_t | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_serialize_parse_lex(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data); | ||
|
||
|
@@ -200,6 +215,7 @@ PRISM_EXPORTED_FUNCTION void pm_serialize_parse_lex(pm_buffer_t *buffer, const u | |
* @param size The size of the source. | ||
* @param data The optional data to pass to the parser. | ||
* @return True if the source parses without errors or warnings. | ||
* \public \memberof pm_parser | ||
*/ | ||
PRISM_EXPORTED_FUNCTION bool pm_parse_success_p(const uint8_t *source, size_t size, const char *data); | ||
|
||
|
@@ -229,6 +245,7 @@ const char * pm_token_type_human(pm_token_type_t token_type); | |
* @param buffer The buffer to serialize to. | ||
* @param parser The parser that parsed the node. | ||
* @param node The node to serialize. | ||
* \public \memberof pm_node | ||
*/ | ||
PRISM_EXPORTED_FUNCTION void pm_dump_json(pm_buffer_t *buffer, const pm_parser_t *parser, const pm_node_t *node); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
()
makes this into link to thepm_parse_stream()
function that uses this callback.