Move RustPython Files

This commit is contained in:
Micha Reiser 2023-07-27 11:41:49 +02:00
parent 7a63a8f45a
commit 06ba1cf0ad
No known key found for this signature in database
153 changed files with 511 additions and 583 deletions

View File

@ -1,5 +1,5 @@
---
source: ruff_python_parser/src/parser.rs
source: crates/ruff_python_parser/src/parser.rs
expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
---
[
@ -10,7 +10,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 6..7,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [],
@ -30,7 +30,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 19..20,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [],
@ -63,7 +63,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 38..39,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [],
@ -98,7 +98,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 67..68,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [
@ -168,7 +168,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 107..108,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [
@ -199,7 +199,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 123..124,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [
@ -269,7 +269,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 152..153,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [
@ -340,7 +340,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 185..186,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [
@ -419,7 +419,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 223..224,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [
@ -513,7 +513,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
ExprName {
range: 298..302,
id: "type",
ctx: Load,
ctx: Store,
},
),
type_params: [],
@ -528,18 +528,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 311..327,
range: 309..325,
name: Name(
ExprName {
range: 316..321,
range: 314..319,
id: "match",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 324..327,
range: 322..325,
id: "int",
ctx: Load,
},
@ -548,18 +548,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 328..343,
range: 326..341,
name: Name(
ExprName {
range: 333..337,
range: 331..335,
id: "case",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 340..343,
range: 338..341,
id: "int",
ctx: Load,
},
@ -568,18 +568,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 369..384,
range: 367..382,
name: Name(
ExprName {
range: 374..377,
range: 372..375,
id: "foo",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 380..384,
range: 378..382,
id: "type",
ctx: Load,
},
@ -588,18 +588,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 385..401,
range: 383..399,
name: Name(
ExprName {
range: 390..393,
range: 388..391,
id: "foo",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 396..401,
range: 394..399,
id: "match",
ctx: Load,
},
@ -608,18 +608,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 402..417,
range: 400..415,
name: Name(
ExprName {
range: 407..410,
range: 405..408,
id: "foo",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 413..417,
range: 411..415,
id: "case",
ctx: Load,
},
@ -628,18 +628,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 441..456,
range: 439..454,
name: Name(
ExprName {
range: 449..450,
range: 447..448,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 453..456,
range: 451..454,
id: "int",
ctx: Load,
},
@ -648,18 +648,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 457..472,
range: 455..470,
name: Name(
ExprName {
range: 462..463,
range: 460..461,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 469..472,
range: 467..470,
id: "int",
ctx: Load,
},
@ -668,18 +668,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 473..488,
range: 471..486,
name: Name(
ExprName {
range: 478..479,
range: 476..477,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 485..488,
range: 483..486,
id: "int",
ctx: Load,
},
@ -688,18 +688,18 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 489..509,
range: 487..507,
name: Name(
ExprName {
range: 494..495,
range: 492..493,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [],
value: Name(
ExprName {
range: 504..507,
range: 502..505,
id: "int",
ctx: Load,
},
@ -708,21 +708,21 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 510..529,
range: 508..527,
name: Name(
ExprName {
range: 519..520,
id: "X",
ctx: Store,
},
),
type_params: [
TypeVar(
TypeParamTypeVar {
range: 521..522,
id: "X",
ctx: Load,
},
),
type_params: [
TypeVar(
TypeParamTypeVar {
range: 523..524,
name: Identifier {
id: "T",
range: 523..524,
range: 521..522,
},
bound: None,
},
@ -730,7 +730,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
],
value: Name(
ExprName {
range: 528..529,
range: 526..527,
id: "T",
ctx: Load,
},
@ -739,21 +739,21 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 530..550,
range: 528..548,
name: Name(
ExprName {
range: 535..536,
range: 533..534,
id: "X",
ctx: Load,
ctx: Store,
},
),
type_params: [
TypeVar(
TypeParamTypeVar {
range: 544..545,
range: 542..543,
name: Identifier {
id: "T",
range: 544..545,
range: 542..543,
},
bound: None,
},
@ -761,7 +761,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
],
value: Name(
ExprName {
range: 549..550,
range: 547..548,
id: "T",
ctx: Load,
},
@ -770,21 +770,21 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
),
TypeAlias(
StmtTypeAlias {
range: 551..570,
range: 549..568,
name: Name(
ExprName {
range: 554..555,
id: "X",
ctx: Store,
},
),
type_params: [
TypeVar(
TypeParamTypeVar {
range: 556..557,
id: "X",
ctx: Load,
},
),
type_params: [
TypeVar(
TypeParamTypeVar {
range: 558..559,
name: Identifier {
id: "T",
range: 558..559,
range: 556..557,
},
bound: None,
},
@ -792,7 +792,7 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
],
value: Name(
ExprName {
range: 569..570,
range: 567..568,
id: "T",
ctx: Load,
},

Some files were not shown because too many files have changed in this diff Show More