Lines Matching refs:comments
215 comments: Vec<Comment<'a>>, field
438 comments: Vec::new(), in new()
504 self.comments.extend( in claim_gathered_comments()
515 mem::replace(&mut self.comments, Vec::new()) in take_comments()
1197 debug_assert!(self.comments.is_empty()); in parse_function()
1242 comments: self.take_comments(), in parse_function()
3301 fn comments() { in comments() function
3302 let (func, Details { comments, .. }) = Parser::new( in comments()
3315 assert_eq!(comments.len(), 7); // no 'before' comment. in comments()
3317 comments[0], in comments()
3323 assert_eq!(comments[1].entity.to_string(), "ss10"); in comments()
3324 assert_eq!(comments[2].entity.to_string(), "ss10"); in comments()
3325 assert_eq!(comments[2].text, "; Still stackslot."); in comments()
3326 assert_eq!(comments[3].entity.to_string(), "block0"); in comments()
3327 assert_eq!(comments[3].text, "; Basic block"); in comments()
3329 assert_eq!(comments[4].entity.to_string(), "inst0"); in comments()
3330 assert_eq!(comments[4].text, "; Instruction"); in comments()
3332 assert_eq!(comments[5].entity, AnyEntity::Function); in comments()
3333 assert_eq!(comments[6].entity, AnyEntity::Function); in comments()