Skip to content

Commit

Permalink
parser: Ignore function/method-inline
Browse files Browse the repository at this point in the history
Needed to parse the newest gir files
  • Loading branch information
bilelmoussaoui authored Oct 18, 2024
1 parent eff839d commit af6703c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ impl Library {
"function" => self.read_global_function(parser, ns_id, elem),
"constant" => self.read_constant(parser, ns_id, elem),
"alias" => self.read_alias(parser, ns_id, elem),
"boxed" | "function-macro" | "docsection" => parser.ignore_element(),
"boxed" | "function-macro" | "docsection" | "function-inline" => {
parser.ignore_element()
}
_ => {
warn!("<{} name={:?}>", elem.name(), elem.attr("name"));
parser.ignore_element()
Expand Down Expand Up @@ -386,6 +388,7 @@ impl Library {
"doc-deprecated" => parser.text().map(|t| doc_deprecated = Some(t)),
"source-position" => parser.ignore_element(),
"attribute" => parser.ignore_element(),
"method-inline" => parser.ignore_element(),
_ => Err(parser.unexpected_element(elem)),
})?;

Expand Down

0 comments on commit af6703c

Please sign in to comment.