Skip to content

Don't fail with an error if a method doesn't have an attribute "line"#1332

Open
AadityaDhingra wants to merge 1 commit intomozilla:masterfrom
AadityaDhingra:line_attribute
Open

Don't fail with an error if a method doesn't have an attribute "line"#1332
AadityaDhingra wants to merge 1 commit intomozilla:masterfrom
AadityaDhingra:line_attribute

Conversation

@AadityaDhingra
Copy link
Contributor

No description provided.

let start_line = get_xml_attribute(parser, e, "line")?.parse::<u32>()?;
let line = get_xml_attribute(parser, e, "line")?;
if line.is_empty() {
break;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should throw an error if we're Java?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And continue instead of break?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants