mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Rename modules
This commit is contained in:
parent
38e38d9b29
commit
e2030405d5
4 changed files with 9 additions and 8 deletions
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
mod generated;
|
mod generated;
|
||||||
mod traits;
|
mod traits;
|
||||||
mod tokens;
|
mod token_ext;
|
||||||
mod extensions;
|
mod node_ext;
|
||||||
mod expr_extensions;
|
mod expr_ext;
|
||||||
pub mod edit;
|
pub mod edit;
|
||||||
pub mod make;
|
pub mod make;
|
||||||
|
|
||||||
|
@ -16,13 +16,13 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
expr_extensions::{ArrayExprKind, BinOp, Effect, ElseBranch, LiteralKind, PrefixOp, RangeOp},
|
expr_ext::{ArrayExprKind, BinOp, Effect, ElseBranch, LiteralKind, PrefixOp, RangeOp},
|
||||||
extensions::{
|
generated::{nodes::*, tokens::*},
|
||||||
|
node_ext::{
|
||||||
AttrKind, FieldKind, NameOrNameRef, PathSegmentKind, SelfParamKind, SlicePatComponents,
|
AttrKind, FieldKind, NameOrNameRef, PathSegmentKind, SelfParamKind, SlicePatComponents,
|
||||||
StructKind, TypeBoundKind, VisibilityKind,
|
StructKind, TypeBoundKind, VisibilityKind,
|
||||||
},
|
},
|
||||||
generated::{nodes::*, tokens::*},
|
token_ext::*,
|
||||||
tokens::*,
|
|
||||||
traits::*,
|
traits::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,12 @@ use std::{
|
||||||
convert::{TryFrom, TryInto},
|
convert::{TryFrom, TryInto},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use rustc_lexer::unescape::{unescape_literal, Mode};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ast::{AstToken, Comment, RawString, String, Whitespace},
|
ast::{AstToken, Comment, RawString, String, Whitespace},
|
||||||
TextRange, TextSize,
|
TextRange, TextSize,
|
||||||
};
|
};
|
||||||
use rustc_lexer::unescape::{unescape_literal, Mode};
|
|
||||||
|
|
||||||
impl Comment {
|
impl Comment {
|
||||||
pub fn kind(&self) -> CommentKind {
|
pub fn kind(&self) -> CommentKind {
|
Loading…
Reference in a new issue