We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doccoments without tags are not being parsed correctly via parse_doccomments.
parse_doccomments
Can be reproduced with the following example:
pub fn main() { let src = "// SPDX-License-Identifier: MIT /// Some doc comment contract Counter {}"; let (_, comments) = solang_parser::parse(src, 0).unwrap(); let parsed = solang_parser::doccomment::parse_doccomments(&comments, 0, src.len()); match &parsed[0] { solang_parser::doccomment::DocComment::Line {comment} => { assert!(comment.value_offset > src.len()); } _ => unreachable!(), } }
For parsed comment, value_offset will be out of bounds of the file
value_offset
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Doccoments without tags are not being parsed correctly via
parse_doccomments
.Can be reproduced with the following example:
For parsed comment,
value_offset
will be out of bounds of the fileThe text was updated successfully, but these errors were encountered: