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

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