mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-09 22:25:23 +00:00
Adapt SourceLocation
This commit is contained in:
parent
a14e43e03a
commit
09a6afdd04
117 changed files with 1606 additions and 1676 deletions
|
@ -32,6 +32,8 @@ rand = "0.8.5"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
static_assertions = "1.1"
|
static_assertions = "1.1"
|
||||||
unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" }
|
unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" }
|
||||||
|
ruff_python_ast = { git = "https://github.com/youknowone/ruff.git", rev = "583df5c1fa43b2732896219f8ab425116c140c80" }
|
||||||
|
# ruff_python_ast = { path = "../ruff/crates/ruff_python_ast" }
|
||||||
|
|
||||||
[profile.dev.package."*"]
|
[profile.dev.package."*"]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
|
@ -761,7 +761,11 @@ class TraitImplVisitor(EmitVisitor):
|
||||||
def extract_location(self, typename, depth):
|
def extract_location(self, typename, depth):
|
||||||
row = self.decode_field(asdl.Field("int", "lineno"), typename)
|
row = self.decode_field(asdl.Field("int", "lineno"), typename)
|
||||||
column = self.decode_field(asdl.Field("int", "col_offset"), typename)
|
column = self.decode_field(asdl.Field("int", "col_offset"), typename)
|
||||||
self.emit(f"let _location = Location::new({row}, {column});", depth)
|
self.emit(f"""let _location = {{
|
||||||
|
let row = try_location_field({row}, _vm)?;
|
||||||
|
let column = try_location_field({column}, _vm)?;
|
||||||
|
SourceLocation {{ row, column }}
|
||||||
|
}};""", depth)
|
||||||
|
|
||||||
def decode_field(self, field, typename):
|
def decode_field(self, field, typename):
|
||||||
name = json.dumps(field.name)
|
name = json.dumps(field.name)
|
||||||
|
@ -785,10 +789,7 @@ def write_generic_def(mod, typeinfo, f):
|
||||||
f.write(
|
f.write(
|
||||||
textwrap.dedent(
|
textwrap.dedent(
|
||||||
"""
|
"""
|
||||||
#![allow(clippy::derive_partial_eq_without_eq)]
|
|
||||||
|
|
||||||
pub use crate::{Attributed, constant::*};
|
pub use crate::{Attributed, constant::*};
|
||||||
use rustpython_compiler_core::{text_size::{TextSize, TextRange}};
|
|
||||||
|
|
||||||
type Ident = String;
|
type Ident = String;
|
||||||
\n
|
\n
|
||||||
|
@ -804,15 +805,15 @@ def write_located_def(typeinfo, f):
|
||||||
f.write(
|
f.write(
|
||||||
textwrap.dedent(
|
textwrap.dedent(
|
||||||
"""
|
"""
|
||||||
use rustpython_compiler_core::LocationRange;
|
use crate::location::SourceRange;
|
||||||
|
|
||||||
pub type Located<T> = super::generic::Attributed<T, LocationRange>;
|
pub type Located<T> = super::generic::Attributed<T, SourceRange>;
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
for info in typeinfo.values():
|
for info in typeinfo.values():
|
||||||
if info.has_userdata:
|
if info.has_userdata:
|
||||||
generics = "::<LocationRange>"
|
generics = "::<SourceRange>"
|
||||||
else:
|
else:
|
||||||
generics = ""
|
generics = ""
|
||||||
f.write(
|
f.write(
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
use rustpython_compiler_core::{
|
use crate::location::{SourceLocation, SourceRange};
|
||||||
text_size::{TextRange, TextSize},
|
use rustpython_compiler_core::text_size::{TextRange, TextSize};
|
||||||
Location, LocationRange,
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct Attributed<T, U = ()> {
|
pub struct Attributed<T, U = ()> {
|
||||||
|
@ -53,16 +51,16 @@ impl<T> Attributed<T, ()> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Attributed<T, LocationRange> {
|
impl<T> Attributed<T, SourceRange> {
|
||||||
/// Returns the absolute start position of the node from the beginning of the document.
|
/// Returns the absolute start position of the node from the beginning of the document.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn location(&self) -> Location {
|
pub const fn location(&self) -> SourceLocation {
|
||||||
self.custom.start
|
self.custom.start
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the absolute position at which the node ends in the source document.
|
/// Returns the absolute position at which the node ends in the source document.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn end_location(&self) -> Location {
|
pub const fn end_location(&self) -> Option<SourceLocation> {
|
||||||
self.custom.end
|
self.custom.end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
// File automatically generated by ast/asdl_rs.py.
|
// File automatically generated by ast/asdl_rs.py.
|
||||||
|
|
||||||
#![allow(clippy::derive_partial_eq_without_eq)]
|
|
||||||
|
|
||||||
pub use crate::{constant::*, Attributed};
|
pub use crate::{constant::*, Attributed};
|
||||||
use rustpython_compiler_core::text_size::{TextRange, TextSize};
|
|
||||||
|
|
||||||
type Ident = String;
|
type Ident = String;
|
||||||
|
|
95
ast/src/gen/located.rs
Normal file
95
ast/src/gen/located.rs
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
// File automatically generated by ast/asdl_rs.py.
|
||||||
|
|
||||||
|
use crate::location::SourceRange;
|
||||||
|
|
||||||
|
pub type Located<T> = super::generic::Attributed<T, SourceRange>;
|
||||||
|
pub type Mod = super::generic::Mod<SourceRange>;
|
||||||
|
pub type ModModule = super::generic::ModModule<SourceRange>;
|
||||||
|
pub type ModInteractive = super::generic::ModInteractive<SourceRange>;
|
||||||
|
pub type ModExpression = super::generic::ModExpression<SourceRange>;
|
||||||
|
pub type ModFunctionType = super::generic::ModFunctionType<SourceRange>;
|
||||||
|
pub type Stmt = super::generic::Stmt<SourceRange>;
|
||||||
|
pub type StmtKind = super::generic::StmtKind<SourceRange>;
|
||||||
|
pub type StmtFunctionDef = super::generic::StmtFunctionDef<SourceRange>;
|
||||||
|
pub type StmtAsyncFunctionDef = super::generic::StmtAsyncFunctionDef<SourceRange>;
|
||||||
|
pub type StmtClassDef = super::generic::StmtClassDef<SourceRange>;
|
||||||
|
pub type StmtReturn = super::generic::StmtReturn<SourceRange>;
|
||||||
|
pub type StmtDelete = super::generic::StmtDelete<SourceRange>;
|
||||||
|
pub type StmtAssign = super::generic::StmtAssign<SourceRange>;
|
||||||
|
pub type StmtAugAssign = super::generic::StmtAugAssign<SourceRange>;
|
||||||
|
pub type StmtAnnAssign = super::generic::StmtAnnAssign<SourceRange>;
|
||||||
|
pub type StmtFor = super::generic::StmtFor<SourceRange>;
|
||||||
|
pub type StmtAsyncFor = super::generic::StmtAsyncFor<SourceRange>;
|
||||||
|
pub type StmtWhile = super::generic::StmtWhile<SourceRange>;
|
||||||
|
pub type StmtIf = super::generic::StmtIf<SourceRange>;
|
||||||
|
pub type StmtWith = super::generic::StmtWith<SourceRange>;
|
||||||
|
pub type StmtAsyncWith = super::generic::StmtAsyncWith<SourceRange>;
|
||||||
|
pub type StmtMatch = super::generic::StmtMatch<SourceRange>;
|
||||||
|
pub type StmtRaise = super::generic::StmtRaise<SourceRange>;
|
||||||
|
pub type StmtTry = super::generic::StmtTry<SourceRange>;
|
||||||
|
pub type StmtTryStar = super::generic::StmtTryStar<SourceRange>;
|
||||||
|
pub type StmtAssert = super::generic::StmtAssert<SourceRange>;
|
||||||
|
pub type StmtImport = super::generic::StmtImport<SourceRange>;
|
||||||
|
pub type StmtImportFrom = super::generic::StmtImportFrom<SourceRange>;
|
||||||
|
pub type StmtGlobal = super::generic::StmtGlobal;
|
||||||
|
pub type StmtNonlocal = super::generic::StmtNonlocal;
|
||||||
|
pub type StmtExpr = super::generic::StmtExpr<SourceRange>;
|
||||||
|
pub type Expr = super::generic::Expr<SourceRange>;
|
||||||
|
pub type ExprKind = super::generic::ExprKind<SourceRange>;
|
||||||
|
pub type ExprBoolOp = super::generic::ExprBoolOp<SourceRange>;
|
||||||
|
pub type ExprNamedExpr = super::generic::ExprNamedExpr<SourceRange>;
|
||||||
|
pub type ExprBinOp = super::generic::ExprBinOp<SourceRange>;
|
||||||
|
pub type ExprUnaryOp = super::generic::ExprUnaryOp<SourceRange>;
|
||||||
|
pub type ExprLambda = super::generic::ExprLambda<SourceRange>;
|
||||||
|
pub type ExprIfExp = super::generic::ExprIfExp<SourceRange>;
|
||||||
|
pub type ExprDict = super::generic::ExprDict<SourceRange>;
|
||||||
|
pub type ExprSet = super::generic::ExprSet<SourceRange>;
|
||||||
|
pub type ExprListComp = super::generic::ExprListComp<SourceRange>;
|
||||||
|
pub type ExprSetComp = super::generic::ExprSetComp<SourceRange>;
|
||||||
|
pub type ExprDictComp = super::generic::ExprDictComp<SourceRange>;
|
||||||
|
pub type ExprGeneratorExp = super::generic::ExprGeneratorExp<SourceRange>;
|
||||||
|
pub type ExprAwait = super::generic::ExprAwait<SourceRange>;
|
||||||
|
pub type ExprYield = super::generic::ExprYield<SourceRange>;
|
||||||
|
pub type ExprYieldFrom = super::generic::ExprYieldFrom<SourceRange>;
|
||||||
|
pub type ExprCompare = super::generic::ExprCompare<SourceRange>;
|
||||||
|
pub type ExprCall = super::generic::ExprCall<SourceRange>;
|
||||||
|
pub type ExprFormattedValue = super::generic::ExprFormattedValue<SourceRange>;
|
||||||
|
pub type ExprJoinedStr = super::generic::ExprJoinedStr<SourceRange>;
|
||||||
|
pub type ExprConstant = super::generic::ExprConstant;
|
||||||
|
pub type ExprAttribute = super::generic::ExprAttribute<SourceRange>;
|
||||||
|
pub type ExprSubscript = super::generic::ExprSubscript<SourceRange>;
|
||||||
|
pub type ExprStarred = super::generic::ExprStarred<SourceRange>;
|
||||||
|
pub type ExprName = super::generic::ExprName;
|
||||||
|
pub type ExprList = super::generic::ExprList<SourceRange>;
|
||||||
|
pub type ExprTuple = super::generic::ExprTuple<SourceRange>;
|
||||||
|
pub type ExprSlice = super::generic::ExprSlice<SourceRange>;
|
||||||
|
pub type ExprContext = super::generic::ExprContext;
|
||||||
|
pub type Boolop = super::generic::Boolop;
|
||||||
|
pub type Operator = super::generic::Operator;
|
||||||
|
pub type Unaryop = super::generic::Unaryop;
|
||||||
|
pub type Cmpop = super::generic::Cmpop;
|
||||||
|
pub type Comprehension = super::generic::Comprehension<SourceRange>;
|
||||||
|
pub type Excepthandler = super::generic::Excepthandler<SourceRange>;
|
||||||
|
pub type ExcepthandlerKind = super::generic::ExcepthandlerKind<SourceRange>;
|
||||||
|
pub type ExcepthandlerExceptHandler = super::generic::ExcepthandlerExceptHandler<SourceRange>;
|
||||||
|
pub type Arguments = super::generic::Arguments<SourceRange>;
|
||||||
|
pub type Arg = super::generic::Arg<SourceRange>;
|
||||||
|
pub type ArgData = super::generic::ArgData<SourceRange>;
|
||||||
|
pub type Keyword = super::generic::Keyword<SourceRange>;
|
||||||
|
pub type KeywordData = super::generic::KeywordData<SourceRange>;
|
||||||
|
pub type Alias = super::generic::Alias<SourceRange>;
|
||||||
|
pub type AliasData = super::generic::AliasData;
|
||||||
|
pub type Withitem = super::generic::Withitem<SourceRange>;
|
||||||
|
pub type MatchCase = super::generic::MatchCase<SourceRange>;
|
||||||
|
pub type Pattern = super::generic::Pattern<SourceRange>;
|
||||||
|
pub type PatternKind = super::generic::PatternKind<SourceRange>;
|
||||||
|
pub type PatternMatchValue = super::generic::PatternMatchValue<SourceRange>;
|
||||||
|
pub type PatternMatchSingleton = super::generic::PatternMatchSingleton;
|
||||||
|
pub type PatternMatchSequence = super::generic::PatternMatchSequence<SourceRange>;
|
||||||
|
pub type PatternMatchMapping = super::generic::PatternMatchMapping<SourceRange>;
|
||||||
|
pub type PatternMatchClass = super::generic::PatternMatchClass<SourceRange>;
|
||||||
|
pub type PatternMatchStar = super::generic::PatternMatchStar;
|
||||||
|
pub type PatternMatchAs = super::generic::PatternMatchAs<SourceRange>;
|
||||||
|
pub type PatternMatchOr = super::generic::PatternMatchOr<SourceRange>;
|
||||||
|
pub type TypeIgnore = super::generic::TypeIgnore;
|
||||||
|
pub type TypeIgnoreTypeIgnore = super::generic::TypeIgnoreTypeIgnore;
|
|
@ -2,12 +2,21 @@ mod attributed;
|
||||||
mod constant;
|
mod constant;
|
||||||
#[cfg(feature = "fold")]
|
#[cfg(feature = "fold")]
|
||||||
mod fold_helpers;
|
mod fold_helpers;
|
||||||
mod generic;
|
mod generic {
|
||||||
|
#![allow(clippy::derive_partial_eq_without_eq)]
|
||||||
|
include!("gen/generic.rs");
|
||||||
|
}
|
||||||
mod impls;
|
mod impls;
|
||||||
#[cfg(feature = "location")]
|
#[cfg(feature = "location")]
|
||||||
pub mod located;
|
pub mod located {
|
||||||
|
include!("gen/located.rs");
|
||||||
|
}
|
||||||
#[cfg(feature = "location")]
|
#[cfg(feature = "location")]
|
||||||
mod locator;
|
mod locator;
|
||||||
|
#[cfg(feature = "location")]
|
||||||
|
pub use crate::locator::locate;
|
||||||
|
#[cfg(feature = "location")]
|
||||||
|
pub use rustpython_compiler_core::SourceLocator;
|
||||||
|
|
||||||
#[cfg(feature = "unparse")]
|
#[cfg(feature = "unparse")]
|
||||||
mod unparse;
|
mod unparse;
|
||||||
|
@ -15,7 +24,36 @@ mod unparse;
|
||||||
pub use attributed::Attributed;
|
pub use attributed::Attributed;
|
||||||
pub use constant::{Constant, ConversionFlag};
|
pub use constant::{Constant, ConversionFlag};
|
||||||
pub use generic::*;
|
pub use generic::*;
|
||||||
#[cfg(feature = "location")]
|
|
||||||
pub use locator::Locator;
|
|
||||||
|
|
||||||
pub type Suite<U = ()> = Vec<Stmt<U>>;
|
pub type Suite<U = ()> = Vec<Stmt<U>>;
|
||||||
|
|
||||||
|
pub mod location {
|
||||||
|
pub use rustpython_compiler_core::source_code::{OneIndexed, SourceLocation};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
|
pub struct SourceRange {
|
||||||
|
pub start: SourceLocation,
|
||||||
|
pub end: Option<SourceLocation>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl SourceRange {
|
||||||
|
pub fn new(start: SourceLocation, end: SourceLocation) -> Self {
|
||||||
|
Self {
|
||||||
|
start,
|
||||||
|
end: Some(end),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pub fn unwrap_end(&self) -> SourceLocation {
|
||||||
|
self.end.unwrap()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl From<std::ops::Range<SourceLocation>> for SourceRange {
|
||||||
|
fn from(value: std::ops::Range<SourceLocation>) -> Self {
|
||||||
|
Self {
|
||||||
|
start: value.start,
|
||||||
|
end: Some(value.end),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,95 +0,0 @@
|
||||||
// File automatically generated by ast/asdl_rs.py.
|
|
||||||
|
|
||||||
use rustpython_compiler_core::LocationRange;
|
|
||||||
|
|
||||||
pub type Located<T> = super::generic::Attributed<T, LocationRange>;
|
|
||||||
pub type Mod = super::generic::Mod<LocationRange>;
|
|
||||||
pub type ModModule = super::generic::ModModule<LocationRange>;
|
|
||||||
pub type ModInteractive = super::generic::ModInteractive<LocationRange>;
|
|
||||||
pub type ModExpression = super::generic::ModExpression<LocationRange>;
|
|
||||||
pub type ModFunctionType = super::generic::ModFunctionType<LocationRange>;
|
|
||||||
pub type Stmt = super::generic::Stmt<LocationRange>;
|
|
||||||
pub type StmtKind = super::generic::StmtKind<LocationRange>;
|
|
||||||
pub type StmtFunctionDef = super::generic::StmtFunctionDef<LocationRange>;
|
|
||||||
pub type StmtAsyncFunctionDef = super::generic::StmtAsyncFunctionDef<LocationRange>;
|
|
||||||
pub type StmtClassDef = super::generic::StmtClassDef<LocationRange>;
|
|
||||||
pub type StmtReturn = super::generic::StmtReturn<LocationRange>;
|
|
||||||
pub type StmtDelete = super::generic::StmtDelete<LocationRange>;
|
|
||||||
pub type StmtAssign = super::generic::StmtAssign<LocationRange>;
|
|
||||||
pub type StmtAugAssign = super::generic::StmtAugAssign<LocationRange>;
|
|
||||||
pub type StmtAnnAssign = super::generic::StmtAnnAssign<LocationRange>;
|
|
||||||
pub type StmtFor = super::generic::StmtFor<LocationRange>;
|
|
||||||
pub type StmtAsyncFor = super::generic::StmtAsyncFor<LocationRange>;
|
|
||||||
pub type StmtWhile = super::generic::StmtWhile<LocationRange>;
|
|
||||||
pub type StmtIf = super::generic::StmtIf<LocationRange>;
|
|
||||||
pub type StmtWith = super::generic::StmtWith<LocationRange>;
|
|
||||||
pub type StmtAsyncWith = super::generic::StmtAsyncWith<LocationRange>;
|
|
||||||
pub type StmtMatch = super::generic::StmtMatch<LocationRange>;
|
|
||||||
pub type StmtRaise = super::generic::StmtRaise<LocationRange>;
|
|
||||||
pub type StmtTry = super::generic::StmtTry<LocationRange>;
|
|
||||||
pub type StmtTryStar = super::generic::StmtTryStar<LocationRange>;
|
|
||||||
pub type StmtAssert = super::generic::StmtAssert<LocationRange>;
|
|
||||||
pub type StmtImport = super::generic::StmtImport<LocationRange>;
|
|
||||||
pub type StmtImportFrom = super::generic::StmtImportFrom<LocationRange>;
|
|
||||||
pub type StmtGlobal = super::generic::StmtGlobal;
|
|
||||||
pub type StmtNonlocal = super::generic::StmtNonlocal;
|
|
||||||
pub type StmtExpr = super::generic::StmtExpr<LocationRange>;
|
|
||||||
pub type Expr = super::generic::Expr<LocationRange>;
|
|
||||||
pub type ExprKind = super::generic::ExprKind<LocationRange>;
|
|
||||||
pub type ExprBoolOp = super::generic::ExprBoolOp<LocationRange>;
|
|
||||||
pub type ExprNamedExpr = super::generic::ExprNamedExpr<LocationRange>;
|
|
||||||
pub type ExprBinOp = super::generic::ExprBinOp<LocationRange>;
|
|
||||||
pub type ExprUnaryOp = super::generic::ExprUnaryOp<LocationRange>;
|
|
||||||
pub type ExprLambda = super::generic::ExprLambda<LocationRange>;
|
|
||||||
pub type ExprIfExp = super::generic::ExprIfExp<LocationRange>;
|
|
||||||
pub type ExprDict = super::generic::ExprDict<LocationRange>;
|
|
||||||
pub type ExprSet = super::generic::ExprSet<LocationRange>;
|
|
||||||
pub type ExprListComp = super::generic::ExprListComp<LocationRange>;
|
|
||||||
pub type ExprSetComp = super::generic::ExprSetComp<LocationRange>;
|
|
||||||
pub type ExprDictComp = super::generic::ExprDictComp<LocationRange>;
|
|
||||||
pub type ExprGeneratorExp = super::generic::ExprGeneratorExp<LocationRange>;
|
|
||||||
pub type ExprAwait = super::generic::ExprAwait<LocationRange>;
|
|
||||||
pub type ExprYield = super::generic::ExprYield<LocationRange>;
|
|
||||||
pub type ExprYieldFrom = super::generic::ExprYieldFrom<LocationRange>;
|
|
||||||
pub type ExprCompare = super::generic::ExprCompare<LocationRange>;
|
|
||||||
pub type ExprCall = super::generic::ExprCall<LocationRange>;
|
|
||||||
pub type ExprFormattedValue = super::generic::ExprFormattedValue<LocationRange>;
|
|
||||||
pub type ExprJoinedStr = super::generic::ExprJoinedStr<LocationRange>;
|
|
||||||
pub type ExprConstant = super::generic::ExprConstant;
|
|
||||||
pub type ExprAttribute = super::generic::ExprAttribute<LocationRange>;
|
|
||||||
pub type ExprSubscript = super::generic::ExprSubscript<LocationRange>;
|
|
||||||
pub type ExprStarred = super::generic::ExprStarred<LocationRange>;
|
|
||||||
pub type ExprName = super::generic::ExprName;
|
|
||||||
pub type ExprList = super::generic::ExprList<LocationRange>;
|
|
||||||
pub type ExprTuple = super::generic::ExprTuple<LocationRange>;
|
|
||||||
pub type ExprSlice = super::generic::ExprSlice<LocationRange>;
|
|
||||||
pub type ExprContext = super::generic::ExprContext;
|
|
||||||
pub type Boolop = super::generic::Boolop;
|
|
||||||
pub type Operator = super::generic::Operator;
|
|
||||||
pub type Unaryop = super::generic::Unaryop;
|
|
||||||
pub type Cmpop = super::generic::Cmpop;
|
|
||||||
pub type Comprehension = super::generic::Comprehension<LocationRange>;
|
|
||||||
pub type Excepthandler = super::generic::Excepthandler<LocationRange>;
|
|
||||||
pub type ExcepthandlerKind = super::generic::ExcepthandlerKind<LocationRange>;
|
|
||||||
pub type ExcepthandlerExceptHandler = super::generic::ExcepthandlerExceptHandler<LocationRange>;
|
|
||||||
pub type Arguments = super::generic::Arguments<LocationRange>;
|
|
||||||
pub type Arg = super::generic::Arg<LocationRange>;
|
|
||||||
pub type ArgData = super::generic::ArgData<LocationRange>;
|
|
||||||
pub type Keyword = super::generic::Keyword<LocationRange>;
|
|
||||||
pub type KeywordData = super::generic::KeywordData<LocationRange>;
|
|
||||||
pub type Alias = super::generic::Alias<LocationRange>;
|
|
||||||
pub type AliasData = super::generic::AliasData;
|
|
||||||
pub type Withitem = super::generic::Withitem<LocationRange>;
|
|
||||||
pub type MatchCase = super::generic::MatchCase<LocationRange>;
|
|
||||||
pub type Pattern = super::generic::Pattern<LocationRange>;
|
|
||||||
pub type PatternKind = super::generic::PatternKind<LocationRange>;
|
|
||||||
pub type PatternMatchValue = super::generic::PatternMatchValue<LocationRange>;
|
|
||||||
pub type PatternMatchSingleton = super::generic::PatternMatchSingleton;
|
|
||||||
pub type PatternMatchSequence = super::generic::PatternMatchSequence<LocationRange>;
|
|
||||||
pub type PatternMatchMapping = super::generic::PatternMatchMapping<LocationRange>;
|
|
||||||
pub type PatternMatchClass = super::generic::PatternMatchClass<LocationRange>;
|
|
||||||
pub type PatternMatchStar = super::generic::PatternMatchStar;
|
|
||||||
pub type PatternMatchAs = super::generic::PatternMatchAs<LocationRange>;
|
|
||||||
pub type PatternMatchOr = super::generic::PatternMatchOr<LocationRange>;
|
|
||||||
pub type TypeIgnore = super::generic::TypeIgnore;
|
|
||||||
pub type TypeIgnoreTypeIgnore = super::generic::TypeIgnoreTypeIgnore;
|
|
|
@ -1,41 +1,14 @@
|
||||||
use crate::attributed::Attributed;
|
use crate::attributed::Attributed;
|
||||||
use crate::fold_helpers::Foldable;
|
use crate::fold_helpers::Foldable;
|
||||||
use rustpython_compiler_core::{
|
use crate::location::SourceRange;
|
||||||
text_size::{TextRange, TextSize},
|
use rustpython_compiler_core::SourceLocator;
|
||||||
Location, LocationRange,
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Converts source code byte-offset to Python convention line and column numbers.
|
pub fn locate<X: Foldable<(), SourceRange>>(locator: &mut SourceLocator, ast: X) -> X::Mapped {
|
||||||
#[derive(Default)]
|
ast.fold(locator).unwrap()
|
||||||
pub struct Locator<'a> {
|
|
||||||
source: &'a str,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Locator<'a> {
|
impl crate::fold::Fold<()> for SourceLocator<'_> {
|
||||||
#[inline]
|
type TargetU = SourceRange;
|
||||||
pub fn new(source: &'a str) -> Self {
|
|
||||||
Self { source }
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn source(&'a self) -> &'a str {
|
|
||||||
self.source
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn locate(&mut self, offset: TextSize) -> Location {
|
|
||||||
todo!()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn locate_range(&mut self, range: TextRange) -> LocationRange {
|
|
||||||
self.locate(range.start())..self.locate(range.end())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn locate_ast<X: Foldable<(), LocationRange>>(&mut self, ast: X) -> X::Mapped {
|
|
||||||
ast.fold(self).unwrap()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl crate::fold::Fold<()> for Locator<'_> {
|
|
||||||
type TargetU = LocationRange;
|
|
||||||
type Error = std::convert::Infallible;
|
type Error = std::convert::Infallible;
|
||||||
|
|
||||||
#[cold]
|
#[cold]
|
||||||
|
@ -47,10 +20,11 @@ impl crate::fold::Fold<()> for Locator<'_> {
|
||||||
&mut self,
|
&mut self,
|
||||||
node: Attributed<T, ()>,
|
node: Attributed<T, ()>,
|
||||||
) -> Result<Attributed<T, Self::TargetU>, Self::Error> {
|
) -> Result<Attributed<T, Self::TargetU>, Self::Error> {
|
||||||
let location = self.locate_range(node.range);
|
let start = self.locate(node.range.start());
|
||||||
|
let end = self.locate(node.range.end());
|
||||||
Ok(Attributed {
|
Ok(Attributed {
|
||||||
range: node.range,
|
range: node.range,
|
||||||
custom: location,
|
custom: (start..end).into(),
|
||||||
node: node.node,
|
node: node.node,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ num-bigint = { workspace = true }
|
||||||
num-complex = { workspace = true }
|
num-complex = { workspace = true }
|
||||||
serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] }
|
serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] }
|
||||||
ruff_text_size = { path = "../ruff_text_size" }
|
ruff_text_size = { path = "../ruff_text_size" }
|
||||||
|
ruff_python_ast = { workspace = true }
|
||||||
|
|
||||||
lz4_flex = "0.9.2"
|
lz4_flex = "0.9.2"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
//! Implement python as a virtual machine with bytecode. This module
|
//! Implement python as a virtual machine with bytecode. This module
|
||||||
//! implements bytecode structure.
|
//! implements bytecode structure.
|
||||||
|
|
||||||
use crate::{marshal, Location};
|
use crate::{
|
||||||
|
marshal,
|
||||||
|
source_code::{OneIndexed, SourceLocation},
|
||||||
|
};
|
||||||
use bitflags::bitflags;
|
use bitflags::bitflags;
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use num_bigint::BigInt;
|
use num_bigint::BigInt;
|
||||||
|
@ -89,14 +92,14 @@ impl ConstantBag for BasicBag {
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct CodeObject<C: Constant = ConstantData> {
|
pub struct CodeObject<C: Constant = ConstantData> {
|
||||||
pub instructions: Box<[CodeUnit]>,
|
pub instructions: Box<[CodeUnit]>,
|
||||||
pub locations: Box<[Location]>,
|
pub locations: Box<[SourceLocation]>,
|
||||||
pub flags: CodeFlags,
|
pub flags: CodeFlags,
|
||||||
pub posonlyarg_count: u32,
|
pub posonlyarg_count: u32,
|
||||||
// Number of positional-only arguments
|
// Number of positional-only arguments
|
||||||
pub arg_count: u32,
|
pub arg_count: u32,
|
||||||
pub kwonlyarg_count: u32,
|
pub kwonlyarg_count: u32,
|
||||||
pub source_path: C::Name,
|
pub source_path: C::Name,
|
||||||
pub first_line_number: u32,
|
pub first_line_number: OneIndexed,
|
||||||
pub max_stackdepth: u32,
|
pub max_stackdepth: u32,
|
||||||
pub obj_name: C::Name,
|
pub obj_name: C::Name,
|
||||||
// Name of the object that created this code object
|
// Name of the object that created this code object
|
||||||
|
@ -974,14 +977,14 @@ impl<C: Constant> CodeObject<C> {
|
||||||
let label_targets = self.label_targets();
|
let label_targets = self.label_targets();
|
||||||
let line_digits = (3).max(self.locations.last().unwrap().row.to_string().len());
|
let line_digits = (3).max(self.locations.last().unwrap().row.to_string().len());
|
||||||
let offset_digits = (4).max(self.instructions.len().to_string().len());
|
let offset_digits = (4).max(self.instructions.len().to_string().len());
|
||||||
let mut last_line = u32::MAX;
|
let mut last_line = OneIndexed::MAX;
|
||||||
let mut arg_state = OpArgState::default();
|
let mut arg_state = OpArgState::default();
|
||||||
for (offset, &instruction) in self.instructions.iter().enumerate() {
|
for (offset, &instruction) in self.instructions.iter().enumerate() {
|
||||||
let (instruction, arg) = arg_state.get(instruction);
|
let (instruction, arg) = arg_state.get(instruction);
|
||||||
// optional line number
|
// optional line number
|
||||||
let line = self.locations[offset].row;
|
let line = self.locations[offset].row;
|
||||||
if line != last_line {
|
if line != last_line {
|
||||||
if last_line != u32::MAX {
|
if last_line != OneIndexed::MAX {
|
||||||
writeln!(f)?;
|
writeln!(f)?;
|
||||||
}
|
}
|
||||||
last_line = line;
|
last_line = line;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{text_size::TextSize, Location};
|
use crate::{source_code::SourceLocation, text_size::TextSize};
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
|
@ -62,18 +62,23 @@ impl<T> BaseError<T> {
|
||||||
BaseError::from(self)
|
BaseError::from(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn into_located<U>(self, locator: &str) -> LocatedError<U>
|
pub fn into_located<U>(self, locator: &mut super::SourceLocator) -> LocatedError<U>
|
||||||
where
|
where
|
||||||
T: Into<U>,
|
T: Into<U>,
|
||||||
{
|
{
|
||||||
todo!()
|
let location = locator.locate(self.offset);
|
||||||
|
LocatedError {
|
||||||
|
error: self.error.into(),
|
||||||
|
location: Some(location),
|
||||||
|
source_path: self.source_path,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub struct LocatedError<T> {
|
pub struct LocatedError<T> {
|
||||||
pub error: T,
|
pub error: T,
|
||||||
pub location: Location,
|
pub location: Option<SourceLocation>,
|
||||||
pub source_path: String,
|
pub source_path: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +104,17 @@ impl<T> LocatedError<T> {
|
||||||
{
|
{
|
||||||
LocatedError::from(self)
|
LocatedError::from(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn python_location(&self) -> (usize, usize) {
|
||||||
|
if let Some(location) = self.location {
|
||||||
|
(
|
||||||
|
location.row.to_one_indexed(),
|
||||||
|
location.column.to_one_indexed(),
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
(0, 0)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Display for LocatedError<T>
|
impl<T> Display for LocatedError<T>
|
||||||
|
@ -106,11 +122,10 @@ where
|
||||||
T: std::fmt::Display,
|
T: std::fmt::Display,
|
||||||
{
|
{
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
write!(
|
let (row, column) = self.location.map_or((0, 0), |l| {
|
||||||
f,
|
(l.row.to_one_indexed(), l.column.to_one_indexed())
|
||||||
"{} at row {} col {}",
|
});
|
||||||
&self.error, self.location.row, self.location.column,
|
write!(f, "{} at row {} col {}", &self.error, row, column,)
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,41 @@
|
||||||
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/main/logo.png")]
|
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/main/logo.png")]
|
||||||
#![doc(html_root_url = "https://docs.rs/rustpython-compiler-core/")]
|
#![doc(html_root_url = "https://docs.rs/rustpython-compiler-core/")]
|
||||||
|
|
||||||
mod bytecode;
|
// parser core
|
||||||
mod error;
|
mod error;
|
||||||
mod location;
|
|
||||||
pub mod marshal;
|
|
||||||
mod mode;
|
mod mode;
|
||||||
|
|
||||||
pub use bytecode::*;
|
pub use error::BaseError;
|
||||||
pub use error::{BaseError, LocatedError};
|
|
||||||
pub use location::{Location, LocationRange};
|
|
||||||
pub use mode::Mode;
|
pub use mode::Mode;
|
||||||
|
|
||||||
pub use ruff_text_size as text_size; // re-export mandatory and frequently accessed dependency
|
pub use ruff_text_size as text_size; // re-export mandatory and frequently accessed dependency
|
||||||
|
|
||||||
// FIXME: temp code
|
// compiler core
|
||||||
pub fn to_location(offset: &text_size::TextSize, source: &str) -> Location {
|
mod bytecode;
|
||||||
todo!()
|
pub mod marshal;
|
||||||
|
|
||||||
|
pub use bytecode::*;
|
||||||
|
pub use error::LocatedError;
|
||||||
|
pub use ruff_python_ast::source_code;
|
||||||
|
pub use ruff_python_ast::source_code::OneIndexed as LineNumber;
|
||||||
|
|
||||||
|
use source_code::{LineIndex, SourceCode, SourceLocation};
|
||||||
|
use text_size::TextSize;
|
||||||
|
/// Converts source code byte-offset to Python convention line and column numbers.
|
||||||
|
pub struct SourceLocator<'a> {
|
||||||
|
pub source: &'a str,
|
||||||
|
index: LineIndex,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> SourceLocator<'a> {
|
||||||
|
#[inline]
|
||||||
|
pub fn new(source: &'a str) -> Self {
|
||||||
|
let index = LineIndex::from_source_text(source);
|
||||||
|
Self { source, index }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn locate(&mut self, offset: TextSize) -> SourceLocation {
|
||||||
|
let code = SourceCode::new(self.source, &self.index);
|
||||||
|
let offset = unsafe { std::mem::transmute(offset) }; // temp code to fix text_size dependency
|
||||||
|
code.source_location(offset)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,127 +0,0 @@
|
||||||
/// Source code location.
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
|
||||||
pub struct Location {
|
|
||||||
pub(super) row: u32,
|
|
||||||
pub(super) column: u32,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Default for Location {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self { row: 1, column: 0 }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Location {
|
|
||||||
pub fn fmt_with(
|
|
||||||
&self,
|
|
||||||
f: &mut impl std::fmt::Write,
|
|
||||||
e: &impl std::fmt::Display,
|
|
||||||
) -> std::fmt::Result {
|
|
||||||
write!(f, "{} at line {} column {}", e, self.row(), self.column())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Location {
|
|
||||||
/// Creates a new Location object at the given row and column.
|
|
||||||
///
|
|
||||||
/// # Example
|
|
||||||
/// ```
|
|
||||||
/// use rustpython_compiler_core::Location;
|
|
||||||
/// let loc = Location::new(10, 10);
|
|
||||||
/// ```
|
|
||||||
pub fn new(row: usize, column: usize) -> Self {
|
|
||||||
let row = row.try_into().expect("Location::row over u32");
|
|
||||||
let column = column.try_into().expect("Location::column over u32");
|
|
||||||
Location { row, column }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Current row
|
|
||||||
pub fn row(&self) -> usize {
|
|
||||||
self.row as usize
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Current column
|
|
||||||
pub fn column(&self) -> usize {
|
|
||||||
self.column as usize
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn reset(&mut self) {
|
|
||||||
self.row = 1;
|
|
||||||
self.column = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn go_right(&mut self) {
|
|
||||||
self.column += 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn go_left(&mut self) {
|
|
||||||
self.column -= 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn newline(&mut self) {
|
|
||||||
self.row += 1;
|
|
||||||
self.column = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_col_offset<T: TryInto<isize>>(&self, offset: T) -> Self
|
|
||||||
where
|
|
||||||
<T as TryInto<isize>>::Error: std::fmt::Debug,
|
|
||||||
{
|
|
||||||
let column = (self.column as isize
|
|
||||||
+ offset
|
|
||||||
.try_into()
|
|
||||||
.expect("offset should be able to convert to isize")) as u32;
|
|
||||||
Self {
|
|
||||||
row: self.row,
|
|
||||||
column,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_row_offset<T: TryInto<isize>>(&self, offset: T) -> Self
|
|
||||||
where
|
|
||||||
<T as TryInto<isize>>::Error: std::fmt::Debug,
|
|
||||||
{
|
|
||||||
let row = (self.row as isize
|
|
||||||
+ offset
|
|
||||||
.try_into()
|
|
||||||
.expect("offset should be able to convert to isize")) as u32;
|
|
||||||
Self {
|
|
||||||
row,
|
|
||||||
column: self.column,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub type LocationRange = std::ops::Range<Location>;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_gt() {
|
|
||||||
assert!(Location::new(1, 2) > Location::new(1, 1));
|
|
||||||
assert!(Location::new(2, 1) > Location::new(1, 1));
|
|
||||||
assert!(Location::new(2, 1) > Location::new(1, 2));
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_lt() {
|
|
||||||
assert!(Location::new(1, 1) < Location::new(1, 2));
|
|
||||||
assert!(Location::new(1, 1) < Location::new(2, 1));
|
|
||||||
assert!(Location::new(1, 2) < Location::new(2, 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_with_col_offset() {
|
|
||||||
assert_eq!(Location::new(1, 1).with_col_offset(1), Location::new(1, 2));
|
|
||||||
assert_eq!(Location::new(1, 1).with_col_offset(-1), Location::new(1, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_with_row_offset() {
|
|
||||||
assert_eq!(Location::new(1, 1).with_row_offset(1), Location::new(2, 1));
|
|
||||||
assert_eq!(Location::new(1, 1).with_row_offset(-1), Location::new(0, 1));
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -4,7 +4,10 @@ use std::convert::Infallible;
|
||||||
use num_bigint::{BigInt, Sign};
|
use num_bigint::{BigInt, Sign};
|
||||||
use num_complex::Complex64;
|
use num_complex::Complex64;
|
||||||
|
|
||||||
use crate::{bytecode::*, Location};
|
use crate::{
|
||||||
|
bytecode::*,
|
||||||
|
source_code::{OneIndexed, SourceLocation},
|
||||||
|
};
|
||||||
|
|
||||||
pub const FORMAT_VERSION: u32 = 4;
|
pub const FORMAT_VERSION: u32 = 4;
|
||||||
|
|
||||||
|
@ -16,6 +19,8 @@ pub enum MarshalError {
|
||||||
InvalidBytecode,
|
InvalidBytecode,
|
||||||
/// Invalid utf8 in string
|
/// Invalid utf8 in string
|
||||||
InvalidUtf8,
|
InvalidUtf8,
|
||||||
|
/// Invalid source location
|
||||||
|
InvalidLocation,
|
||||||
/// Bad type marker
|
/// Bad type marker
|
||||||
BadType,
|
BadType,
|
||||||
}
|
}
|
||||||
|
@ -26,6 +31,7 @@ impl fmt::Display for MarshalError {
|
||||||
Self::Eof => f.write_str("unexpected end of data"),
|
Self::Eof => f.write_str("unexpected end of data"),
|
||||||
Self::InvalidBytecode => f.write_str("invalid bytecode"),
|
Self::InvalidBytecode => f.write_str("invalid bytecode"),
|
||||||
Self::InvalidUtf8 => f.write_str("invalid utf8"),
|
Self::InvalidUtf8 => f.write_str("invalid utf8"),
|
||||||
|
Self::InvalidLocation => f.write_str("invalid source location"),
|
||||||
Self::BadType => f.write_str("bad type marker"),
|
Self::BadType => f.write_str("bad type marker"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,12 +189,12 @@ pub fn deserialize_code<R: Read, Bag: ConstantBag>(
|
||||||
let len = rdr.read_u32()?;
|
let len = rdr.read_u32()?;
|
||||||
let locations = (0..len)
|
let locations = (0..len)
|
||||||
.map(|_| {
|
.map(|_| {
|
||||||
Ok(Location {
|
Ok(SourceLocation {
|
||||||
row: rdr.read_u32()?,
|
row: OneIndexed::new(rdr.read_u32()?).ok_or(MarshalError::InvalidLocation)?,
|
||||||
column: rdr.read_u32()?,
|
column: OneIndexed::new(rdr.read_u32()?).ok_or(MarshalError::InvalidLocation)?,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.collect::<Result<Box<[Location]>>>()?;
|
.collect::<Result<Box<[SourceLocation]>>>()?;
|
||||||
|
|
||||||
let flags = CodeFlags::from_bits_truncate(rdr.read_u16()?);
|
let flags = CodeFlags::from_bits_truncate(rdr.read_u16()?);
|
||||||
|
|
||||||
|
@ -199,7 +205,8 @@ pub fn deserialize_code<R: Read, Bag: ConstantBag>(
|
||||||
let len = rdr.read_u32()?;
|
let len = rdr.read_u32()?;
|
||||||
let source_path = bag.make_name(rdr.read_str(len)?);
|
let source_path = bag.make_name(rdr.read_str(len)?);
|
||||||
|
|
||||||
let first_line_number = rdr.read_u32()?;
|
let first_line_number =
|
||||||
|
OneIndexed::new(rdr.read_u32()?).ok_or(MarshalError::InvalidLocation)?;
|
||||||
let max_stackdepth = rdr.read_u32()?;
|
let max_stackdepth = rdr.read_u32()?;
|
||||||
|
|
||||||
let len = rdr.read_u32()?;
|
let len = rdr.read_u32()?;
|
||||||
|
@ -586,8 +593,8 @@ pub fn serialize_code<W: Write, C: Constant>(buf: &mut W, code: &CodeObject<C>)
|
||||||
|
|
||||||
write_len(buf, code.locations.len());
|
write_len(buf, code.locations.len());
|
||||||
for loc in &*code.locations {
|
for loc in &*code.locations {
|
||||||
buf.write_u32(loc.row);
|
buf.write_u32(loc.row.get() as _);
|
||||||
buf.write_u32(loc.column);
|
buf.write_u32(loc.column.get() as _);
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.write_u16(code.flags.bits());
|
buf.write_u16(code.flags.bits());
|
||||||
|
@ -598,7 +605,7 @@ pub fn serialize_code<W: Write, C: Constant>(buf: &mut W, code: &CodeObject<C>)
|
||||||
|
|
||||||
write_vec(buf, code.source_path.as_ref().as_bytes());
|
write_vec(buf, code.source_path.as_ref().as_bytes());
|
||||||
|
|
||||||
buf.write_u32(code.first_line_number);
|
buf.write_u32(code.first_line_number.get());
|
||||||
buf.write_u32(code.max_stackdepth);
|
buf.write_u32(code.max_stackdepth);
|
||||||
|
|
||||||
write_vec(buf, code.obj_name.as_ref().as_bytes());
|
write_vec(buf, code.obj_name.as_ref().as_bytes());
|
||||||
|
|
|
@ -19,7 +19,7 @@ type ParameterDef = (ast::Arg, Option<ast::Expr>);
|
||||||
pub(crate) fn validate_arguments(
|
pub(crate) fn validate_arguments(
|
||||||
arguments: ast::Arguments,
|
arguments: ast::Arguments,
|
||||||
) -> Result<ast::Arguments, LexicalError> {
|
) -> Result<ast::Arguments, LexicalError> {
|
||||||
let mut all_args: Vec<&ast::Located<ast::ArgData>> = vec![];
|
let mut all_args: Vec<&ast::Attributed<ast::ArgData>> = vec![];
|
||||||
|
|
||||||
all_args.extend(arguments.posonlyargs.iter());
|
all_args.extend(arguments.posonlyargs.iter());
|
||||||
all_args.extend(arguments.args.iter());
|
all_args.extend(arguments.args.iter());
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..10,
|
range: 0..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: AnnAssign(
|
node: AnnAssign(
|
||||||
StmtAnnAssign {
|
StmtAnnAssign {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -18,7 +18,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
annotation: Located {
|
annotation: Attributed {
|
||||||
range: 3..6,
|
range: 3..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -29,7 +29,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
value: Some(
|
value: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..3,
|
range: 0..3,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -30,13 +30,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 6..15,
|
range: 6..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -48,7 +48,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -60,7 +60,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..24,
|
range: 0..24,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: For(
|
node: For(
|
||||||
StmtFor {
|
StmtFor {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 4..5,
|
range: 4..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -18,13 +18,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 9..18,
|
range: 9..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -36,7 +36,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -48,7 +48,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -66,7 +66,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 20..24,
|
range: 20..24,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -3,19 +3,19 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..18,
|
range: 0..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..6,
|
range: 0..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: List(
|
node: List(
|
||||||
ExprList {
|
ExprList {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -25,7 +25,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 4..5,
|
range: 4..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -41,13 +41,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 9..18,
|
range: 9..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -59,7 +59,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -71,7 +71,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,13 +3,13 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -20,12 +20,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 4..26,
|
range: 4..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ListComp(
|
node: ListComp(
|
||||||
ExprListComp {
|
ExprListComp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -37,7 +37,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 11..12,
|
range: 11..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -47,13 +47,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 16..25,
|
range: 16..25,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 17..18,
|
range: 17..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -65,7 +65,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 20..21,
|
range: 20..21,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -77,7 +77,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 23..24,
|
range: 23..24,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,13 +3,13 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..13,
|
range: 0..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -20,13 +20,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 4..13,
|
range: 4..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -38,7 +38,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 8..9,
|
range: 8..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -50,7 +50,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 11..12,
|
range: 11..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,17 +3,17 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: If(
|
node: If(
|
||||||
StmtIf {
|
StmtIf {
|
||||||
test: Located {
|
test: Attributed {
|
||||||
range: 3..8,
|
range: 3..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: NamedExpr(
|
node: NamedExpr(
|
||||||
ExprNamedExpr {
|
ExprNamedExpr {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 3..4,
|
range: 3..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -23,7 +23,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -39,7 +39,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..14,
|
range: 10..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -3,13 +3,13 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -20,12 +20,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 4..26,
|
range: 4..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: SetComp(
|
node: SetComp(
|
||||||
ExprSetComp {
|
ExprSetComp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -37,7 +37,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 11..12,
|
range: 11..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -47,13 +47,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 16..25,
|
range: 16..25,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 17..18,
|
range: 17..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -65,7 +65,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 20..21,
|
range: 20..21,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -77,7 +77,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 23..24,
|
range: 23..24,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,19 +3,19 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..19,
|
range: 0..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..7,
|
range: 0..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -25,12 +25,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 4..6,
|
range: 4..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -50,13 +50,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 10..19,
|
range: 10..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 11..12,
|
range: 11..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -68,7 +68,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 14..15,
|
range: 14..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -80,7 +80,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 17..18,
|
range: 17..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..16,
|
range: 0..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..4,
|
range: 0..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -24,7 +24,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 2..3,
|
range: 2..3,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -39,13 +39,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 7..16,
|
range: 7..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 8..9,
|
range: 8..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -57,7 +57,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 11..12,
|
range: 11..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -69,7 +69,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 14..15,
|
range: 14..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,19 +3,19 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..18,
|
range: 0..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..6,
|
range: 0..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -25,7 +25,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 4..5,
|
range: 4..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -41,13 +41,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 9..18,
|
range: 9..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -59,7 +59,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -71,7 +71,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,14 +3,14 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: With(
|
node: With(
|
||||||
StmtWith {
|
StmtWith {
|
||||||
items: [
|
items: [
|
||||||
Withitem {
|
Withitem {
|
||||||
context_expr: Located {
|
context_expr: Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -23,7 +23,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
optional_vars: Some(
|
optional_vars: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -37,7 +37,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..17,
|
range: 13..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -3,17 +3,17 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..16,
|
range: 0..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: AugAssign(
|
node: AugAssign(
|
||||||
StmtAugAssign {
|
StmtAugAssign {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 0..3,
|
range: 0..3,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -29,13 +29,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 7..16,
|
range: 7..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 8..9,
|
range: 8..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -47,7 +47,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 11..12,
|
range: 11..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -59,7 +59,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 14..15,
|
range: 14..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..6,
|
range: 0..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: AugAssign(
|
node: AugAssign(
|
||||||
StmtAugAssign {
|
StmtAugAssign {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -19,7 +19,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,17 +3,17 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: AugAssign(
|
node: AugAssign(
|
||||||
StmtAugAssign {
|
StmtAugAssign {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 0..4,
|
range: 0..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -23,7 +23,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 2..3,
|
range: 2..3,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -38,13 +38,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 8..17,
|
range: 8..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -56,7 +56,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -68,7 +68,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 15..16,
|
range: 15..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..7,
|
range: 0..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Delete(
|
node: Delete(
|
||||||
StmtDelete {
|
StmtDelete {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 4..7,
|
range: 4..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 4..5,
|
range: 4..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,13 +3,13 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..5,
|
range: 0..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Delete(
|
node: Delete(
|
||||||
StmtDelete {
|
StmtDelete {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 4..5,
|
range: 4..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/context.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Delete(
|
node: Delete(
|
||||||
StmtDelete {
|
StmtDelete {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 4..8,
|
range: 4..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 4..5,
|
range: 4..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -24,7 +24,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..23,
|
range: 0..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -15,7 +15,7 @@ Ok(
|
||||||
args: [],
|
args: [],
|
||||||
vararg: None,
|
vararg: None,
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -24,7 +24,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -33,7 +33,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 15..16,
|
range: 15..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -48,7 +48,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 19..23,
|
range: 19..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..29,
|
range: 0..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -15,7 +15,7 @@ Ok(
|
||||||
args: [],
|
args: [],
|
||||||
vararg: None,
|
vararg: None,
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -24,7 +24,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -33,7 +33,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 18..19,
|
range: 18..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -44,7 +44,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
kw_defaults: [
|
kw_defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 14..16,
|
range: 14..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -56,7 +56,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 20..22,
|
range: 20..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -73,7 +73,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 25..29,
|
range: 25..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..13,
|
range: 0..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -20,7 +20,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..13,
|
range: 9..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..32,
|
range: 0..32,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -13,7 +13,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -22,7 +22,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -31,7 +31,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -43,7 +43,7 @@ Ok(
|
||||||
],
|
],
|
||||||
vararg: None,
|
vararg: None,
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 18..19,
|
range: 18..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -52,7 +52,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 21..22,
|
range: 21..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -61,7 +61,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 24..25,
|
range: 24..25,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -76,7 +76,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 28..32,
|
range: 28..32,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -13,7 +13,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -22,7 +22,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -31,7 +31,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -43,7 +43,7 @@ Ok(
|
||||||
],
|
],
|
||||||
vararg: None,
|
vararg: None,
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 18..19,
|
range: 18..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -52,7 +52,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 21..22,
|
range: 21..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -61,7 +61,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 27..28,
|
range: 27..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -72,7 +72,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
kw_defaults: [
|
kw_defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 23..25,
|
range: 23..25,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -84,7 +84,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 29..31,
|
range: 29..31,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -101,7 +101,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 34..38,
|
range: 34..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..42,
|
range: 0..42,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -13,7 +13,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -22,7 +22,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -31,7 +31,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -42,7 +42,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
vararg: Some(
|
vararg: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..20,
|
range: 16..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -53,7 +53,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 22..23,
|
range: 22..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -62,7 +62,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 25..26,
|
range: 25..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -71,7 +71,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 31..32,
|
range: 31..32,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -82,7 +82,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
kw_defaults: [
|
kw_defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 27..29,
|
range: 27..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -94,7 +94,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 33..35,
|
range: 33..35,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -111,7 +111,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 38..42,
|
range: 38..42,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..52,
|
range: 0..52,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -13,7 +13,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -22,7 +22,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -31,7 +31,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -42,7 +42,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
vararg: Some(
|
vararg: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..20,
|
range: 16..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -53,7 +53,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 22..23,
|
range: 22..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -62,7 +62,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 25..26,
|
range: 25..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -71,7 +71,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 31..32,
|
range: 31..32,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -82,7 +82,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
kw_defaults: [
|
kw_defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 27..29,
|
range: 27..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -94,7 +94,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 33..35,
|
range: 33..35,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -108,7 +108,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
kwarg: Some(
|
kwarg: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 39..45,
|
range: 39..45,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -121,7 +121,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 48..52,
|
range: 48..52,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..20,
|
range: 0..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -13,7 +13,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -22,7 +22,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -31,7 +31,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -48,7 +48,7 @@ Ok(
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..20,
|
range: 16..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,7 +4,7 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -13,7 +13,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -22,7 +22,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..10,
|
range: 9..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -31,7 +31,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 15..16,
|
range: 15..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -46,7 +46,7 @@ Ok(
|
||||||
kw_defaults: [],
|
kw_defaults: [],
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [
|
defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 11..13,
|
range: 11..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -58,7 +58,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 17..19,
|
range: 17..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -73,7 +73,7 @@ Ok(
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 22..26,
|
range: 22..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -4,12 +4,12 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..20,
|
range: 0..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..20,
|
range: 0..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -19,7 +19,7 @@ Ok(
|
||||||
args: [],
|
args: [],
|
||||||
vararg: None,
|
vararg: None,
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -28,7 +28,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -37,7 +37,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -51,7 +51,7 @@ Ok(
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 19..20,
|
range: 19..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -4,12 +4,12 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -19,7 +19,7 @@ Ok(
|
||||||
args: [],
|
args: [],
|
||||||
vararg: None,
|
vararg: None,
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -28,7 +28,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -37,7 +37,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 19..20,
|
range: 19..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -48,7 +48,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
kw_defaults: [
|
kw_defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 15..17,
|
range: 15..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -60,7 +60,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 21..23,
|
range: 21..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -76,7 +76,7 @@ Ok(
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 25..26,
|
range: 25..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -4,12 +4,12 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -23,7 +23,7 @@ Ok(
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 8..9,
|
range: 8..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -4,12 +4,12 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -17,7 +17,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -26,7 +26,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -35,7 +35,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -47,7 +47,7 @@ Ok(
|
||||||
],
|
],
|
||||||
vararg: None,
|
vararg: None,
|
||||||
kwonlyargs: [
|
kwonlyargs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 19..20,
|
range: 19..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -56,7 +56,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 22..23,
|
range: 22..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -70,7 +70,7 @@ Ok(
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 25..26,
|
range: 25..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -4,12 +4,12 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -17,7 +17,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -26,7 +26,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -35,7 +35,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -51,7 +51,7 @@ Ok(
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -4,12 +4,12 @@ expression: parse_ast
|
||||||
---
|
---
|
||||||
Ok(
|
Ok(
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..23,
|
range: 0..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..23,
|
range: 0..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -17,7 +17,7 @@ Ok(
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -26,7 +26,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -35,7 +35,7 @@ Ok(
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -50,7 +50,7 @@ Ok(
|
||||||
kw_defaults: [],
|
kw_defaults: [],
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [
|
defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 12..14,
|
range: 12..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -62,7 +62,7 @@ Ok(
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 18..20,
|
range: 18..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -76,7 +76,7 @@ Ok(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 22..23,
|
range: 22..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..25,
|
range: 0..25,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Dict(
|
node: Dict(
|
||||||
ExprDict {
|
ExprDict {
|
||||||
keys: [
|
keys: [
|
||||||
Some(
|
Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..4,
|
range: 1..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -24,7 +24,7 @@ Located {
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
Some(
|
Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..19,
|
range: 16..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -39,7 +39,7 @@ Located {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..9,
|
range: 6..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -51,7 +51,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -61,7 +61,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 21..24,
|
range: 21..24,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..141,
|
range: 0..141,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..3,
|
range: 0..3,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -30,12 +30,12 @@ Located {
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 14..139,
|
range: 14..139,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: GeneratorExp(
|
node: GeneratorExp(
|
||||||
ExprGeneratorExp {
|
ExprGeneratorExp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 14..17,
|
range: 14..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -47,7 +47,7 @@ Located {
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 26..29,
|
range: 26..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -57,18 +57,18 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 33..139,
|
range: 33..139,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 43..80,
|
range: 43..80,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: IfExp(
|
node: IfExp(
|
||||||
ExprIfExp {
|
ExprIfExp {
|
||||||
test: Located {
|
test: Attributed {
|
||||||
range: 65..70,
|
range: 65..70,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -78,12 +78,12 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 43..61,
|
range: 43..61,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 43..53,
|
range: 43..53,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -96,7 +96,7 @@ Located {
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mod,
|
op: Mod,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 56..61,
|
range: 56..61,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -109,7 +109,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
orelse: Located {
|
orelse: Attributed {
|
||||||
range: 76..80,
|
range: 76..80,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -122,12 +122,12 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 90..132,
|
range: 90..132,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: IfExp(
|
node: IfExp(
|
||||||
ExprIfExp {
|
ExprIfExp {
|
||||||
test: Located {
|
test: Attributed {
|
||||||
range: 116..122,
|
range: 116..122,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -137,12 +137,12 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 91..111,
|
range: 91..111,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 91..102,
|
range: 91..102,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -155,7 +155,7 @@ Located {
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mod,
|
op: Mod,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 105..111,
|
range: 105..111,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -168,7 +168,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
orelse: Located {
|
orelse: Attributed {
|
||||||
range: 128..132,
|
range: 128..132,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,19 +3,19 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..73,
|
range: 1..73,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Match(
|
node: Match(
|
||||||
StmtMatch {
|
StmtMatch {
|
||||||
subject: Located {
|
subject: Attributed {
|
||||||
range: 7..18,
|
range: 7..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Dict(
|
node: Dict(
|
||||||
ExprDict {
|
ExprDict {
|
||||||
keys: [
|
keys: [
|
||||||
Some(
|
Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 8..14,
|
range: 8..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -30,7 +30,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -48,7 +48,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
cases: [
|
cases: [
|
||||||
MatchCase {
|
MatchCase {
|
||||||
pattern: Located {
|
pattern: Attributed {
|
||||||
range: 29..52,
|
range: 29..52,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchMapping(
|
node: MatchMapping(
|
||||||
|
@ -63,17 +63,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
guard: None,
|
guard: None,
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 62..73,
|
range: 62..73,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 62..73,
|
range: 62..73,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 62..67,
|
range: 62..67,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -84,7 +84,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 68..72,
|
range: 68..72,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -108,19 +108,19 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 74..177,
|
range: 74..177,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Match(
|
node: Match(
|
||||||
StmtMatch {
|
StmtMatch {
|
||||||
subject: Located {
|
subject: Attributed {
|
||||||
range: 80..97,
|
range: 80..97,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Dict(
|
node: Dict(
|
||||||
ExprDict {
|
ExprDict {
|
||||||
keys: [
|
keys: [
|
||||||
Some(
|
Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 81..88,
|
range: 81..88,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -135,7 +135,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 90..96,
|
range: 90..96,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -153,13 +153,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
cases: [
|
cases: [
|
||||||
MatchCase {
|
MatchCase {
|
||||||
pattern: Located {
|
pattern: Attributed {
|
||||||
range: 108..155,
|
range: 108..155,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchMapping(
|
node: MatchMapping(
|
||||||
PatternMatchMapping {
|
PatternMatchMapping {
|
||||||
keys: [
|
keys: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 118..125,
|
range: 118..125,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -173,24 +173,24 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
patterns: [
|
patterns: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 127..148,
|
range: 127..148,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchAs(
|
node: MatchAs(
|
||||||
PatternMatchAs {
|
PatternMatchAs {
|
||||||
pattern: Some(
|
pattern: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 127..139,
|
range: 127..139,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchOr(
|
node: MatchOr(
|
||||||
PatternMatchOr {
|
PatternMatchOr {
|
||||||
patterns: [
|
patterns: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 127..132,
|
range: 127..132,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchClass(
|
node: MatchClass(
|
||||||
PatternMatchClass {
|
PatternMatchClass {
|
||||||
cls: Located {
|
cls: Attributed {
|
||||||
range: 127..130,
|
range: 127..130,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -206,7 +206,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 135..139,
|
range: 135..139,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchSingleton(
|
node: MatchSingleton(
|
||||||
|
@ -233,17 +233,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
guard: None,
|
guard: None,
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 165..177,
|
range: 165..177,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 165..177,
|
range: 165..177,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 165..170,
|
range: 165..170,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -254,7 +254,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 171..176,
|
range: 171..176,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -278,12 +278,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 178..218,
|
range: 178..218,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Match(
|
node: Match(
|
||||||
StmtMatch {
|
StmtMatch {
|
||||||
subject: Located {
|
subject: Attributed {
|
||||||
range: 184..185,
|
range: 184..185,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -295,18 +295,18 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
cases: [
|
cases: [
|
||||||
MatchCase {
|
MatchCase {
|
||||||
pattern: Located {
|
pattern: Attributed {
|
||||||
range: 196..203,
|
range: 196..203,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchSequence(
|
node: MatchSequence(
|
||||||
PatternMatchSequence {
|
PatternMatchSequence {
|
||||||
patterns: [
|
patterns: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 197..198,
|
range: 197..198,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchValue(
|
node: MatchValue(
|
||||||
PatternMatchValue {
|
PatternMatchValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 197..198,
|
range: 197..198,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -321,12 +321,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 200..201,
|
range: 200..201,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchValue(
|
node: MatchValue(
|
||||||
PatternMatchValue {
|
PatternMatchValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 200..201,
|
range: 200..201,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -347,13 +347,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
guard: None,
|
guard: None,
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 213..218,
|
range: 213..218,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 213..214,
|
range: 213..214,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -364,7 +364,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 217..218,
|
range: 217..218,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -386,12 +386,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 219..259,
|
range: 219..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Match(
|
node: Match(
|
||||||
StmtMatch {
|
StmtMatch {
|
||||||
subject: Located {
|
subject: Attributed {
|
||||||
range: 225..226,
|
range: 225..226,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -403,18 +403,18 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
cases: [
|
cases: [
|
||||||
MatchCase {
|
MatchCase {
|
||||||
pattern: Located {
|
pattern: Attributed {
|
||||||
range: 237..244,
|
range: 237..244,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchSequence(
|
node: MatchSequence(
|
||||||
PatternMatchSequence {
|
PatternMatchSequence {
|
||||||
patterns: [
|
patterns: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 238..239,
|
range: 238..239,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchValue(
|
node: MatchValue(
|
||||||
PatternMatchValue {
|
PatternMatchValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 238..239,
|
range: 238..239,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -429,12 +429,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 241..242,
|
range: 241..242,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchValue(
|
node: MatchValue(
|
||||||
PatternMatchValue {
|
PatternMatchValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 241..242,
|
range: 241..242,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -455,13 +455,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
guard: None,
|
guard: None,
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 254..259,
|
range: 254..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 254..255,
|
range: 254..255,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -472,7 +472,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 258..259,
|
range: 258..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -494,12 +494,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 260..297,
|
range: 260..297,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Match(
|
node: Match(
|
||||||
StmtMatch {
|
StmtMatch {
|
||||||
subject: Located {
|
subject: Attributed {
|
||||||
range: 266..267,
|
range: 266..267,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -511,18 +511,18 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
cases: [
|
cases: [
|
||||||
MatchCase {
|
MatchCase {
|
||||||
pattern: Located {
|
pattern: Attributed {
|
||||||
range: 278..282,
|
range: 278..282,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchSequence(
|
node: MatchSequence(
|
||||||
PatternMatchSequence {
|
PatternMatchSequence {
|
||||||
patterns: [
|
patterns: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 279..280,
|
range: 279..280,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchValue(
|
node: MatchValue(
|
||||||
PatternMatchValue {
|
PatternMatchValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 279..280,
|
range: 279..280,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -543,13 +543,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
guard: None,
|
guard: None,
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 292..297,
|
range: 292..297,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 292..293,
|
range: 292..293,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -560,7 +560,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 296..297,
|
range: 296..297,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,28 +3,28 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..16,
|
range: 1..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 1..16,
|
range: 1..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..13,
|
range: 1..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 1..9,
|
range: 1..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 1..6,
|
range: 1..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -35,7 +35,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mult,
|
op: Mult,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 8..9,
|
range: 8..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -49,7 +49,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -62,7 +62,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 15..16,
|
range: 15..16,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -80,23 +80,23 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 42..59,
|
range: 42..59,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 42..59,
|
range: 42..59,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 42..56,
|
range: 42..56,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 42..47,
|
range: 42..47,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -107,12 +107,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mult,
|
op: Mult,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 50..55,
|
range: 50..55,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 50..51,
|
range: 50..51,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -123,7 +123,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 54..55,
|
range: 54..55,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -139,7 +139,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 58..59,
|
range: 58..59,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -157,17 +157,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 85..102,
|
range: 85..102,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 85..102,
|
range: 85..102,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 85..90,
|
range: 85..90,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -178,17 +178,17 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 92..98,
|
range: 92..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 93..98,
|
range: 93..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 93..94,
|
range: 93..94,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -199,7 +199,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 97..98,
|
range: 97..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -216,7 +216,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 100..101,
|
range: 100..101,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -234,22 +234,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 129..145,
|
range: 129..145,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 129..145,
|
range: 129..145,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 129..141,
|
range: 129..141,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 129..134,
|
range: 129..134,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -260,12 +260,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Sub,
|
op: Sub,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 136..141,
|
range: 136..141,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 136..137,
|
range: 136..137,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -276,7 +276,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mult,
|
op: Mult,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 140..141,
|
range: 140..141,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -293,7 +293,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 144..145,
|
range: 144..145,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -309,22 +309,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 172..190,
|
range: 172..190,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 172..190,
|
range: 172..190,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 172..186,
|
range: 172..186,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 172..177,
|
range: 172..177,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -335,12 +335,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Sub,
|
op: Sub,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 180..185,
|
range: 180..185,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 180..181,
|
range: 180..181,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -351,7 +351,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mult,
|
op: Mult,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 184..185,
|
range: 184..185,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -368,7 +368,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 189..190,
|
range: 189..190,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -384,27 +384,27 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 217..235,
|
range: 217..235,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 217..235,
|
range: 217..235,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 217..231,
|
range: 217..231,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 217..227,
|
range: 217..227,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 217..222,
|
range: 217..222,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -415,13 +415,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 224..226,
|
range: 224..226,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: UnaryOp(
|
node: UnaryOp(
|
||||||
ExprUnaryOp {
|
ExprUnaryOp {
|
||||||
op: USub,
|
op: USub,
|
||||||
operand: Located {
|
operand: Attributed {
|
||||||
range: 225..226,
|
range: 225..226,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -440,7 +440,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mult,
|
op: Mult,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 230..231,
|
range: 230..231,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -454,7 +454,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 234..235,
|
range: 234..235,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -470,22 +470,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 263..273,
|
range: 263..273,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 263..273,
|
range: 263..273,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 263..271,
|
range: 263..271,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 263..268,
|
range: 263..268,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -508,22 +508,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 290..302,
|
range: 290..302,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 290..302,
|
range: 290..302,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 290..300,
|
range: 290..300,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 290..295,
|
range: 290..295,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -534,7 +534,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 297..299,
|
range: 297..299,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
|
@ -557,22 +557,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 321..334,
|
range: 321..334,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 321..334,
|
range: 321..334,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 321..332,
|
range: 321..332,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 321..326,
|
range: 321..326,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -583,7 +583,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 328..330,
|
range: 328..330,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
|
@ -606,22 +606,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 353..364,
|
range: 353..364,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 353..364,
|
range: 353..364,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 353..362,
|
range: 353..362,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 353..358,
|
range: 353..358,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -631,7 +631,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 360..361,
|
range: 360..361,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -653,22 +653,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 382..394,
|
range: 382..394,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 382..394,
|
range: 382..394,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 382..392,
|
range: 382..392,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 382..387,
|
range: 382..387,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -678,13 +678,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 389..391,
|
range: 389..391,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 389..390,
|
range: 389..390,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -711,22 +711,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 435..449,
|
range: 435..449,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 435..449,
|
range: 435..449,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 435..447,
|
range: 435..447,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 435..440,
|
range: 435..440,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -736,13 +736,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 442..446,
|
range: 442..446,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 443..444,
|
range: 443..444,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -769,22 +769,22 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 470..487,
|
range: 470..487,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 470..487,
|
range: 470..487,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 470..477,
|
range: 470..477,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 470..475,
|
range: 470..475,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -799,13 +799,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 478..486,
|
range: 478..486,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Slice(
|
node: Slice(
|
||||||
ExprSlice {
|
ExprSlice {
|
||||||
lower: Some(
|
lower: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 478..479,
|
range: 478..479,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -817,7 +817,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
upper: Some(
|
upper: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 485..486,
|
range: 485..486,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -839,17 +839,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 507..526,
|
range: 507..526,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: If(
|
node: If(
|
||||||
StmtIf {
|
StmtIf {
|
||||||
test: Located {
|
test: Attributed {
|
||||||
range: 510..520,
|
range: 510..520,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: NamedExpr(
|
node: NamedExpr(
|
||||||
ExprNamedExpr {
|
ExprNamedExpr {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 510..515,
|
range: 510..515,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -859,7 +859,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 519..520,
|
range: 519..520,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -875,7 +875,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 522..526,
|
range: 522..526,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
@ -885,12 +885,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 527..581,
|
range: 527..581,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Match(
|
node: Match(
|
||||||
StmtMatch {
|
StmtMatch {
|
||||||
subject: Located {
|
subject: Attributed {
|
||||||
range: 533..538,
|
range: 533..538,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -902,12 +902,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
cases: [
|
cases: [
|
||||||
MatchCase {
|
MatchCase {
|
||||||
pattern: Located {
|
pattern: Attributed {
|
||||||
range: 549..550,
|
range: 549..550,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchValue(
|
node: MatchValue(
|
||||||
PatternMatchValue {
|
PatternMatchValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 549..550,
|
range: 549..550,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -924,7 +924,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
guard: None,
|
guard: None,
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 552..556,
|
range: 552..556,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
@ -932,12 +932,12 @@ expression: parse_ast
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
MatchCase {
|
MatchCase {
|
||||||
pattern: Located {
|
pattern: Attributed {
|
||||||
range: 566..567,
|
range: 566..567,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: MatchValue(
|
node: MatchValue(
|
||||||
PatternMatchValue {
|
PatternMatchValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 566..567,
|
range: 566..567,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -954,7 +954,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
guard: None,
|
guard: None,
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 577..581,
|
range: 577..581,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
@ -965,13 +965,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 582..618,
|
range: 582..618,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 582..587,
|
range: 582..587,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -982,7 +982,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 590..618,
|
range: 590..618,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -990,7 +990,7 @@ expression: parse_ast
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 597..602,
|
range: 597..602,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -1006,12 +1006,12 @@ expression: parse_ast
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 604..618,
|
range: 604..618,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Compare(
|
node: Compare(
|
||||||
ExprCompare {
|
ExprCompare {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 604..609,
|
range: 604..609,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -1025,7 +1025,7 @@ expression: parse_ast
|
||||||
Eq,
|
Eq,
|
||||||
],
|
],
|
||||||
comparators: [
|
comparators: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 613..618,
|
range: 613..618,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -1046,17 +1046,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 619..635,
|
range: 619..635,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 619..635,
|
range: 619..635,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 619..624,
|
range: 619..624,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -1067,12 +1067,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 625..634,
|
range: 625..634,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 625..630,
|
range: 625..630,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -1083,7 +1083,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 631..633,
|
range: 631..633,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..7,
|
range: 0..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BoolOp(
|
node: BoolOp(
|
||||||
ExprBoolOp {
|
ExprBoolOp {
|
||||||
op: And,
|
op: And,
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -19,7 +19,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..6,
|
range: 0..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BoolOp(
|
node: BoolOp(
|
||||||
ExprBoolOp {
|
ExprBoolOp {
|
||||||
op: Or,
|
op: Or,
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -19,7 +19,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,14 +3,14 @@ source: parser/src/parser.rs
|
||||||
expression: "parse_program(source, \"<test>\").unwrap()"
|
expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..98,
|
range: 0..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ClassDef(
|
node: ClassDef(
|
||||||
StmtClassDef {
|
StmtClassDef {
|
||||||
name: "Foo",
|
name: "Foo",
|
||||||
bases: [
|
bases: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -20,7 +20,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -33,7 +33,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
],
|
],
|
||||||
keywords: [],
|
keywords: [],
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 18..44,
|
range: 18..44,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -42,7 +42,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 31..35,
|
range: 31..35,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -59,7 +59,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 40..44,
|
range: 40..44,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
@ -71,7 +71,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 46..98,
|
range: 46..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -80,7 +80,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 70..74,
|
range: 70..74,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -89,7 +89,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 76..79,
|
range: 76..79,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -104,7 +104,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
kw_defaults: [],
|
kw_defaults: [],
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [
|
defaults: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 80..89,
|
range: 80..89,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -119,7 +119,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 94..98,
|
range: 94..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Pass,
|
node: Pass,
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..19,
|
range: 0..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: DictComp(
|
node: DictComp(
|
||||||
ExprDictComp {
|
ExprDictComp {
|
||||||
key: Located {
|
key: Attributed {
|
||||||
range: 1..3,
|
range: 1..3,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -17,7 +17,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 5..7,
|
range: 5..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -29,7 +29,7 @@ Located {
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -39,7 +39,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 17..18,
|
range: 17..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..48,
|
range: 0..48,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ListComp(
|
node: ListComp(
|
||||||
ExprListComp {
|
ExprListComp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -19,13 +19,13 @@ Located {
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 7..12,
|
range: 7..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -35,7 +35,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..12,
|
range: 10..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -50,7 +50,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -64,7 +64,7 @@ Located {
|
||||||
is_async: 0,
|
is_async: 0,
|
||||||
},
|
},
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 22..23,
|
range: 22..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -74,7 +74,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 27..28,
|
range: 27..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -85,12 +85,12 @@ Located {
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
ifs: [
|
ifs: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 32..37,
|
range: 32..37,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Compare(
|
node: Compare(
|
||||||
ExprCompare {
|
ExprCompare {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 32..33,
|
range: 32..33,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -104,7 +104,7 @@ Located {
|
||||||
Lt,
|
Lt,
|
||||||
],
|
],
|
||||||
comparators: [
|
comparators: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 36..37,
|
range: 36..37,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -120,12 +120,12 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 41..47,
|
range: 41..47,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Compare(
|
node: Compare(
|
||||||
ExprCompare {
|
ExprCompare {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 41..42,
|
range: 41..42,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -139,7 +139,7 @@ Located {
|
||||||
Gt,
|
Gt,
|
||||||
],
|
],
|
||||||
comparators: [
|
comparators: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 45..47,
|
range: 45..47,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: GeneratorExp(
|
node: GeneratorExp(
|
||||||
ExprGeneratorExp {
|
ExprGeneratorExp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -19,7 +19,7 @@ Located {
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -29,7 +29,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..28,
|
range: 0..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: If(
|
node: If(
|
||||||
StmtIf {
|
StmtIf {
|
||||||
test: Located {
|
test: Attributed {
|
||||||
range: 3..4,
|
range: 3..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -21,12 +21,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..8,
|
range: 6..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 6..8,
|
range: 6..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -43,12 +43,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
orelse: [
|
orelse: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..28,
|
range: 9..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: If(
|
node: If(
|
||||||
StmtIf {
|
StmtIf {
|
||||||
test: Located {
|
test: Attributed {
|
||||||
range: 14..15,
|
range: 14..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -61,12 +61,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 17..19,
|
range: 17..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 17..19,
|
range: 17..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -83,12 +83,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
orelse: [
|
orelse: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 26..28,
|
range: 26..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 26..28,
|
range: 26..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..26,
|
range: 0..26,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: GeneratorExp(
|
node: GeneratorExp(
|
||||||
ExprGeneratorExp {
|
ExprGeneratorExp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 1..14,
|
range: 1..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: IfExp(
|
node: IfExp(
|
||||||
ExprIfExp {
|
ExprIfExp {
|
||||||
test: Located {
|
test: Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -22,7 +22,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -32,7 +32,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
orelse: Located {
|
orelse: Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -47,7 +47,7 @@ Located {
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 19..20,
|
range: 19..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -57,7 +57,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 24..25,
|
range: 24..25,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,17 +3,17 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..32,
|
range: 0..32,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..32,
|
range: 0..32,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 0..7,
|
range: 0..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -24,7 +24,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 8..20,
|
range: 8..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -38,14 +38,14 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
keywords: [
|
keywords: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 22..31,
|
range: 22..31,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: KeywordData {
|
node: KeywordData {
|
||||||
arg: Some(
|
arg: Some(
|
||||||
"keyword",
|
"keyword",
|
||||||
),
|
),
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 30..31,
|
range: 30..31,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..18,
|
range: 0..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..18,
|
range: 0..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Lambda(
|
node: Lambda(
|
||||||
|
@ -16,7 +16,7 @@ expression: parse_ast
|
||||||
args: Arguments {
|
args: Arguments {
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -25,7 +25,7 @@ expression: parse_ast
|
||||||
type_comment: None,
|
type_comment: None,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
|
@ -41,12 +41,12 @@ expression: parse_ast
|
||||||
kwarg: None,
|
kwarg: None,
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: Located {
|
body: Attributed {
|
||||||
range: 13..18,
|
range: 13..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 13..14,
|
range: 13..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -57,7 +57,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Mult,
|
op: Mult,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 17..18,
|
range: 17..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ListComp(
|
node: ListComp(
|
||||||
ExprListComp {
|
ExprListComp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -19,7 +19,7 @@ Located {
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -29,7 +29,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 12..13,
|
range: 12..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..23,
|
range: 0..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: GeneratorExp(
|
node: GeneratorExp(
|
||||||
ExprGeneratorExp {
|
ExprGeneratorExp {
|
||||||
elt: Located {
|
elt: Attributed {
|
||||||
range: 1..11,
|
range: 1..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: NamedExpr(
|
node: NamedExpr(
|
||||||
ExprNamedExpr {
|
ExprNamedExpr {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 1..2,
|
range: 1..2,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -22,12 +22,12 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 6..11,
|
range: 6..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: BinOp(
|
node: BinOp(
|
||||||
ExprBinOp {
|
ExprBinOp {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -38,7 +38,7 @@ Located {
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
op: Add,
|
op: Add,
|
||||||
right: Located {
|
right: Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -58,7 +58,7 @@ Located {
|
||||||
},
|
},
|
||||||
generators: [
|
generators: [
|
||||||
Comprehension {
|
Comprehension {
|
||||||
target: Located {
|
target: Attributed {
|
||||||
range: 16..17,
|
range: 16..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -68,7 +68,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
iter: Located {
|
iter: Attributed {
|
||||||
range: 21..22,
|
range: 21..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,17 +3,17 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..23,
|
range: 0..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..23,
|
range: 0..23,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 0..5,
|
range: 0..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -24,7 +24,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..19,
|
range: 6..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -36,7 +36,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 21..22,
|
range: 21..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,17 +3,17 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..20,
|
range: 0..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..20,
|
range: 0..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 0..5,
|
range: 0..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -24,7 +24,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..19,
|
range: 6..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..13,
|
range: 0..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..13,
|
range: 0..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,19 +3,19 @@ source: parser/src/parser.rs
|
||||||
expression: "parse_program(source, \"<test>\").unwrap()"
|
expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..11,
|
range: 0..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..4,
|
range: 0..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -25,7 +25,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 3..4,
|
range: 3..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -41,13 +41,13 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 7..11,
|
range: 7..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -59,7 +59,7 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 10..11,
|
range: 10..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -2,12 +2,12 @@
|
||||||
source: parser/src/parser.rs
|
source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..1,
|
range: 0..1,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -17,13 +17,13 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 2..7,
|
range: 2..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Slice(
|
node: Slice(
|
||||||
ExprSlice {
|
ExprSlice {
|
||||||
lower: Some(
|
lower: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 2..3,
|
range: 2..3,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -37,7 +37,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
upper: Some(
|
upper: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 4..5,
|
range: 4..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -51,7 +51,7 @@ Located {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
step: Some(
|
step: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,13 +3,13 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..36,
|
range: 0..36,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..11,
|
range: 0..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -20,12 +20,12 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 14..36,
|
range: 14..36,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 14..19,
|
range: 14..19,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -35,13 +35,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 20..35,
|
range: 20..35,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 20..21,
|
range: 20..21,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -53,12 +53,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 23..31,
|
range: 23..31,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 24..31,
|
range: 24..31,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -72,13 +72,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 33..35,
|
range: 33..35,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: UnaryOp(
|
node: UnaryOp(
|
||||||
ExprUnaryOp {
|
ExprUnaryOp {
|
||||||
op: USub,
|
op: USub,
|
||||||
operand: Located {
|
operand: Attributed {
|
||||||
range: 34..35,
|
range: 34..35,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -106,18 +106,18 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 37..73,
|
range: 37..73,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Assign(
|
node: Assign(
|
||||||
StmtAssign {
|
StmtAssign {
|
||||||
targets: [
|
targets: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 37..59,
|
range: 37..59,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 37..42,
|
range: 37..42,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -127,13 +127,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 43..58,
|
range: 43..58,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 43..44,
|
range: 43..44,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -145,12 +145,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 46..54,
|
range: 46..54,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 47..54,
|
range: 47..54,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -164,13 +164,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 56..58,
|
range: 56..58,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: UnaryOp(
|
node: UnaryOp(
|
||||||
ExprUnaryOp {
|
ExprUnaryOp {
|
||||||
op: USub,
|
op: USub,
|
||||||
operand: Located {
|
operand: Attributed {
|
||||||
range: 57..58,
|
range: 57..58,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -195,7 +195,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 62..73,
|
range: 62..73,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -209,17 +209,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 74..119,
|
range: 74..119,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 74..119,
|
range: 74..119,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 74..79,
|
range: 74..79,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -229,18 +229,18 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 80..118,
|
range: 80..118,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 80..98,
|
range: 80..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 81..98,
|
range: 81..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -254,12 +254,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 100..118,
|
range: 100..118,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 101..118,
|
range: 101..118,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -285,17 +285,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 120..150,
|
range: 120..150,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 120..150,
|
range: 120..150,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 120..125,
|
range: 120..125,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -305,19 +305,19 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 126..149,
|
range: 126..149,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Tuple(
|
node: Tuple(
|
||||||
ExprTuple {
|
ExprTuple {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 126..129,
|
range: 126..129,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Slice(
|
node: Slice(
|
||||||
ExprSlice {
|
ExprSlice {
|
||||||
lower: Some(
|
lower: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 126..127,
|
range: 126..127,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -331,7 +331,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
upper: Some(
|
upper: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 128..129,
|
range: 128..129,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -348,12 +348,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 131..149,
|
range: 131..149,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 132..149,
|
range: 132..149,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,24 +3,24 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..134,
|
range: 0..134,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Try(
|
node: Try(
|
||||||
StmtTry {
|
StmtTry {
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..28,
|
range: 9..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Raise(
|
node: Raise(
|
||||||
StmtRaise {
|
StmtRaise {
|
||||||
exc: Some(
|
exc: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 15..28,
|
range: 15..28,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 15..25,
|
range: 15..25,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -31,7 +31,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 26..27,
|
range: 26..27,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -55,13 +55,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
handlers: [
|
handlers: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 29..82,
|
range: 29..82,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ExceptHandler(
|
node: ExceptHandler(
|
||||||
ExcepthandlerExceptHandler {
|
ExcepthandlerExceptHandler {
|
||||||
type_: Some(
|
type_: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 36..45,
|
range: 36..45,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -76,17 +76,17 @@ expression: parse_ast
|
||||||
"e",
|
"e",
|
||||||
),
|
),
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 56..82,
|
range: 56..82,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 56..82,
|
range: 56..82,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 56..61,
|
range: 56..61,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -97,13 +97,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 62..81,
|
range: 62..81,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 62..81,
|
range: 62..81,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -115,17 +115,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 62..81,
|
range: 62..81,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 72..79,
|
range: 72..79,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 72..76,
|
range: 72..76,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -136,7 +136,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 77..78,
|
range: 77..78,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -172,13 +172,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 83..134,
|
range: 83..134,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ExceptHandler(
|
node: ExceptHandler(
|
||||||
ExcepthandlerExceptHandler {
|
ExcepthandlerExceptHandler {
|
||||||
type_: Some(
|
type_: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 90..97,
|
range: 90..97,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -193,17 +193,17 @@ expression: parse_ast
|
||||||
"e",
|
"e",
|
||||||
),
|
),
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 108..134,
|
range: 108..134,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 108..134,
|
range: 108..134,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 108..113,
|
range: 108..113,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -214,13 +214,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 114..133,
|
range: 114..133,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 114..133,
|
range: 114..133,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -232,17 +232,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 114..133,
|
range: 114..133,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 124..131,
|
range: 124..131,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 124..128,
|
range: 124..128,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -253,7 +253,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 129..130,
|
range: 129..130,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,24 +3,24 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..260,
|
range: 0..260,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: TryStar(
|
node: TryStar(
|
||||||
StmtTryStar {
|
StmtTryStar {
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..98,
|
range: 9..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Raise(
|
node: Raise(
|
||||||
StmtRaise {
|
StmtRaise {
|
||||||
exc: Some(
|
exc: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 15..98,
|
range: 15..98,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 15..29,
|
range: 15..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -31,7 +31,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 30..34,
|
range: 30..34,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -43,18 +43,18 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 44..97,
|
range: 44..97,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: List(
|
node: List(
|
||||||
ExprList {
|
ExprList {
|
||||||
elts: [
|
elts: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 45..58,
|
range: 45..58,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 45..55,
|
range: 45..55,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -65,7 +65,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 56..57,
|
range: 56..57,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -82,12 +82,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 60..72,
|
range: 60..72,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 60..69,
|
range: 60..69,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -98,7 +98,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 70..71,
|
range: 70..71,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -115,12 +115,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 74..84,
|
range: 74..84,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 74..81,
|
range: 74..81,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -131,7 +131,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 82..83,
|
range: 82..83,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -148,12 +148,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 86..96,
|
range: 86..96,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 86..93,
|
range: 86..93,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -164,7 +164,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 94..95,
|
range: 94..95,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -198,13 +198,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
handlers: [
|
handlers: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 99..180,
|
range: 99..180,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ExceptHandler(
|
node: ExceptHandler(
|
||||||
ExcepthandlerExceptHandler {
|
ExcepthandlerExceptHandler {
|
||||||
type_: Some(
|
type_: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 107..116,
|
range: 107..116,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -219,17 +219,17 @@ expression: parse_ast
|
||||||
"e",
|
"e",
|
||||||
),
|
),
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 127..180,
|
range: 127..180,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 127..180,
|
range: 127..180,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 127..132,
|
range: 127..132,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -240,13 +240,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 133..179,
|
range: 133..179,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 133..179,
|
range: 133..179,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -258,17 +258,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 133..179,
|
range: 133..179,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 143..150,
|
range: 143..150,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 143..147,
|
range: 143..147,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -279,7 +279,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 148..149,
|
range: 148..149,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -299,7 +299,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 133..179,
|
range: 133..179,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -311,17 +311,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 133..179,
|
range: 133..179,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 165..177,
|
range: 165..177,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 165..166,
|
range: 165..166,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -357,13 +357,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 181..260,
|
range: 181..260,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ExceptHandler(
|
node: ExceptHandler(
|
||||||
ExcepthandlerExceptHandler {
|
ExcepthandlerExceptHandler {
|
||||||
type_: Some(
|
type_: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 189..196,
|
range: 189..196,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -378,17 +378,17 @@ expression: parse_ast
|
||||||
"e",
|
"e",
|
||||||
),
|
),
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 207..260,
|
range: 207..260,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 207..260,
|
range: 207..260,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 207..212,
|
range: 207..212,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -399,13 +399,13 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 213..259,
|
range: 213..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 213..259,
|
range: 213..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -417,17 +417,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 213..259,
|
range: 213..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 223..230,
|
range: 223..230,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Call(
|
node: Call(
|
||||||
ExprCall {
|
ExprCall {
|
||||||
func: Located {
|
func: Attributed {
|
||||||
range: 223..227,
|
range: 223..227,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -438,7 +438,7 @@ expression: parse_ast
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 228..229,
|
range: 228..229,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -458,7 +458,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 213..259,
|
range: 213..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -470,17 +470,17 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 213..259,
|
range: 213..259,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 245..257,
|
range: 245..257,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Attribute(
|
node: Attribute(
|
||||||
ExprAttribute {
|
ExprAttribute {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 245..246,
|
range: 245..246,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,7 +3,7 @@ source: parser/src/parser.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 1..49,
|
range: 1..49,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FunctionDef(
|
node: FunctionDef(
|
||||||
|
@ -13,18 +13,18 @@ expression: parse_ast
|
||||||
posonlyargs: [],
|
posonlyargs: [],
|
||||||
args: [],
|
args: [],
|
||||||
vararg: Some(
|
vararg: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 20..29,
|
range: 20..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: ArgData {
|
node: ArgData {
|
||||||
arg: "args",
|
arg: "args",
|
||||||
annotation: Some(
|
annotation: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 26..29,
|
range: 26..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 27..29,
|
range: 27..29,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -49,12 +49,12 @@ expression: parse_ast
|
||||||
defaults: [],
|
defaults: [],
|
||||||
},
|
},
|
||||||
body: [
|
body: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 46..49,
|
range: 46..49,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 46..49,
|
range: 46..49,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -70,12 +70,12 @@ expression: parse_ast
|
||||||
],
|
],
|
||||||
decorator_list: [],
|
decorator_list: [],
|
||||||
returns: Some(
|
returns: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 34..44,
|
range: 34..44,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Subscript(
|
node: Subscript(
|
||||||
ExprSubscript {
|
ExprSubscript {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 34..39,
|
range: 34..39,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -85,12 +85,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
slice: Located {
|
slice: Attributed {
|
||||||
range: 40..43,
|
range: 40..43,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Starred(
|
node: Starred(
|
||||||
ExprStarred {
|
ExprStarred {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 41..43,
|
range: 41..43,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..21,
|
range: 0..21,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..21,
|
range: 0..21,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..45,
|
range: 0..45,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..45,
|
range: 0..45,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..12,
|
range: 0..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..12,
|
range: 0..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..738,
|
range: 0..738,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..738,
|
range: 0..738,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..12,
|
range: 0..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..12,
|
range: 0..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..13,
|
range: 0..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..13,
|
range: 0..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -26,12 +26,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -26,12 +26,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..8,
|
range: 0..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 5..6,
|
range: 5..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -26,12 +26,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,7 +3,7 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..10,
|
range: 0..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -15,7 +15,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..10,
|
range: 0..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -27,12 +27,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..10,
|
range: 0..10,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 3..7,
|
range: 3..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,7 +3,7 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -15,7 +15,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -27,7 +27,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -39,12 +39,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 7..11,
|
range: 7..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -59,7 +59,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -71,7 +71,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -83,7 +83,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -95,12 +95,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..38,
|
range: 0..38,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 29..35,
|
range: 29..35,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,7 +3,7 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -15,7 +15,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -27,12 +27,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 3..7,
|
range: 3..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -44,13 +44,13 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
conversion: 0,
|
conversion: 0,
|
||||||
format_spec: Some(
|
format_spec: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..14,
|
range: 0..14,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..11,
|
range: 0..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..11,
|
range: 0..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..11,
|
range: 0..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -26,12 +26,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..11,
|
range: 0..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 6..7,
|
range: 6..7,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..9,
|
range: 0..9,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..17,
|
range: 0..17,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,18 +3,18 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..22,
|
range: 0..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Expr(
|
node: Expr(
|
||||||
StmtExpr {
|
StmtExpr {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 0..22,
|
range: 0..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..22,
|
range: 0..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -26,12 +26,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..22,
|
range: 9..22,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 17..20,
|
range: 17..20,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..18,
|
range: 0..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 3..4,
|
range: 3..4,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -23,12 +23,12 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..18,
|
range: 0..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 7..8,
|
range: 7..8,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -43,7 +43,7 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..18,
|
range: 0..18,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,17 +3,17 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..13,
|
range: 0..13,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 3..11,
|
range: 3..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Compare(
|
node: Compare(
|
||||||
ExprCompare {
|
ExprCompare {
|
||||||
left: Located {
|
left: Attributed {
|
||||||
range: 3..5,
|
range: 3..5,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
@ -29,7 +29,7 @@ expression: parse_ast
|
||||||
Eq,
|
Eq,
|
||||||
],
|
],
|
||||||
comparators: [
|
comparators: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 9..11,
|
range: 9..11,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Constant(
|
node: Constant(
|
||||||
|
|
|
@ -3,12 +3,12 @@ source: parser/src/string.rs
|
||||||
expression: parse_ast
|
expression: parse_ast
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 3..6,
|
range: 3..6,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
@ -20,18 +20,18 @@ expression: parse_ast
|
||||||
},
|
},
|
||||||
conversion: 0,
|
conversion: 0,
|
||||||
format_spec: Some(
|
format_spec: Some(
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: JoinedStr(
|
node: JoinedStr(
|
||||||
ExprJoinedStr {
|
ExprJoinedStr {
|
||||||
values: [
|
values: [
|
||||||
Located {
|
Attributed {
|
||||||
range: 0..15,
|
range: 0..15,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: FormattedValue(
|
node: FormattedValue(
|
||||||
ExprFormattedValue {
|
ExprFormattedValue {
|
||||||
value: Located {
|
value: Attributed {
|
||||||
range: 8..12,
|
range: 8..12,
|
||||||
custom: (),
|
custom: (),
|
||||||
node: Name(
|
node: Name(
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue