mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Parse and infer tuple indices
This commit is contained in:
parent
0372eca5b2
commit
ca40ca93a5
13 changed files with 210 additions and 14 deletions
|
@ -3,6 +3,7 @@ mod byte_string;
|
|||
mod char;
|
||||
mod string;
|
||||
mod block;
|
||||
mod field_expr;
|
||||
|
||||
use crate::{
|
||||
SourceFile, SyntaxError, AstNode, SyntaxNode,
|
||||
|
@ -17,6 +18,7 @@ pub(crate) fn validate(file: &SourceFile) -> Vec<SyntaxError> {
|
|||
let _ = visitor_ctx(&mut errors)
|
||||
.visit::<ast::Literal, _>(validate_literal)
|
||||
.visit::<ast::Block, _>(block::validate_block_node)
|
||||
.visit::<ast::FieldExpr, _>(field_expr::validate_field_expr_node)
|
||||
.accept(node);
|
||||
}
|
||||
errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue