mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Parse and validate attributes in blocks
This commit is contained in:
parent
137b1ccb71
commit
00e6b5d26c
10 changed files with 352 additions and 0 deletions
|
@ -2,6 +2,7 @@ mod byte;
|
|||
mod byte_string;
|
||||
mod char;
|
||||
mod string;
|
||||
mod block;
|
||||
|
||||
use crate::{
|
||||
SourceFile, yellow::SyntaxError, AstNode,
|
||||
|
@ -17,6 +18,7 @@ pub(crate) fn validate(file: &SourceFile) -> Vec<SyntaxError> {
|
|||
.visit::<ast::ByteString, _>(self::byte_string::validate_byte_string_node)
|
||||
.visit::<ast::Char, _>(self::char::validate_char_node)
|
||||
.visit::<ast::String, _>(self::string::validate_string_node)
|
||||
.visit::<ast::Block, _>(self::block::validate_block_node)
|
||||
.accept(node);
|
||||
}
|
||||
errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue