mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Re-implement syntax fixups
This commit is contained in:
parent
7a8c4c001b
commit
f48fa0c6cb
7 changed files with 406 additions and 262 deletions
|
@ -34,8 +34,6 @@ impl SyntaxContextId {
|
|||
// we need a special value that behaves as the current context.
|
||||
pub const SELF_REF: Self =
|
||||
SyntaxContextId(unsafe { InternId::new_unchecked(InternId::MAX - 1) });
|
||||
// Used for syntax fixups
|
||||
pub const FAKE: Self = SyntaxContextId(unsafe { InternId::new_unchecked(InternId::MAX - 2) });
|
||||
|
||||
pub fn is_root(self) -> bool {
|
||||
self == Self::ROOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue