mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 23:27:24 +00:00
Move numeric names inside of NameRef
This commit is contained in:
parent
5f82012779
commit
f3ee5a1509
10 changed files with 52 additions and 37 deletions
|
@ -30,7 +30,8 @@ SOURCE_FILE@[0; 47)
|
|||
NAME_REF@[25; 26)
|
||||
IDENT@[25; 26) "x"
|
||||
DOT@[26; 27) "."
|
||||
INT_NUMBER@[27; 31) "1i32"
|
||||
NAME_REF@[27; 31)
|
||||
INT_NUMBER@[27; 31) "1i32"
|
||||
SEMI@[31; 32) ";"
|
||||
WHITESPACE@[32; 37) "\n "
|
||||
EXPR_STMT@[37; 44)
|
||||
|
@ -41,11 +42,11 @@ SOURCE_FILE@[0; 47)
|
|||
NAME_REF@[37; 38)
|
||||
IDENT@[37; 38) "x"
|
||||
DOT@[38; 39) "."
|
||||
INT_NUMBER@[39; 43) "0x01"
|
||||
NAME_REF@[39; 43)
|
||||
INT_NUMBER@[39; 43) "0x01"
|
||||
SEMI@[43; 44) ";"
|
||||
WHITESPACE@[44; 45) "\n"
|
||||
R_CURLY@[45; 46) "}"
|
||||
WHITESPACE@[46; 47) "\n"
|
||||
error [17; 19): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix
|
||||
error [27; 31): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix
|
||||
error [39; 43): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix
|
||||
|
|
|
@ -32,7 +32,8 @@ SOURCE_FILE@[0; 48)
|
|||
NAME_REF@[26; 27)
|
||||
IDENT@[26; 27) "x"
|
||||
DOT@[27; 28) "."
|
||||
INT_NUMBER@[28; 29) "0"
|
||||
NAME_REF@[28; 29)
|
||||
INT_NUMBER@[28; 29) "0"
|
||||
DOT@[29; 30) "."
|
||||
NAME_REF@[30; 33)
|
||||
IDENT@[30; 33) "bar"
|
||||
|
@ -47,7 +48,8 @@ SOURCE_FILE@[0; 48)
|
|||
NAME_REF@[39; 40)
|
||||
IDENT@[39; 40) "x"
|
||||
DOT@[40; 41) "."
|
||||
INT_NUMBER@[41; 42) "0"
|
||||
NAME_REF@[41; 42)
|
||||
INT_NUMBER@[41; 42) "0"
|
||||
ARG_LIST@[42; 44)
|
||||
L_PAREN@[42; 43) "("
|
||||
R_PAREN@[43; 44) ")"
|
||||
|
|
|
@ -31,7 +31,8 @@ SOURCE_FILE@[0; 67)
|
|||
NAME_REF@[28; 29)
|
||||
IDENT@[28; 29) "x"
|
||||
DOT@[29; 30) "."
|
||||
INT_NUMBER@[30; 31) "0"
|
||||
NAME_REF@[30; 31)
|
||||
INT_NUMBER@[30; 31) "0"
|
||||
DOT@[31; 32) "."
|
||||
AWAIT_KW@[32; 37) "await"
|
||||
SEMI@[37; 38) ";"
|
||||
|
@ -48,7 +49,8 @@ SOURCE_FILE@[0; 67)
|
|||
NAME_REF@[43; 44)
|
||||
IDENT@[43; 44) "x"
|
||||
DOT@[44; 45) "."
|
||||
INT_NUMBER@[45; 46) "0"
|
||||
NAME_REF@[45; 46)
|
||||
INT_NUMBER@[45; 46) "0"
|
||||
ARG_LIST@[46; 48)
|
||||
L_PAREN@[46; 47) "("
|
||||
R_PAREN@[47; 48) ")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue