WIP
This commit is contained in:
@ -17,4 +17,4 @@ fn cube(length, center) {
|
||||
|> extrude(length = length)
|
||||
}
|
||||
|
||||
myCube = cube(40, [0,0])
|
||||
myCube = cube(length = 40, center = [0,0])
|
||||
|
||||
@ -24,13 +24,12 @@ use crate::{
|
||||
parsing::{
|
||||
ast::types::{
|
||||
Annotation, ArrayExpression, ArrayRangeExpression, BinaryExpression, BinaryOperator, BinaryPart, BodyItem,
|
||||
BoxNode, CallExpression, CallExpressionKw, CommentStyle, DefaultParamVal, ElseIf, Expr,
|
||||
ExpressionStatement, FunctionExpression, Identifier, IfExpression, ImportItem, ImportSelector,
|
||||
ImportStatement, ItemVisibility, LabeledArg, Literal, LiteralIdentifier, LiteralValue, MemberExpression,
|
||||
MemberObject, Name, Node, NodeList, NonCodeMeta, NonCodeNode, NonCodeValue, ObjectExpression,
|
||||
ObjectProperty, Parameter, PipeExpression, PipeSubstitution, PrimitiveType, Program, ReturnStatement,
|
||||
Shebang, TagDeclarator, Type, TypeDeclaration, UnaryExpression, UnaryOperator, VariableDeclaration,
|
||||
VariableDeclarator, VariableKind,
|
||||
BoxNode, CallExpressionKw, CommentStyle, DefaultParamVal, ElseIf, Expr, ExpressionStatement,
|
||||
FunctionExpression, Identifier, IfExpression, ImportItem, ImportSelector, ImportStatement, ItemVisibility,
|
||||
LabeledArg, Literal, LiteralIdentifier, LiteralValue, MemberExpression, MemberObject, Name, Node, NodeList,
|
||||
NonCodeMeta, NonCodeNode, NonCodeValue, ObjectExpression, ObjectProperty, Parameter, PipeExpression,
|
||||
PipeSubstitution, PrimitiveType, Program, ReturnStatement, Shebang, TagDeclarator, Type, TypeDeclaration,
|
||||
UnaryExpression, UnaryOperator, VariableDeclaration, VariableDeclarator, VariableKind,
|
||||
},
|
||||
math::BinaryExpressionToken,
|
||||
token::{Token, TokenSlice, TokenType},
|
||||
@ -936,7 +935,7 @@ fn object_property(i: &mut TokenSlice) -> PResult<Node<ObjectProperty>> {
|
||||
);
|
||||
|
||||
if sep.token_type == TokenType::Colon {
|
||||
ParseContext::err(
|
||||
ParseContext::warn(
|
||||
CompilationError::err(
|
||||
sep.into(),
|
||||
"Using `:` to initialize objects is deprecated, prefer using `=`.",
|
||||
@ -1221,11 +1220,21 @@ fn if_expr(i: &mut TokenSlice) -> PResult<BoxNode<IfExpression>> {
|
||||
fn function_expr(i: &mut TokenSlice) -> PResult<Expr> {
|
||||
let fn_tok = opt(fun).parse_next(i)?;
|
||||
ignore_whitespace(i);
|
||||
let result = function_decl.parse_next(i)?;
|
||||
let (result, has_arrow) = function_decl.parse_next(i)?;
|
||||
if fn_tok.is_none() {
|
||||
if has_arrow {
|
||||
ParseContext::warn(
|
||||
CompilationError::err(
|
||||
result.as_source_range().start_as_range(),
|
||||
"Missing `fn` in function declaration",
|
||||
)
|
||||
.with_suggestion("Add `fn`", "fn", None, Tag::None),
|
||||
);
|
||||
} else {
|
||||
let err = CompilationError::fatal(result.as_source_range(), "Anonymous function requires `fn` before `(`");
|
||||
return Err(ErrMode::Cut(err.into()));
|
||||
}
|
||||
}
|
||||
Ok(Expr::FunctionExpression(Box::new(result)))
|
||||
}
|
||||
|
||||
@ -1234,7 +1243,7 @@ fn function_expr(i: &mut TokenSlice) -> PResult<Expr> {
|
||||
// const x = arg0 + arg1;
|
||||
// return x
|
||||
// }
|
||||
fn function_decl(i: &mut TokenSlice) -> PResult<Node<FunctionExpression>> {
|
||||
fn function_decl(i: &mut TokenSlice) -> PResult<(Node<FunctionExpression>, bool)> {
|
||||
fn return_type(i: &mut TokenSlice) -> PResult<Node<Type>> {
|
||||
colon(i)?;
|
||||
ignore_whitespace(i);
|
||||
@ -1246,6 +1255,8 @@ fn function_decl(i: &mut TokenSlice) -> PResult<Node<FunctionExpression>> {
|
||||
let params = parameters(i)?;
|
||||
close_paren(i)?;
|
||||
ignore_whitespace(i);
|
||||
let arrow = opt(big_arrow).parse_next(i)?;
|
||||
ignore_whitespace(i);
|
||||
// Optional return type.
|
||||
let return_type = opt(return_type).parse_next(i)?;
|
||||
ignore_whitespace(i);
|
||||
@ -1270,7 +1281,18 @@ fn function_decl(i: &mut TokenSlice) -> PResult<Node<FunctionExpression>> {
|
||||
open.module_id,
|
||||
);
|
||||
|
||||
Ok(result)
|
||||
let has_arrow =
|
||||
if let Some(arrow) = arrow {
|
||||
ParseContext::warn(
|
||||
CompilationError::err(arrow.as_source_range(), "Unnecessary `=>` in function declaration")
|
||||
.with_suggestion("Remove `=>`", "", None, Tag::Unnecessary),
|
||||
);
|
||||
true
|
||||
} else {
|
||||
false
|
||||
};
|
||||
|
||||
Ok((result, has_arrow))
|
||||
}
|
||||
|
||||
/// E.g. `person.name`
|
||||
@ -2031,7 +2053,6 @@ fn expr_allowed_in_pipe_expr(i: &mut TokenSlice) -> PResult<Expr> {
|
||||
bool_value.map(Expr::Literal),
|
||||
tag.map(Box::new).map(Expr::TagDeclarator),
|
||||
literal.map(Expr::Literal),
|
||||
fn_call.map(Box::new).map(Expr::CallExpression),
|
||||
fn_call_kw.map(Box::new).map(Expr::CallExpressionKw),
|
||||
name.map(Box::new).map(Expr::Name),
|
||||
array,
|
||||
@ -2051,7 +2072,6 @@ fn possible_operands(i: &mut TokenSlice) -> PResult<Expr> {
|
||||
bool_value.map(Expr::Literal),
|
||||
member_expression.map(Box::new).map(Expr::MemberExpression),
|
||||
literal.map(Expr::Literal),
|
||||
fn_call.map(Box::new).map(Expr::CallExpression),
|
||||
fn_call_kw.map(Box::new).map(Expr::CallExpressionKw),
|
||||
name.map(Box::new).map(Expr::Name),
|
||||
binary_expr_in_parens.map(Box::new).map(Expr::BinaryExpression),
|
||||
@ -2117,7 +2137,7 @@ fn declaration(i: &mut TokenSlice) -> PResult<BoxNode<VariableDeclaration>> {
|
||||
ignore_whitespace(i);
|
||||
|
||||
let val = function_decl
|
||||
.map(Box::new)
|
||||
.map(|t| Box::new(t.0))
|
||||
.map(Expr::FunctionExpression)
|
||||
.context(expected("a KCL function expression, like () { return 1 }"))
|
||||
.parse_next(i);
|
||||
@ -2151,7 +2171,7 @@ fn declaration(i: &mut TokenSlice) -> PResult<BoxNode<VariableDeclaration>> {
|
||||
|
||||
if let Some((_, tok)) = decl_token {
|
||||
let range_to_remove = SourceRange::new(tok.start, id.start, id.module_id);
|
||||
ParseContext::err(
|
||||
ParseContext::warn(
|
||||
CompilationError::err(
|
||||
tok.as_source_range(),
|
||||
format!(
|
||||
@ -2379,9 +2399,17 @@ impl TryFrom<Token> for Node<TagDeclarator> {
|
||||
token.value.as_str()
|
||||
),
|
||||
)),
|
||||
// e.g. `line(%, $)`
|
||||
TokenType::Brace => {
|
||||
let r = token.as_source_range();
|
||||
Err(CompilationError::fatal(
|
||||
SourceRange::new(r.start() - 1, r.end() - 1, r.module_id()),
|
||||
"Tag names must not be empty".to_string(),
|
||||
))
|
||||
}
|
||||
|
||||
// e.g. `line(%, $)` or `line(%, $ , 5)`
|
||||
TokenType::Brace | TokenType::Whitespace | TokenType::Comma => Err(CompilationError::fatal(
|
||||
// e.g. `line(%, $ , 5)`
|
||||
TokenType::Whitespace | TokenType::Comma => Err(CompilationError::fatal(
|
||||
token.as_source_range(),
|
||||
"Tag names must not be empty".to_string(),
|
||||
)),
|
||||
@ -2559,6 +2587,12 @@ fn some_brace(symbol: &'static str, i: &mut TokenSlice) -> PResult<Token> {
|
||||
.parse_next(i)
|
||||
}
|
||||
|
||||
/// Parse a => operator.
|
||||
fn big_arrow(i: &mut TokenSlice) -> PResult<Token> {
|
||||
one_of((TokenType::Operator, "=>"))
|
||||
.context(expected("the => symbol, used for declaring functions"))
|
||||
.parse_next(i)
|
||||
}
|
||||
/// Parse a |> operator.
|
||||
fn pipe_operator(i: &mut TokenSlice) -> PResult<Token> {
|
||||
one_of((TokenType::Operator, PIPE_OPERATOR))
|
||||
@ -2712,13 +2746,6 @@ fn pipe_sep(i: &mut TokenSlice) -> PResult<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Arguments are passed into a function.
|
||||
fn arguments(i: &mut TokenSlice) -> PResult<Vec<Expr>> {
|
||||
separated(0.., expression, comma_sep)
|
||||
.context(expected("function arguments"))
|
||||
.parse_next(i)
|
||||
}
|
||||
|
||||
fn labeled_argument(i: &mut TokenSlice) -> PResult<LabeledArg> {
|
||||
separated_pair(
|
||||
terminated(nameable_identifier, opt(whitespace)),
|
||||
@ -2987,11 +3014,7 @@ fn binding_name(i: &mut TokenSlice) -> PResult<Node<Identifier>> {
|
||||
|
||||
/// Either a positional or keyword function call.
|
||||
fn fn_call_pos_or_kw(i: &mut TokenSlice) -> PResult<Expr> {
|
||||
alt((
|
||||
fn_call.map(Box::new).map(Expr::CallExpression),
|
||||
fn_call_kw.map(Box::new).map(Expr::CallExpressionKw),
|
||||
))
|
||||
.parse_next(i)
|
||||
fn_call_kw.map(Box::new).map(Expr::CallExpressionKw).parse_next(i)
|
||||
}
|
||||
|
||||
fn labelled_fn_call(i: &mut TokenSlice) -> PResult<Expr> {
|
||||
@ -3004,56 +3027,62 @@ fn labelled_fn_call(i: &mut TokenSlice) -> PResult<Expr> {
|
||||
}
|
||||
}
|
||||
|
||||
fn fn_call(i: &mut TokenSlice) -> PResult<Node<CallExpression>> {
|
||||
fn fn_call_kw(i: &mut TokenSlice) -> PResult<Node<CallExpressionKw>> {
|
||||
let fn_name = name(i)?;
|
||||
opt(whitespace).parse_next(i)?;
|
||||
let _ = terminated(open_paren, opt(whitespace)).parse_next(i)?;
|
||||
let args = arguments(i)?;
|
||||
let end = preceded(opt(whitespace), close_paren).parse_next(i)?.end;
|
||||
ignore_whitespace(i);
|
||||
let _ = open_paren.parse_next(i)?;
|
||||
ignore_whitespace(i);
|
||||
|
||||
// Special case: no args
|
||||
let early_close = peek(close_paren).parse_next(i);
|
||||
if early_close.is_ok() {
|
||||
let cl = close_paren.parse_next(i)?;
|
||||
let result = Node::new_node(
|
||||
fn_name.start,
|
||||
cl.end,
|
||||
fn_name.module_id,
|
||||
CallExpressionKw {
|
||||
callee: fn_name,
|
||||
unlabeled: Default::default(),
|
||||
arguments: Default::default(),
|
||||
digest: None,
|
||||
non_code_meta: Default::default(),
|
||||
},
|
||||
);
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
// Special case: one arg (unlabeled)
|
||||
let early_close = peek((expression, opt(whitespace), close_paren)).parse_next(i);
|
||||
if early_close.is_ok() {
|
||||
let first_expression = expression.parse_next(i)?;
|
||||
ignore_whitespace(i);
|
||||
let end = close_paren.parse_next(i)?.end;
|
||||
let result = Node::new_node(
|
||||
fn_name.start,
|
||||
end,
|
||||
fn_name.module_id,
|
||||
CallExpression {
|
||||
CallExpressionKw {
|
||||
callee: fn_name,
|
||||
arguments: args,
|
||||
unlabeled: Some(first_expression),
|
||||
arguments: Default::default(),
|
||||
digest: None,
|
||||
non_code_meta: Default::default(),
|
||||
},
|
||||
);
|
||||
|
||||
let callee_str = result.callee.name.name.to_string();
|
||||
if let Some(suggestion) = super::deprecation(&callee_str, DeprecationKind::Function) {
|
||||
ParseContext::warn(
|
||||
CompilationError::err(
|
||||
result.as_source_range(),
|
||||
format!("Calling `{}` is deprecated, prefer using `{}`.", callee_str, suggestion),
|
||||
)
|
||||
.with_suggestion(
|
||||
format!("Replace `{}` with `{}`", callee_str, suggestion),
|
||||
suggestion,
|
||||
None,
|
||||
Tag::Deprecated,
|
||||
),
|
||||
);
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
fn fn_call_kw(i: &mut TokenSlice) -> PResult<Node<CallExpressionKw>> {
|
||||
let fn_name = name(i)?;
|
||||
opt(whitespace).parse_next(i)?;
|
||||
let _ = open_paren.parse_next(i)?;
|
||||
let initial_unlabeled_arg = opt((expression, comma, opt(whitespace)).map(|(arg, _, _)| arg)).parse_next(i)?;
|
||||
ignore_whitespace(i);
|
||||
|
||||
// Start parsing labeled args.
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
enum ArgPlace {
|
||||
NonCode(Node<NonCodeNode>),
|
||||
LabeledArg(LabeledArg),
|
||||
UnlabeledArg(Expr),
|
||||
}
|
||||
let initial_unlabeled_arg = opt((expression, comma, opt(whitespace)).map(|(arg, _, _)| arg)).parse_next(i)?;
|
||||
let args: Vec<_> = repeat(
|
||||
0..,
|
||||
alt((
|
||||
@ -3192,18 +3221,6 @@ mod tests {
|
||||
assert_reserved("import");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_args() {
|
||||
for (i, (test, expected_len)) in [("someVar", 1), ("5, 3", 2), (r#""a""#, 1)].into_iter().enumerate() {
|
||||
let tokens = crate::parsing::token::lex(test, ModuleId::default()).unwrap();
|
||||
let actual = match arguments.parse(tokens.as_slice()) {
|
||||
Ok(x) => x,
|
||||
Err(e) => panic!("Failed test {i}, could not parse function arguments from \"{test}\": {e:?}"),
|
||||
};
|
||||
assert_eq!(actual.len(), expected_len, "failed test {i}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_names() {
|
||||
for (test, expected_len) in [("someVar", 0), ("::foo", 0), ("foo::bar::baz", 2)] {
|
||||
@ -3284,7 +3301,7 @@ mod tests {
|
||||
return 1
|
||||
}"#;
|
||||
let tokens = crate::parsing::token::lex(test_program, ModuleId::default()).unwrap();
|
||||
let expr = function_decl.parse_next(&mut tokens.as_slice()).unwrap();
|
||||
let expr = function_decl.map(|t| t.0).parse_next(&mut tokens.as_slice()).unwrap();
|
||||
assert_eq!(expr.params, vec![]);
|
||||
let comment_start = expr.body.body[0].get_comments();
|
||||
let comment0 = expr.body.body[1].get_comments();
|
||||
@ -3301,7 +3318,7 @@ mod tests {
|
||||
comment */
|
||||
}"#;
|
||||
let tokens = crate::parsing::token::lex(test_program, ModuleId::default()).unwrap();
|
||||
let expr = function_decl.parse_next(&mut tokens.as_slice()).unwrap();
|
||||
let expr = function_decl.map(|t| t.0).parse_next(&mut tokens.as_slice()).unwrap();
|
||||
let comment0 = &expr.body.non_code_meta.non_code_nodes.get(&0).unwrap()[0];
|
||||
assert_eq!(comment0.value(), "block\ncomment");
|
||||
}
|
||||
@ -3370,7 +3387,7 @@ mySk1 = startSketchOn(XY)
|
||||
}";
|
||||
let module_id = ModuleId::from_usize(1);
|
||||
let tokens = crate::parsing::token::lex(test_program, module_id).unwrap();
|
||||
let expr = function_decl.parse_next(&mut tokens.as_slice()).unwrap();
|
||||
let expr = function_decl.map(|t| t.0).parse_next(&mut tokens.as_slice()).unwrap();
|
||||
assert_eq!(
|
||||
expr.body.non_code_meta.start_nodes,
|
||||
vec![Node::new(
|
||||
@ -3834,7 +3851,7 @@ mySk1 = startSketchOn(XY)
|
||||
#[test]
|
||||
fn pipes_on_pipes_minimal() {
|
||||
let test_program = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(endAbsolute = [0, -0]) // MoveRelative
|
||||
|
||||
"#;
|
||||
@ -4104,8 +4121,8 @@ mySk1 = startSketchOn(XY)
|
||||
#[test]
|
||||
fn test_parse_half_pipe_small() {
|
||||
assert_err_contains(
|
||||
"secondExtrude = startSketchOn(XY)
|
||||
|> startProfileAt(at = [0,0])
|
||||
"secondExtrude = startSketchOn('XY')
|
||||
|> startProfile(at = [0,0])
|
||||
|",
|
||||
"Unexpected token: |",
|
||||
);
|
||||
@ -4169,7 +4186,7 @@ height = [obj["a"] -1, 0]"#;
|
||||
|
||||
#[test]
|
||||
fn test_anon_fn() {
|
||||
crate::parsing::top_level_parse("foo(42, fn(x) { return x + 1 })").unwrap();
|
||||
crate::parsing::top_level_parse("foo(42, closure = fn(x) { return x + 1 })").unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -4197,16 +4214,16 @@ height = [obj["a"] -1, 0]"#;
|
||||
fn test_parse_half_pipe() {
|
||||
let code = "height = 10
|
||||
|
||||
firstExtrude = startSketchOn(XY)
|
||||
|> startProfileAt(at = [0,0])
|
||||
|> line([0, 8], %)
|
||||
|> line([20, 0], %)
|
||||
|> line([0, -8], %)
|
||||
firstExtrude = startSketchOn('XY')
|
||||
|> startProfile(at = [0,0])
|
||||
|> line(at = [0, 8])
|
||||
|> line(at = [20, 0])
|
||||
|> line(at = [0, -8])
|
||||
|> close()
|
||||
|> extrude(length=2)
|
||||
|
||||
secondExtrude = startSketchOn(XY)
|
||||
|> startProfileAt(at = [0,0])
|
||||
secondExtrude = startSketchOn('XY')
|
||||
|> startProfile(at = [0,0])
|
||||
|";
|
||||
assert_err_contains(code, "Unexpected token: |");
|
||||
}
|
||||
@ -4476,8 +4493,8 @@ e
|
||||
let code = r#"/// Compute the cosine of a number (in radians).
|
||||
///
|
||||
/// ```
|
||||
/// exampleSketch = startSketchOn(XZ)
|
||||
/// |> startProfileAt(at = [0, 0])
|
||||
/// exampleSketch = startSketchOn("XZ")
|
||||
/// |> startProfile(at = [0, 0])
|
||||
/// |> angledLine(
|
||||
/// angle = 30,
|
||||
/// length = 3 / cos(toRadians(30)),
|
||||
@ -4517,7 +4534,7 @@ export fn cos(num: number(rad)): number(_) {}"#;
|
||||
|
||||
#[test]
|
||||
fn error_underscore() {
|
||||
let (_, errs) = assert_no_fatal("_foo(_blah, _)");
|
||||
let (_, errs) = assert_no_fatal("_foo(_blah, arg = _)");
|
||||
assert_eq!(errs.len(), 3, "found: {errs:#?}");
|
||||
}
|
||||
|
||||
@ -4530,7 +4547,7 @@ export fn cos(num: number(rad)): number(_) {}"#;
|
||||
#[test]
|
||||
fn zero_param_function() {
|
||||
let code = r#"
|
||||
fn firstPrimeNumber() {
|
||||
fn firstPrimeNumber = () => {
|
||||
return 2
|
||||
}
|
||||
firstPrimeNumber()
|
||||
@ -4618,6 +4635,26 @@ thing(false)
|
||||
crate::parsing::top_level_parse(some_program_string).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_error_define_function_as_var() {
|
||||
for name in ["var", "let", "const"] {
|
||||
let some_program_string = format!(
|
||||
r#"{} thing = (param) => {{
|
||||
return true
|
||||
}}
|
||||
|
||||
thing(false)
|
||||
"#,
|
||||
name
|
||||
);
|
||||
assert_err(
|
||||
&some_program_string,
|
||||
"Expected a `fn` variable kind, found: `const`",
|
||||
[0, name.len()],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_error_define_var_as_function() {
|
||||
// TODO: https://github.com/KittyCAD/modeling-app/issues/784
|
||||
@ -4628,8 +4665,8 @@ thing(false)
|
||||
|
||||
#[test]
|
||||
fn random_words_fail() {
|
||||
let test_program = r#"part001 = startSketchOn(-XZ)
|
||||
|> startProfileAt(at = [8.53, 11.8])
|
||||
let test_program = r#"part001 = startSketchOn('-XZ')
|
||||
|> startProfileAt([8.53, 11.8], %)
|
||||
asdasd asdasd
|
||||
|> line([11.12, -14.82], %)
|
||||
|> line([-13.27, -6.98], %)
|
||||
@ -4641,18 +4678,18 @@ thing(false)
|
||||
|
||||
#[test]
|
||||
fn test_member_expression_sketch() {
|
||||
let some_program_string = r#"fn cube(pos, scale) {
|
||||
sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos)
|
||||
|> line([0, scale], %)
|
||||
|> line([scale, 0], %)
|
||||
|> line([0, -scale], %)
|
||||
let some_program_string = r#"fn cube = (pos, scale) => {
|
||||
sg = startSketchOn('XY')
|
||||
|> startProfile(at = pos)
|
||||
|> line([0, scale])
|
||||
|> line([scale, 0])
|
||||
|> line([0, -scale])
|
||||
|
||||
return sg
|
||||
}
|
||||
|
||||
b1 = cube([0,0], 10)
|
||||
b2 = cube([3,3], 4)
|
||||
b1 = cube(pos = [0,0], scale = 10)
|
||||
b2 = cube(pos = [3,3], scale = 4)
|
||||
|
||||
pt1 = b1[0]
|
||||
pt2 = b2[0]
|
||||
@ -4669,18 +4706,18 @@ let other_thing = 2 * cos(3)"#;
|
||||
|
||||
#[test]
|
||||
fn test_negative_arguments() {
|
||||
let some_program_string = r#"fn box(p, h, l, w) {
|
||||
myBox = startSketchOn(XY)
|
||||
|> startProfileAt(p)
|
||||
|> line([0, l], %)
|
||||
|> line([w, 0], %)
|
||||
|> line([0, -l], %)
|
||||
let some_program_string = r#"fn box = (p, h, l, w) => {
|
||||
myBox = startSketchOn('XY')
|
||||
|> startProfile(at = p)
|
||||
|> line([0, l])
|
||||
|> line([w, 0])
|
||||
|> line([0, -l])
|
||||
|> close()
|
||||
|> extrude(length=h)
|
||||
|
||||
return myBox
|
||||
}
|
||||
let myBox = box([0,0], -3, -16, -10)
|
||||
let myBox = box(p=[0,0], h=-3, l=-16, w=-10)
|
||||
"#;
|
||||
crate::parsing::top_level_parse(some_program_string).unwrap();
|
||||
}
|
||||
@ -4696,106 +4733,106 @@ let myBox = box([0,0], -3, -16, -10)
|
||||
|
||||
#[test]
|
||||
fn test_parse_tag_named_std_lib() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line([5, 5], %, $xLine)
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(end = [5, 5], tag = $xLine)
|
||||
"#;
|
||||
assert_err(
|
||||
some_program_string,
|
||||
"Cannot assign a tag to a reserved keyword: xLine",
|
||||
[74, 80],
|
||||
[85, 91],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_empty_tag_brace() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($)
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(end = [1, 1], tag = $)
|
||||
"#;
|
||||
assert_err(some_program_string, "Tag names must not be empty", [67, 68]);
|
||||
assert_err(some_program_string, "Tag names must not be empty", [85, 86]);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_empty_tag_whitespace() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($ ,end = 01)
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, $ ,01)
|
||||
"#;
|
||||
assert_err(some_program_string, "Tag names must not be empty", [67, 68]);
|
||||
assert_err(some_program_string, "Tag names must not be empty", [69, 70]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_empty_tag_comma() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line(%, tag = $,)
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, $,)
|
||||
"#;
|
||||
assert_err(some_program_string, "Tag names must not be empty", [67, 68]);
|
||||
assert_err(some_program_string, "Tag names must not be empty", [69, 70]);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_tag_starting_with_digit() {
|
||||
let some_program_string = r#"
|
||||
startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($01)"#;
|
||||
startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, $01)"#;
|
||||
assert_err(
|
||||
some_program_string,
|
||||
"Tag names must not start with a number. Tag starts with `01`",
|
||||
[72, 74],
|
||||
[74, 76],
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_tag_including_digit() {
|
||||
let some_program_string = r#"
|
||||
startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($var01)"#;
|
||||
startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, tag = $var01)"#;
|
||||
assert_no_err(some_program_string);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_tag_starting_with_bang() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($!var,01)
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, $!var,01)
|
||||
"#;
|
||||
assert_err(some_program_string, "Tag names must not start with a bang", [67, 68]);
|
||||
assert_err(some_program_string, "Tag names must not start with a bang", [69, 70]);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_tag_starting_with_dollar() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($$,01)
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, $$,01)
|
||||
"#;
|
||||
assert_err(some_program_string, "Tag names must not start with a dollar", [67, 68]);
|
||||
assert_err(some_program_string, "Tag names must not start with a dollar", [69, 70]);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_tag_starting_with_fn() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($fn,01)
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, $fn,01)
|
||||
"#;
|
||||
assert_err(some_program_string, "Tag names must not start with a keyword", [67, 69]);
|
||||
assert_err(some_program_string, "Tag names must not start with a keyword", [69, 71]);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_tag_starting_with_a_comment() {
|
||||
let some_program_string = r#"startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line($//
|
||||
let some_program_string = r#"startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(%, $//
|
||||
,01)
|
||||
"#;
|
||||
assert_err(
|
||||
some_program_string,
|
||||
"Tag names must not start with a lineComment",
|
||||
[67, 69],
|
||||
[69, 71],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_tag_with_reserved_in_middle_works() {
|
||||
let some_program_string = r#"
|
||||
startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line([5, 5], %, $sketching)
|
||||
startSketchOn('XY')
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(end = [5, 5], tag = $sketching)
|
||||
"#;
|
||||
assert_no_err(some_program_string);
|
||||
}
|
||||
@ -4803,21 +4840,21 @@ let myBox = box([0,0], -3, -16, -10)
|
||||
#[test]
|
||||
fn test_parse_array_missing_closing_bracket() {
|
||||
let some_program_string = r#"
|
||||
sketch001 = startSketchOn(XZ) |> startProfileAt([90.45, 119.09, %)"#;
|
||||
sketch001 = startSketchOn('XZ') |> startProfileAt([90.45, 119.09, %)"#;
|
||||
assert_err(
|
||||
some_program_string,
|
||||
"Encountered an unexpected character(s) before finding a closing bracket(`]`) for the array",
|
||||
[49, 65],
|
||||
[51, 67],
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_array_missing_comma() {
|
||||
let some_program_string = r#"
|
||||
sketch001 = startSketchOn(XZ) |> startProfileAt([90.45 119.09], %)"#;
|
||||
sketch001 = startSketchOn('XZ') |> startProfileAt([90.45 119.09], %)"#;
|
||||
assert_err(
|
||||
some_program_string,
|
||||
"Unexpected character encountered. You might be missing a comma in between elements.",
|
||||
[50, 63],
|
||||
[52, 65],
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
@ -4825,21 +4862,21 @@ sketch001 = startSketchOn(XZ) |> startProfileAt([90.45 119.09], %)"#;
|
||||
// since there is an early exit if encountering a reserved word, the error should be about
|
||||
// that and not the missing comma
|
||||
let some_program_string = r#"
|
||||
sketch001 = startSketchOn(XZ) |> startProfileAt([90.45 $struct], %)"#;
|
||||
sketch001 = startSketchOn('XZ') |> startProfileAt([90.45 $struct], %)"#;
|
||||
assert_err(
|
||||
some_program_string,
|
||||
"Encountered an unexpected character(s) before finding a closing bracket(`]`) for the array",
|
||||
[49, 50],
|
||||
[51, 52],
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
fn test_parse_array_random_brace() {
|
||||
let some_program_string = r#"
|
||||
sketch001 = startSketchOn(XZ) |> startProfileAt([}], %)"#;
|
||||
sketch001 = startSketchOn('XZ') |> startProfileAt([}], %)"#;
|
||||
assert_err(
|
||||
some_program_string,
|
||||
"Encountered an unexpected character(s) before finding a closing bracket(`]`) for the array",
|
||||
[49, 50],
|
||||
[51, 52],
|
||||
);
|
||||
}
|
||||
|
||||
@ -4920,6 +4957,67 @@ bar = 1
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn warn_object_expr() {
|
||||
let some_program_string = "{ foo: bar }";
|
||||
let (_, errs) = assert_no_err(some_program_string);
|
||||
assert_eq!(errs.len(), 1);
|
||||
assert_eq!(errs[0].apply_suggestion(some_program_string).unwrap(), "{ foo = bar }")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn warn_fn_decl() {
|
||||
let some_program_string = r#"fn foo = () => {
|
||||
return 0
|
||||
}"#;
|
||||
let (_, errs) = assert_no_err(some_program_string);
|
||||
assert_eq!(errs.len(), 2);
|
||||
let replaced = errs[0].apply_suggestion(some_program_string).unwrap();
|
||||
let replaced = errs[1].apply_suggestion(&replaced).unwrap();
|
||||
// Note the whitespace here is bad, but we're just testing the suggestion spans really. In
|
||||
// real life we might reformat after applying suggestions.
|
||||
assert_eq!(
|
||||
replaced,
|
||||
r#"fn foo () {
|
||||
return 0
|
||||
}"#
|
||||
);
|
||||
|
||||
let some_program_string = r#"myMap = map([0..5], f = (n) => {
|
||||
return n * 2
|
||||
})"#;
|
||||
let (_, errs) = assert_no_err(some_program_string);
|
||||
assert_eq!(errs.len(), 2);
|
||||
let replaced = errs[0].apply_suggestion(some_program_string).unwrap();
|
||||
let replaced = errs[1].apply_suggestion(&replaced).unwrap();
|
||||
assert_eq!(
|
||||
replaced,
|
||||
r#"myMap = map([0..5], f = fn(n) {
|
||||
return n * 2
|
||||
})"#
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn warn_const() {
|
||||
let some_program_string = r#"const foo = 0
|
||||
let bar = 1
|
||||
var baz = 2
|
||||
"#;
|
||||
let (_, errs) = assert_no_err(some_program_string);
|
||||
assert_eq!(errs.len(), 3);
|
||||
let replaced = errs[2].apply_suggestion(some_program_string).unwrap();
|
||||
let replaced = errs[1].apply_suggestion(&replaced).unwrap();
|
||||
let replaced = errs[0].apply_suggestion(&replaced).unwrap();
|
||||
assert_eq!(
|
||||
replaced,
|
||||
r#"foo = 0
|
||||
bar = 1
|
||||
baz = 2
|
||||
"#
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_unary_not_on_keyword_bool() {
|
||||
let some_program_string = r#"!true"#;
|
||||
@ -5072,25 +5170,14 @@ mod snapshot_tests {
|
||||
};
|
||||
}
|
||||
|
||||
snapshot_test!(
|
||||
a,
|
||||
r#"boxSketch = startSketchOn(XY)
|
||||
|> startProfileAt(at = [0, 0])
|
||||
|> line(end = [0, 10])
|
||||
|> tangentialArc([-5, 5], %)
|
||||
|> line(end = [5, -15])
|
||||
|> extrude(length=10)
|
||||
"#
|
||||
);
|
||||
snapshot_test!(b, "myVar = min(5 , -legLen(5, 4))"); // Space before comma
|
||||
|
||||
snapshot_test!(c, "myVar = min(-legLen(5, 4), 5)");
|
||||
snapshot_test!(d, "myVar = 5 + 6 |> myFunc(45, %)");
|
||||
snapshot_test!(e, "x = 1 * (3 - 4)");
|
||||
snapshot_test!(b, "myVar = min(x = 5 , y = 3)"); // Space before comma
|
||||
snapshot_test!(c, "myVar = min(x = -legLen(hyp = 5, pot = 4), y = 5)");
|
||||
snapshot_test!(d, "myVar = 5 + 6 |> myFunc(45, y = %)");
|
||||
snapshot_test!(e, "let x = 1 * (3 - 4)");
|
||||
snapshot_test!(f, r#"x = 1 // this is an inline comment"#);
|
||||
snapshot_test!(
|
||||
g,
|
||||
r#"fn x() {
|
||||
r#"fn x = () => {
|
||||
return sg
|
||||
return sg
|
||||
}"#
|
||||
@ -5098,32 +5185,32 @@ mod snapshot_tests {
|
||||
snapshot_test!(d2, r#"x = -leg2 + thickness"#);
|
||||
snapshot_test!(
|
||||
h,
|
||||
r#"obj = { a = 1, b = 2 }
|
||||
r#"obj = { a: 1, b: 2 }
|
||||
height = 1 - obj.a"#
|
||||
);
|
||||
snapshot_test!(
|
||||
i,
|
||||
r#"obj = { a = 1, b = 2 }
|
||||
r#"obj = { a: 1, b: 2 }
|
||||
height = 1 - obj["a"]"#
|
||||
);
|
||||
snapshot_test!(
|
||||
j,
|
||||
r#"obj = { a = 1, b = 2 }
|
||||
r#"obj = { a: 1, b: 2 }
|
||||
height = obj["a"] - 1"#
|
||||
);
|
||||
snapshot_test!(
|
||||
k,
|
||||
r#"obj = { a = 1, b = 2 }
|
||||
r#"obj = { a: 1, b: 2 }
|
||||
height = [1 - obj["a"], 0]"#
|
||||
);
|
||||
snapshot_test!(
|
||||
l,
|
||||
r#"obj = { a = 1, b = 2 }
|
||||
r#"obj = { a: 1, b: 2 }
|
||||
height = [obj["a"] - 1, 0]"#
|
||||
);
|
||||
snapshot_test!(
|
||||
m,
|
||||
r#"obj = {a = 1, b = 2 }
|
||||
r#"obj = { a: 1, b: 2 }
|
||||
height = [obj["a"] -1, 0]"#
|
||||
);
|
||||
snapshot_test!(n, "height = 1 - obj.a");
|
||||
@ -5132,7 +5219,7 @@ mod snapshot_tests {
|
||||
snapshot_test!(q, r#"height = [ obj["a"], 0 ]"#);
|
||||
snapshot_test!(
|
||||
r,
|
||||
r#"obj = { a = 1, b = 2 }
|
||||
r#"obj = { a: 1, b: 2 }
|
||||
height = obj["a"]"#
|
||||
);
|
||||
snapshot_test!(s, r#"prop = yo["one"][two]"#);
|
||||
@ -5141,11 +5228,11 @@ mod snapshot_tests {
|
||||
snapshot_test!(v, r#"pt1 = b1[0]"#);
|
||||
snapshot_test!(w, r#"pt1 = b1['zero']"#);
|
||||
snapshot_test!(x, r#"pt1 = b1.zero"#);
|
||||
snapshot_test!(y, r#"sg = startSketchOn(XY) |> startProfileAt(pos, %)"#);
|
||||
snapshot_test!(y, r#"sg = startSketchOn(XY) |> startProfile(at = pos)"#);
|
||||
snapshot_test!(
|
||||
z,
|
||||
"sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos) |> line([0, -scale], %)"
|
||||
|> startProfile(at = pos) |> line([0, -scale])"
|
||||
);
|
||||
snapshot_test!(aa, r#"sg = -scale"#);
|
||||
snapshot_test!(ab, "line(endAbsolute = [0, -1])");
|
||||
@ -5153,14 +5240,14 @@ mod snapshot_tests {
|
||||
snapshot_test!(
|
||||
ad,
|
||||
r#"
|
||||
fn firstPrimeNumber() {
|
||||
fn firstPrimeNumber = () => {
|
||||
return 2
|
||||
}
|
||||
firstPrimeNumber()"#
|
||||
);
|
||||
snapshot_test!(
|
||||
ae,
|
||||
r#"fn thing(param) {
|
||||
r#"fn thing = (param) => {
|
||||
return true
|
||||
}
|
||||
thing(false)"#
|
||||
@ -5168,7 +5255,7 @@ mod snapshot_tests {
|
||||
snapshot_test!(
|
||||
af,
|
||||
r#"mySketch = startSketchOn(XY)
|
||||
|> startProfileAt(at = [0,0])
|
||||
|> startProfile(%,at=[0,0])
|
||||
|> line(endAbsolute = [0, 1], tag = $myPath)
|
||||
|> line(endAbsolute = [1, 1])
|
||||
|> line(endAbsolute = [1, 0], tag = $rightPath)
|
||||
@ -5176,24 +5263,24 @@ mod snapshot_tests {
|
||||
);
|
||||
snapshot_test!(
|
||||
ag,
|
||||
"mySketch = startSketchOn(XY) |> startProfileAt([0,0], %) |> line(endAbsolute = [1, 1]) |> close()"
|
||||
"mySketch = startSketchOn(XY) |> startProfile(at=[0,0]) |> line(endAbsolute = [1, 1]) |> close()"
|
||||
);
|
||||
snapshot_test!(ah, "myBox = startSketchOn(XY) |> startProfileAt(p, %)");
|
||||
snapshot_test!(ai, r#"myBox = f(1) |> g(2, %)"#);
|
||||
snapshot_test!(ah, "myBox = startSketchOn(XY) |> startProfileAt(p)");
|
||||
snapshot_test!(ai, r#"myBox = f(1) |> g(2, arg=%)"#);
|
||||
snapshot_test!(
|
||||
aj,
|
||||
r#"myBox = startSketchOn(XY) |> startProfileAt(p, %) |> line(end = [0, l])"#
|
||||
r#"myBox = startSketchOn(XY) |> startProfile(%, at=p) |> line(end = [0, l])"#
|
||||
);
|
||||
snapshot_test!(ak, "line(endAbsolute = [0, 1])");
|
||||
snapshot_test!(ap, "mySketch = startSketchOn(XY) |> startProfileAt([0,0], %)");
|
||||
snapshot_test!(aq, "log(5, \"hello\", aIdentifier)");
|
||||
snapshot_test!(ap, "mySketch = startSketchOn(XY) |> startProfile(at = [0,0])");
|
||||
snapshot_test!(aq, "log(5, arg=\"hello\", arg2=aIdentifier)");
|
||||
snapshot_test!(ar, r#"5 + "a""#);
|
||||
snapshot_test!(at, "line([0, l], %)");
|
||||
snapshot_test!(at, "line(%, end = [0, l])");
|
||||
snapshot_test!(au, include_str!("../../e2e/executor/inputs/cylinder.kcl"));
|
||||
snapshot_test!(av, "fn f(angle?) { return default(angle, 360) }");
|
||||
snapshot_test!(av, "fn f = (angle?) => { return default(ifNone=360, otherwise=360) }");
|
||||
snapshot_test!(
|
||||
aw,
|
||||
"numbers = [
|
||||
"let numbers = [
|
||||
1,
|
||||
// A,
|
||||
// B,
|
||||
@ -5202,7 +5289,7 @@ mod snapshot_tests {
|
||||
);
|
||||
snapshot_test!(
|
||||
ax,
|
||||
"numbers = [
|
||||
"let numbers = [
|
||||
1,
|
||||
2,
|
||||
// A,
|
||||
@ -5219,7 +5306,7 @@ mod snapshot_tests {
|
||||
);
|
||||
snapshot_test!(
|
||||
az,
|
||||
"props = {
|
||||
"let props = {
|
||||
a: 1,
|
||||
// b: 2,
|
||||
c: 3
|
||||
@ -5249,14 +5336,14 @@ my14 = 4 ^ 2 - 3 ^ 2 * 2
|
||||
5
|
||||
}"#
|
||||
);
|
||||
snapshot_test!(be, "x = 3 == 3");
|
||||
snapshot_test!(bf, "x = 3 != 3");
|
||||
snapshot_test!(be, "let x = 3 == 3");
|
||||
snapshot_test!(bf, "let x = 3 != 3");
|
||||
snapshot_test!(bg, r#"x = 4"#);
|
||||
snapshot_test!(bh, "obj = {center = [10, 10], radius =5}");
|
||||
snapshot_test!(bh, "obj = {center : [10, 10], radius: 5}");
|
||||
snapshot_test!(
|
||||
bi,
|
||||
r#"x = 3
|
||||
obj = { x, y = 4}"#
|
||||
obj = { x, y: 4}"#
|
||||
);
|
||||
snapshot_test!(bj, "true");
|
||||
snapshot_test!(bk, "truee");
|
||||
@ -5290,6 +5377,8 @@ my14 = 4 ^ 2 - 3 ^ 2 * 2
|
||||
)"#
|
||||
);
|
||||
snapshot_test!(kw_function_in_binary_op, r#"val = f(x = 1) + 1"#);
|
||||
snapshot_test!(kw_function_args_zero, r#"val = f()"#);
|
||||
snapshot_test!(kw_function_args_one, r#"val = f(3)"#);
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 5,
|
||||
"declaration": {
|
||||
"commentStart": 8,
|
||||
"end": 51,
|
||||
"end": 57,
|
||||
"id": {
|
||||
"commentStart": 8,
|
||||
"end": 24,
|
||||
@ -21,10 +21,10 @@ expression: actual
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"commentStart": 50,
|
||||
"end": 51,
|
||||
"raw": "2",
|
||||
"start": 44,
|
||||
"start": 50,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -32,65 +32,65 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"commentStart": 37,
|
||||
"end": 45,
|
||||
"start": 37,
|
||||
"commentStart": 43,
|
||||
"end": 51,
|
||||
"start": 43,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 27,
|
||||
"end": 51,
|
||||
"start": 27
|
||||
"commentStart": 33,
|
||||
"end": 57,
|
||||
"start": 33
|
||||
},
|
||||
"commentStart": 24,
|
||||
"end": 51,
|
||||
"commentStart": 27,
|
||||
"end": 57,
|
||||
"params": [],
|
||||
"start": 24,
|
||||
"start": 27,
|
||||
"type": "FunctionExpression",
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"start": 8,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 51,
|
||||
"end": 57,
|
||||
"kind": "fn",
|
||||
"start": 5,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 56,
|
||||
"end": 74,
|
||||
"commentStart": 62,
|
||||
"end": 80,
|
||||
"expression": {
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 56,
|
||||
"end": 72,
|
||||
"commentStart": 62,
|
||||
"end": 78,
|
||||
"name": {
|
||||
"commentStart": 56,
|
||||
"end": 72,
|
||||
"commentStart": 62,
|
||||
"end": 78,
|
||||
"name": "firstPrimeNumber",
|
||||
"start": 56,
|
||||
"start": 62,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 56,
|
||||
"start": 62,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 56,
|
||||
"end": 74,
|
||||
"start": 56,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"commentStart": 62,
|
||||
"end": 80,
|
||||
"start": 62,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
"start": 56,
|
||||
"start": 62,
|
||||
"type": "ExpressionStatement",
|
||||
"type": "ExpressionStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 74,
|
||||
"end": 80,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 3,
|
||||
"end": 43,
|
||||
"end": 49,
|
||||
"id": {
|
||||
"commentStart": 3,
|
||||
"end": 8,
|
||||
@ -21,94 +21,92 @@ expression: actual
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 33,
|
||||
"end": 37,
|
||||
"commentStart": 39,
|
||||
"end": 43,
|
||||
"raw": "true",
|
||||
"start": 33,
|
||||
"start": 39,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": true
|
||||
},
|
||||
"commentStart": 26,
|
||||
"end": 37,
|
||||
"start": 26,
|
||||
"commentStart": 32,
|
||||
"end": 43,
|
||||
"start": 32,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 16,
|
||||
"end": 43,
|
||||
"start": 16
|
||||
"commentStart": 22,
|
||||
"end": 49,
|
||||
"start": 22
|
||||
},
|
||||
"commentStart": 8,
|
||||
"end": 43,
|
||||
"commentStart": 11,
|
||||
"end": 49,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"commentStart": 9,
|
||||
"end": 14,
|
||||
"commentStart": 12,
|
||||
"end": 17,
|
||||
"name": "param",
|
||||
"start": 9,
|
||||
"start": 12,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 8,
|
||||
"start": 11,
|
||||
"type": "FunctionExpression",
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"start": 3,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 43,
|
||||
"end": 49,
|
||||
"kind": "fn",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 48,
|
||||
"end": 60,
|
||||
"commentStart": 54,
|
||||
"end": 66,
|
||||
"expression": {
|
||||
"arguments": [
|
||||
{
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 54,
|
||||
"end": 59,
|
||||
"raw": "false",
|
||||
"name": {
|
||||
"commentStart": 54,
|
||||
"end": 59,
|
||||
"name": "thing",
|
||||
"start": 54,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 54,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 54,
|
||||
"end": 66,
|
||||
"start": 54,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 60,
|
||||
"end": 65,
|
||||
"raw": "false",
|
||||
"start": 60,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": false
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 48,
|
||||
"end": 53,
|
||||
"name": {
|
||||
"commentStart": 48,
|
||||
"end": 53,
|
||||
"name": "thing",
|
||||
"start": 48,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 48,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 48,
|
||||
"end": 60,
|
||||
"start": 48,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
"start": 48,
|
||||
"start": 54,
|
||||
"type": "ExpressionStatement",
|
||||
"type": "ExpressionStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 60,
|
||||
"end": 66,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 232,
|
||||
"end": 230,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 8,
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 11,
|
||||
@ -55,8 +37,24 @@ expression: actual
|
||||
"commentStart": 11,
|
||||
"end": 28,
|
||||
"start": 11,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
@ -70,8 +68,20 @@ expression: actual
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 60,
|
||||
"commentStart": 58,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 59,
|
||||
"end": 60,
|
||||
"raw": "0",
|
||||
"start": 59,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 61,
|
||||
"end": 62,
|
||||
@ -83,22 +93,10 @@ expression: actual
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 63,
|
||||
"end": 64,
|
||||
"raw": "0",
|
||||
"start": 63,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 65,
|
||||
"start": 60,
|
||||
"end": 63,
|
||||
"start": 58,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -107,11 +105,11 @@ expression: actual
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 40,
|
||||
"end": 54,
|
||||
"end": 52,
|
||||
"name": {
|
||||
"commentStart": 40,
|
||||
"end": 54,
|
||||
"name": "startProfileAt",
|
||||
"end": 52,
|
||||
"name": "startProfile",
|
||||
"start": 40,
|
||||
"type": "Identifier"
|
||||
},
|
||||
@ -120,31 +118,37 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 40,
|
||||
"end": 66,
|
||||
"end": 64,
|
||||
"start": 40,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
"unlabeled": {
|
||||
"commentStart": 53,
|
||||
"end": 54,
|
||||
"start": 53,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 83,
|
||||
"end": 94,
|
||||
"commentStart": 81,
|
||||
"end": 92,
|
||||
"name": "endAbsolute",
|
||||
"start": 83,
|
||||
"start": 81,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 97,
|
||||
"commentStart": 95,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 98,
|
||||
"end": 99,
|
||||
"commentStart": 96,
|
||||
"end": 97,
|
||||
"raw": "0",
|
||||
"start": 98,
|
||||
"start": 96,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -153,10 +157,10 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 101,
|
||||
"end": 102,
|
||||
"commentStart": 99,
|
||||
"end": 100,
|
||||
"raw": "1",
|
||||
"start": 101,
|
||||
"start": 99,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -165,8 +169,8 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 103,
|
||||
"start": 97,
|
||||
"end": 101,
|
||||
"start": 95,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -174,16 +178,16 @@ expression: actual
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 105,
|
||||
"end": 108,
|
||||
"commentStart": 103,
|
||||
"end": 106,
|
||||
"name": "tag",
|
||||
"start": 105,
|
||||
"start": 103,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 111,
|
||||
"end": 118,
|
||||
"start": 111,
|
||||
"commentStart": 109,
|
||||
"end": 116,
|
||||
"start": 109,
|
||||
"type": "TagDeclarator",
|
||||
"type": "TagDeclarator",
|
||||
"value": "myPath"
|
||||
@ -192,22 +196,22 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 78,
|
||||
"end": 82,
|
||||
"commentStart": 76,
|
||||
"end": 80,
|
||||
"name": {
|
||||
"commentStart": 78,
|
||||
"end": 82,
|
||||
"commentStart": 76,
|
||||
"end": 80,
|
||||
"name": "line",
|
||||
"start": 78,
|
||||
"start": 76,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 78,
|
||||
"start": 76,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 78,
|
||||
"end": 119,
|
||||
"start": 78,
|
||||
"commentStart": 76,
|
||||
"end": 117,
|
||||
"start": 76,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -217,20 +221,20 @@ expression: actual
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 136,
|
||||
"end": 147,
|
||||
"commentStart": 134,
|
||||
"end": 145,
|
||||
"name": "endAbsolute",
|
||||
"start": 136,
|
||||
"start": 134,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 150,
|
||||
"commentStart": 148,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 151,
|
||||
"end": 152,
|
||||
"commentStart": 149,
|
||||
"end": 150,
|
||||
"raw": "1",
|
||||
"start": 151,
|
||||
"start": 149,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -239,10 +243,10 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 154,
|
||||
"end": 155,
|
||||
"commentStart": 152,
|
||||
"end": 153,
|
||||
"raw": "1",
|
||||
"start": 154,
|
||||
"start": 152,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -251,8 +255,8 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 156,
|
||||
"start": 150,
|
||||
"end": 154,
|
||||
"start": 148,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -260,22 +264,22 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 131,
|
||||
"end": 135,
|
||||
"commentStart": 129,
|
||||
"end": 133,
|
||||
"name": {
|
||||
"commentStart": 131,
|
||||
"end": 135,
|
||||
"commentStart": 129,
|
||||
"end": 133,
|
||||
"name": "line",
|
||||
"start": 131,
|
||||
"start": 129,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 131,
|
||||
"start": 129,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 131,
|
||||
"end": 157,
|
||||
"start": 131,
|
||||
"commentStart": 129,
|
||||
"end": 155,
|
||||
"start": 129,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -285,20 +289,20 @@ expression: actual
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 174,
|
||||
"end": 185,
|
||||
"commentStart": 172,
|
||||
"end": 183,
|
||||
"name": "endAbsolute",
|
||||
"start": 174,
|
||||
"start": 172,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 188,
|
||||
"commentStart": 186,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 189,
|
||||
"end": 190,
|
||||
"commentStart": 187,
|
||||
"end": 188,
|
||||
"raw": "1",
|
||||
"start": 189,
|
||||
"start": 187,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -307,10 +311,10 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 192,
|
||||
"end": 193,
|
||||
"commentStart": 190,
|
||||
"end": 191,
|
||||
"raw": "0",
|
||||
"start": 192,
|
||||
"start": 190,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -319,8 +323,8 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 194,
|
||||
"start": 188,
|
||||
"end": 192,
|
||||
"start": 186,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -328,16 +332,16 @@ expression: actual
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 196,
|
||||
"end": 199,
|
||||
"commentStart": 194,
|
||||
"end": 197,
|
||||
"name": "tag",
|
||||
"start": 196,
|
||||
"start": 194,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 202,
|
||||
"end": 212,
|
||||
"start": 202,
|
||||
"commentStart": 200,
|
||||
"end": 210,
|
||||
"start": 200,
|
||||
"type": "TagDeclarator",
|
||||
"type": "TagDeclarator",
|
||||
"value": "rightPath"
|
||||
@ -346,52 +350,52 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 169,
|
||||
"end": 173,
|
||||
"commentStart": 167,
|
||||
"end": 171,
|
||||
"name": {
|
||||
"commentStart": 169,
|
||||
"end": 173,
|
||||
"commentStart": 167,
|
||||
"end": 171,
|
||||
"name": "line",
|
||||
"start": 169,
|
||||
"start": 167,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 169,
|
||||
"start": 167,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 169,
|
||||
"end": 213,
|
||||
"start": 169,
|
||||
"commentStart": 167,
|
||||
"end": 211,
|
||||
"start": 167,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 225,
|
||||
"end": 230,
|
||||
"commentStart": 223,
|
||||
"end": 228,
|
||||
"name": {
|
||||
"commentStart": 225,
|
||||
"end": 230,
|
||||
"commentStart": 223,
|
||||
"end": 228,
|
||||
"name": "close",
|
||||
"start": 225,
|
||||
"start": 223,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 225,
|
||||
"start": 223,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 225,
|
||||
"end": 232,
|
||||
"start": 225,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"commentStart": 223,
|
||||
"end": 230,
|
||||
"start": 223,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 11,
|
||||
"end": 232,
|
||||
"end": 230,
|
||||
"start": 11,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -399,7 +403,7 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 232,
|
||||
"end": 230,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -407,6 +411,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 232,
|
||||
"end": 230,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 97,
|
||||
"end": 95,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 8,
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 11,
|
||||
@ -55,114 +37,66 @@ expression: actual
|
||||
"commentStart": 11,
|
||||
"end": 28,
|
||||
"start": 11,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 47,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 48,
|
||||
"end": 49,
|
||||
"raw": "0",
|
||||
"start": 48,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 50,
|
||||
"end": 51,
|
||||
"raw": "0",
|
||||
"start": 50,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 52,
|
||||
"start": 47,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 54,
|
||||
"end": 55,
|
||||
"start": 54,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 32,
|
||||
"end": 46,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 32,
|
||||
"end": 46,
|
||||
"name": "startProfileAt",
|
||||
"start": 32,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 32,
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 32,
|
||||
"end": 56,
|
||||
"start": 32,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 65,
|
||||
"end": 76,
|
||||
"name": "endAbsolute",
|
||||
"start": 65,
|
||||
"commentStart": 45,
|
||||
"end": 47,
|
||||
"name": "at",
|
||||
"start": 45,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 79,
|
||||
"commentStart": 48,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 80,
|
||||
"end": 81,
|
||||
"raw": "1",
|
||||
"start": 80,
|
||||
"commentStart": 49,
|
||||
"end": 50,
|
||||
"raw": "0",
|
||||
"start": 49,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 83,
|
||||
"end": 84,
|
||||
"raw": "1",
|
||||
"start": 83,
|
||||
"commentStart": 51,
|
||||
"end": 52,
|
||||
"raw": "0",
|
||||
"start": 51,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 85,
|
||||
"start": 79,
|
||||
"end": 53,
|
||||
"start": 48,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -170,52 +104,120 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 60,
|
||||
"end": 64,
|
||||
"commentStart": 32,
|
||||
"end": 44,
|
||||
"name": {
|
||||
"commentStart": 60,
|
||||
"end": 64,
|
||||
"name": "line",
|
||||
"start": 60,
|
||||
"commentStart": 32,
|
||||
"end": 44,
|
||||
"name": "startProfile",
|
||||
"start": 32,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 60,
|
||||
"start": 32,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 60,
|
||||
"end": 86,
|
||||
"start": 60,
|
||||
"commentStart": 32,
|
||||
"end": 54,
|
||||
"start": 32,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [],
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 63,
|
||||
"end": 74,
|
||||
"name": "endAbsolute",
|
||||
"start": 63,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 77,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 78,
|
||||
"end": 79,
|
||||
"raw": "1",
|
||||
"start": 78,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 81,
|
||||
"end": 82,
|
||||
"raw": "1",
|
||||
"start": 81,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 83,
|
||||
"start": 77,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 90,
|
||||
"end": 95,
|
||||
"commentStart": 58,
|
||||
"end": 62,
|
||||
"name": {
|
||||
"commentStart": 90,
|
||||
"end": 95,
|
||||
"name": "close",
|
||||
"start": 90,
|
||||
"commentStart": 58,
|
||||
"end": 62,
|
||||
"name": "line",
|
||||
"start": 58,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 90,
|
||||
"start": 58,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 90,
|
||||
"end": 97,
|
||||
"start": 90,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"commentStart": 58,
|
||||
"end": 84,
|
||||
"start": 58,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 88,
|
||||
"end": 93,
|
||||
"name": {
|
||||
"commentStart": 88,
|
||||
"end": 93,
|
||||
"name": "close",
|
||||
"start": 88,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 88,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 88,
|
||||
"end": 95,
|
||||
"start": 88,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 11,
|
||||
"end": 97,
|
||||
"end": 95,
|
||||
"start": 11,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -223,7 +225,7 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 97,
|
||||
"end": 95,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -231,6 +233,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 97,
|
||||
"end": 95,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 49,
|
||||
"end": 46,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 5,
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": {
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": "XY",
|
||||
"start": 22,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 22,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 8,
|
||||
@ -55,35 +37,26 @@ expression: actual
|
||||
"commentStart": 8,
|
||||
"end": 25,
|
||||
"start": 8,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": {
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"name": "p",
|
||||
"start": 44,
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": "XY",
|
||||
"start": 22,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 44,
|
||||
"start": 22,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 47,
|
||||
"end": 48,
|
||||
"start": 47,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 29,
|
||||
@ -100,14 +73,30 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 29,
|
||||
"end": 49,
|
||||
"end": 46,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"name": {
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"name": "p",
|
||||
"start": 44,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 44,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
}
|
||||
],
|
||||
"commentStart": 8,
|
||||
"end": 49,
|
||||
"end": 46,
|
||||
"start": 8,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -115,7 +104,7 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 49,
|
||||
"end": 46,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -123,6 +112,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 49,
|
||||
"end": 46,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 23,
|
||||
"end": 27,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 5,
|
||||
@ -19,20 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 10,
|
||||
"end": 11,
|
||||
"raw": "1",
|
||||
"start": 10,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 8,
|
||||
@ -51,30 +37,40 @@ expression: actual
|
||||
"commentStart": 8,
|
||||
"end": 12,
|
||||
"start": 8,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 10,
|
||||
"end": 11,
|
||||
"raw": "1",
|
||||
"start": 10,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 18,
|
||||
"end": 19,
|
||||
"raw": "2",
|
||||
"start": 18,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 21,
|
||||
"end": 22,
|
||||
"end": 24,
|
||||
"name": "arg",
|
||||
"start": 21,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 25,
|
||||
"end": 26,
|
||||
"start": 25,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
@ -92,14 +88,26 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 16,
|
||||
"end": 23,
|
||||
"end": 27,
|
||||
"start": 16,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 18,
|
||||
"end": 19,
|
||||
"raw": "2",
|
||||
"start": 18,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"commentStart": 8,
|
||||
"end": 23,
|
||||
"end": 27,
|
||||
"start": 8,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -107,7 +115,7 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 23,
|
||||
"end": 27,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -115,6 +123,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 23,
|
||||
"end": 27,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 71,
|
||||
"end": 72,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 5,
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": {
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": "XY",
|
||||
"start": 22,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 22,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 8,
|
||||
@ -55,75 +37,101 @@ expression: actual
|
||||
"commentStart": 8,
|
||||
"end": 25,
|
||||
"start": 8,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": {
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"name": "p",
|
||||
"start": 44,
|
||||
"commentStart": 22,
|
||||
"end": 24,
|
||||
"name": "XY",
|
||||
"start": 22,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 44,
|
||||
"start": 22,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"commentStart": 47,
|
||||
"end": 48,
|
||||
"start": 47,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 29,
|
||||
"end": 43,
|
||||
"name": {
|
||||
"commentStart": 29,
|
||||
"end": 43,
|
||||
"name": "startProfileAt",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 29,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 29,
|
||||
"end": 49,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 58,
|
||||
"end": 61,
|
||||
"name": "end",
|
||||
"start": 58,
|
||||
"commentStart": 45,
|
||||
"end": 47,
|
||||
"name": "at",
|
||||
"start": 45,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 64,
|
||||
"abs_path": false,
|
||||
"commentStart": 48,
|
||||
"end": 49,
|
||||
"name": {
|
||||
"commentStart": 48,
|
||||
"end": 49,
|
||||
"name": "p",
|
||||
"start": 48,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 48,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 29,
|
||||
"end": 41,
|
||||
"name": {
|
||||
"commentStart": 29,
|
||||
"end": 41,
|
||||
"name": "startProfile",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 29,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 29,
|
||||
"end": 50,
|
||||
"start": 29,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 42,
|
||||
"end": 43,
|
||||
"start": 42,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 59,
|
||||
"end": 62,
|
||||
"name": "end",
|
||||
"start": 59,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 65,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 65,
|
||||
"end": 66,
|
||||
"commentStart": 66,
|
||||
"end": 67,
|
||||
"raw": "0",
|
||||
"start": 65,
|
||||
"start": 66,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -133,23 +141,23 @@ expression: actual
|
||||
},
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 68,
|
||||
"end": 69,
|
||||
"commentStart": 69,
|
||||
"end": 70,
|
||||
"name": {
|
||||
"commentStart": 68,
|
||||
"end": 69,
|
||||
"commentStart": 69,
|
||||
"end": 70,
|
||||
"name": "l",
|
||||
"start": 68,
|
||||
"start": 69,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 68,
|
||||
"start": 69,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"end": 70,
|
||||
"start": 64,
|
||||
"end": 71,
|
||||
"start": 65,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -157,29 +165,29 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 53,
|
||||
"end": 57,
|
||||
"commentStart": 54,
|
||||
"end": 58,
|
||||
"name": {
|
||||
"commentStart": 53,
|
||||
"end": 57,
|
||||
"commentStart": 54,
|
||||
"end": 58,
|
||||
"name": "line",
|
||||
"start": 53,
|
||||
"start": 54,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 53,
|
||||
"start": 54,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 53,
|
||||
"end": 71,
|
||||
"start": 53,
|
||||
"commentStart": 54,
|
||||
"end": 72,
|
||||
"start": 54,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 8,
|
||||
"end": 71,
|
||||
"end": 72,
|
||||
"start": 8,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -187,7 +195,7 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 71,
|
||||
"end": 72,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -195,6 +203,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 71,
|
||||
"end": 72,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 11,
|
||||
@ -55,19 +37,44 @@ expression: actual
|
||||
"commentStart": 11,
|
||||
"end": 28,
|
||||
"start": 11,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 47,
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 45,
|
||||
"end": 47,
|
||||
"name": "at",
|
||||
"start": 45,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 50,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 48,
|
||||
"end": 49,
|
||||
"commentStart": 51,
|
||||
"end": 52,
|
||||
"raw": "0",
|
||||
"start": 48,
|
||||
"start": 51,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -76,10 +83,10 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 50,
|
||||
"end": 51,
|
||||
"commentStart": 53,
|
||||
"end": 54,
|
||||
"raw": "0",
|
||||
"start": 50,
|
||||
"start": 53,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -88,27 +95,21 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 52,
|
||||
"start": 47,
|
||||
"end": 55,
|
||||
"start": 50,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 54,
|
||||
"end": 55,
|
||||
"start": 54,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 32,
|
||||
"end": 46,
|
||||
"end": 44,
|
||||
"name": {
|
||||
"commentStart": 32,
|
||||
"end": 46,
|
||||
"name": "startProfileAt",
|
||||
"end": 44,
|
||||
"name": "startProfile",
|
||||
"start": 32,
|
||||
"type": "Identifier"
|
||||
},
|
||||
@ -119,8 +120,9 @@ expression: actual
|
||||
"commentStart": 32,
|
||||
"end": 56,
|
||||
"start": 32,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 11,
|
||||
|
||||
@ -6,46 +6,54 @@ expression: actual
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"end": 28,
|
||||
"end": 37,
|
||||
"expression": {
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"raw": "5",
|
||||
"start": 4,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 7,
|
||||
"end": 14,
|
||||
"raw": "\"hello\"",
|
||||
"end": 10,
|
||||
"name": "arg",
|
||||
"start": 7,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 11,
|
||||
"end": 18,
|
||||
"raw": "\"hello\"",
|
||||
"start": 11,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "hello"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 20,
|
||||
"end": 24,
|
||||
"name": "arg2",
|
||||
"start": 20,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"abs_path": false,
|
||||
"commentStart": 16,
|
||||
"end": 27,
|
||||
"commentStart": 25,
|
||||
"end": 36,
|
||||
"name": {
|
||||
"commentStart": 16,
|
||||
"end": 27,
|
||||
"commentStart": 25,
|
||||
"end": 36,
|
||||
"name": "aIdentifier",
|
||||
"start": 16,
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 16,
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
@ -63,10 +71,22 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 0,
|
||||
"end": 28,
|
||||
"end": 37,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"raw": "5",
|
||||
"start": 4,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
},
|
||||
"start": 0,
|
||||
"type": "ExpressionStatement",
|
||||
@ -74,6 +94,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 28,
|
||||
"end": 37,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -6,17 +6,26 @@ expression: actual
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"end": 15,
|
||||
"end": 21,
|
||||
"expression": {
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 5,
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 8,
|
||||
"end": 11,
|
||||
"name": "end",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 14,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 6,
|
||||
"end": 7,
|
||||
"commentStart": 15,
|
||||
"end": 16,
|
||||
"raw": "0",
|
||||
"start": 6,
|
||||
"start": 15,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -26,32 +35,26 @@ expression: actual
|
||||
},
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 9,
|
||||
"end": 10,
|
||||
"commentStart": 18,
|
||||
"end": 19,
|
||||
"name": {
|
||||
"commentStart": 9,
|
||||
"end": 10,
|
||||
"commentStart": 18,
|
||||
"end": 19,
|
||||
"name": "l",
|
||||
"start": 9,
|
||||
"start": 18,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 9,
|
||||
"start": 18,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"end": 11,
|
||||
"start": 5,
|
||||
"end": 20,
|
||||
"start": 14,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 13,
|
||||
"end": 14,
|
||||
"start": 13,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
@ -70,10 +73,17 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 0,
|
||||
"end": 15,
|
||||
"end": 21,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 5,
|
||||
"end": 6,
|
||||
"start": 5,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
},
|
||||
"start": 0,
|
||||
"type": "ExpressionStatement",
|
||||
@ -81,6 +91,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 15,
|
||||
"end": 21,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 11,
|
||||
@ -55,8 +37,24 @@ expression: actual
|
||||
"commentStart": 11,
|
||||
"end": 28,
|
||||
"start": 11,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": {
|
||||
"commentStart": 25,
|
||||
"end": 27,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 25,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 3,
|
||||
"end": 43,
|
||||
"end": 64,
|
||||
"id": {
|
||||
"commentStart": 3,
|
||||
"end": 4,
|
||||
@ -23,26 +23,19 @@ expression: actual
|
||||
"argument": {
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 30,
|
||||
"end": 35,
|
||||
"name": {
|
||||
"commentStart": 30,
|
||||
"end": 35,
|
||||
"name": "angle",
|
||||
"start": 30,
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 36,
|
||||
"end": 42,
|
||||
"name": "ifNone",
|
||||
"start": 36,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 30,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"commentStart": 37,
|
||||
"end": 40,
|
||||
"arg": {
|
||||
"commentStart": 43,
|
||||
"end": 46,
|
||||
"raw": "360",
|
||||
"start": 37,
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -50,49 +43,73 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 48,
|
||||
"end": 57,
|
||||
"name": "otherwise",
|
||||
"start": 48,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 58,
|
||||
"end": 61,
|
||||
"raw": "360",
|
||||
"start": 58,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 360.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 22,
|
||||
"end": 29,
|
||||
"commentStart": 28,
|
||||
"end": 35,
|
||||
"name": {
|
||||
"commentStart": 22,
|
||||
"end": 29,
|
||||
"commentStart": 28,
|
||||
"end": 35,
|
||||
"name": "default",
|
||||
"start": 22,
|
||||
"start": 28,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 22,
|
||||
"start": 28,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 22,
|
||||
"end": 41,
|
||||
"start": 22,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"commentStart": 28,
|
||||
"end": 62,
|
||||
"start": 28,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
"commentStart": 15,
|
||||
"end": 41,
|
||||
"start": 15,
|
||||
"commentStart": 21,
|
||||
"end": 62,
|
||||
"start": 21,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 13,
|
||||
"end": 43,
|
||||
"start": 13
|
||||
"commentStart": 19,
|
||||
"end": 64,
|
||||
"start": 19
|
||||
},
|
||||
"commentStart": 4,
|
||||
"end": 43,
|
||||
"commentStart": 7,
|
||||
"end": 64,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"commentStart": 5,
|
||||
"end": 10,
|
||||
"commentStart": 8,
|
||||
"end": 13,
|
||||
"name": "angle",
|
||||
"start": 5,
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"default_value": {
|
||||
@ -102,14 +119,14 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 4,
|
||||
"start": 7,
|
||||
"type": "FunctionExpression",
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"start": 3,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 43,
|
||||
"end": 64,
|
||||
"kind": "fn",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -117,6 +134,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 43,
|
||||
"end": 64,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -7,23 +7,23 @@ expression: actual
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 87,
|
||||
"commentStart": 4,
|
||||
"end": 91,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 7,
|
||||
"commentStart": 4,
|
||||
"end": 11,
|
||||
"name": "numbers",
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 10,
|
||||
"commentStart": 14,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 24,
|
||||
"end": 25,
|
||||
"commentStart": 28,
|
||||
"end": 29,
|
||||
"raw": "1",
|
||||
"start": 24,
|
||||
"start": 28,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -32,10 +32,10 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 75,
|
||||
"end": 76,
|
||||
"commentStart": 79,
|
||||
"end": 80,
|
||||
"raw": "3",
|
||||
"start": 75,
|
||||
"start": 79,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -44,14 +44,14 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 87,
|
||||
"end": 91,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"1": [
|
||||
{
|
||||
"commentStart": 39,
|
||||
"end": 44,
|
||||
"start": 39,
|
||||
"commentStart": 43,
|
||||
"end": 48,
|
||||
"start": 43,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
@ -62,9 +62,9 @@ expression: actual
|
||||
],
|
||||
"2": [
|
||||
{
|
||||
"commentStart": 57,
|
||||
"end": 62,
|
||||
"start": 57,
|
||||
"commentStart": 61,
|
||||
"end": 66,
|
||||
"start": 61,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
@ -76,14 +76,14 @@ expression: actual
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 10,
|
||||
"start": 14,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 87,
|
||||
"end": 91,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -91,6 +91,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 87,
|
||||
"end": 91,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -7,23 +7,23 @@ expression: actual
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 87,
|
||||
"commentStart": 4,
|
||||
"end": 91,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 7,
|
||||
"commentStart": 4,
|
||||
"end": 11,
|
||||
"name": "numbers",
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 10,
|
||||
"commentStart": 14,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 24,
|
||||
"end": 25,
|
||||
"commentStart": 28,
|
||||
"end": 29,
|
||||
"raw": "1",
|
||||
"start": 24,
|
||||
"start": 28,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -32,10 +32,10 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 39,
|
||||
"end": 40,
|
||||
"commentStart": 43,
|
||||
"end": 44,
|
||||
"raw": "2",
|
||||
"start": 39,
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -44,14 +44,14 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 87,
|
||||
"end": 91,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"2": [
|
||||
{
|
||||
"commentStart": 54,
|
||||
"end": 59,
|
||||
"start": 54,
|
||||
"commentStart": 58,
|
||||
"end": 63,
|
||||
"start": 58,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
@ -62,9 +62,9 @@ expression: actual
|
||||
],
|
||||
"3": [
|
||||
{
|
||||
"commentStart": 72,
|
||||
"end": 77,
|
||||
"start": 72,
|
||||
"commentStart": 76,
|
||||
"end": 81,
|
||||
"start": 76,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
@ -76,14 +76,14 @@ expression: actual
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 10,
|
||||
"start": 14,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 87,
|
||||
"end": 91,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -91,6 +91,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 87,
|
||||
"end": 91,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -7,25 +7,25 @@ expression: actual
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 75,
|
||||
"commentStart": 4,
|
||||
"end": 79,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 5,
|
||||
"commentStart": 4,
|
||||
"end": 9,
|
||||
"name": "props",
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 8,
|
||||
"end": 75,
|
||||
"commentStart": 12,
|
||||
"end": 79,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"1": [
|
||||
{
|
||||
"commentStart": 40,
|
||||
"end": 48,
|
||||
"start": 40,
|
||||
"commentStart": 44,
|
||||
"end": 52,
|
||||
"start": 44,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
@ -39,22 +39,22 @@ expression: actual
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 22,
|
||||
"end": 26,
|
||||
"commentStart": 26,
|
||||
"end": 30,
|
||||
"key": {
|
||||
"commentStart": 22,
|
||||
"end": 23,
|
||||
"commentStart": 26,
|
||||
"end": 27,
|
||||
"name": "a",
|
||||
"start": 22,
|
||||
"start": 26,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 22,
|
||||
"start": 26,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 25,
|
||||
"end": 26,
|
||||
"commentStart": 29,
|
||||
"end": 30,
|
||||
"raw": "1",
|
||||
"start": 25,
|
||||
"start": 29,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -64,22 +64,22 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 61,
|
||||
"end": 65,
|
||||
"commentStart": 65,
|
||||
"end": 69,
|
||||
"key": {
|
||||
"commentStart": 61,
|
||||
"end": 62,
|
||||
"commentStart": 65,
|
||||
"end": 66,
|
||||
"name": "c",
|
||||
"start": 61,
|
||||
"start": 65,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 61,
|
||||
"start": 65,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 64,
|
||||
"end": 65,
|
||||
"commentStart": 68,
|
||||
"end": 69,
|
||||
"raw": "3",
|
||||
"start": 64,
|
||||
"start": 68,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -89,14 +89,14 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 8,
|
||||
"start": 12,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 75,
|
||||
"end": 79,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -104,6 +104,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 75,
|
||||
"end": 79,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 30,
|
||||
"end": 26,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 5,
|
||||
@ -19,72 +19,48 @@ expression: actual
|
||||
"init": {
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"raw": "5",
|
||||
"name": "x",
|
||||
"start": 12,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 16,
|
||||
"end": 17,
|
||||
"raw": "5",
|
||||
"start": 16,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 20,
|
||||
"end": 21,
|
||||
"name": "y",
|
||||
"start": 20,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 24,
|
||||
"end": 25,
|
||||
"raw": "5",
|
||||
"raw": "3",
|
||||
"start": 24,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 27,
|
||||
"end": 28,
|
||||
"raw": "4",
|
||||
"start": 27,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 4.0,
|
||||
"value": 3.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 17,
|
||||
"end": 23,
|
||||
"name": {
|
||||
"commentStart": 17,
|
||||
"end": 23,
|
||||
"name": "legLen",
|
||||
"start": 17,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 17,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 17,
|
||||
"end": 29,
|
||||
"start": 17,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
"commentStart": 16,
|
||||
"end": 29,
|
||||
"operator": "-",
|
||||
"start": 16,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
@ -103,15 +79,16 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 8,
|
||||
"end": 30,
|
||||
"end": 26,
|
||||
"start": 8,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 30,
|
||||
"end": 26,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -119,6 +96,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 30,
|
||||
"end": 26,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -32,24 +32,6 @@ expression: actual
|
||||
{
|
||||
"commentStart": 38,
|
||||
"cond": {
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 51,
|
||||
"end": 57,
|
||||
"name": {
|
||||
"commentStart": 51,
|
||||
"end": 57,
|
||||
"name": "radius",
|
||||
"start": 51,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 51,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 46,
|
||||
@ -68,8 +50,24 @@ expression: actual
|
||||
"commentStart": 46,
|
||||
"end": 58,
|
||||
"start": 46,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 51,
|
||||
"end": 57,
|
||||
"name": {
|
||||
"commentStart": 51,
|
||||
"end": 57,
|
||||
"name": "radius",
|
||||
"start": 51,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 51,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
"digest": null,
|
||||
"end": 84,
|
||||
|
||||
@ -7,23 +7,23 @@ expression: actual
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 10,
|
||||
"commentStart": 4,
|
||||
"end": 14,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 1,
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"name": "x",
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 4,
|
||||
"end": 10,
|
||||
"commentStart": 8,
|
||||
"end": 14,
|
||||
"left": {
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
"raw": "3",
|
||||
"start": 4,
|
||||
"start": 8,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
},
|
||||
"operator": "==",
|
||||
"right": {
|
||||
"commentStart": 9,
|
||||
"end": 10,
|
||||
"commentStart": 13,
|
||||
"end": 14,
|
||||
"raw": "3",
|
||||
"start": 9,
|
||||
"start": 13,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -44,14 +44,14 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 4,
|
||||
"start": 8,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 10,
|
||||
"end": 14,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -59,6 +59,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 10,
|
||||
"end": 14,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -7,23 +7,23 @@ expression: actual
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 10,
|
||||
"commentStart": 4,
|
||||
"end": 14,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 1,
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"name": "x",
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 4,
|
||||
"end": 10,
|
||||
"commentStart": 8,
|
||||
"end": 14,
|
||||
"left": {
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
"raw": "3",
|
||||
"start": 4,
|
||||
"start": 8,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
},
|
||||
"operator": "!=",
|
||||
"right": {
|
||||
"commentStart": 9,
|
||||
"end": 10,
|
||||
"commentStart": 13,
|
||||
"end": 14,
|
||||
"raw": "3",
|
||||
"start": 9,
|
||||
"start": 13,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -44,14 +44,14 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 4,
|
||||
"start": 8,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 10,
|
||||
"end": 14,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -59,6 +59,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 10,
|
||||
"end": 14,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ expression: actual
|
||||
"commentStart": 14,
|
||||
"declaration": {
|
||||
"commentStart": 14,
|
||||
"end": 31,
|
||||
"end": 30,
|
||||
"id": {
|
||||
"commentStart": 14,
|
||||
"end": 17,
|
||||
@ -51,7 +51,7 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 20,
|
||||
"end": 31,
|
||||
"end": 30,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 22,
|
||||
@ -84,7 +84,7 @@ expression: actual
|
||||
},
|
||||
{
|
||||
"commentStart": 25,
|
||||
"end": 30,
|
||||
"end": 29,
|
||||
"key": {
|
||||
"commentStart": 25,
|
||||
"end": 26,
|
||||
@ -95,10 +95,10 @@ expression: actual
|
||||
"start": 25,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 29,
|
||||
"end": 30,
|
||||
"commentStart": 28,
|
||||
"end": 29,
|
||||
"raw": "4",
|
||||
"start": 29,
|
||||
"start": 28,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -115,7 +115,7 @@ expression: actual
|
||||
"start": 14,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 31,
|
||||
"end": 30,
|
||||
"kind": "const",
|
||||
"start": 14,
|
||||
"type": "VariableDeclaration",
|
||||
@ -123,6 +123,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 31,
|
||||
"end": 30,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 29,
|
||||
"end": 49,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 5,
|
||||
@ -19,25 +19,53 @@ expression: actual
|
||||
"init": {
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"name": "x",
|
||||
"start": 12,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"argument": {
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 20,
|
||||
"end": 21,
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 24,
|
||||
"end": 27,
|
||||
"name": "hyp",
|
||||
"start": 24,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 30,
|
||||
"end": 31,
|
||||
"raw": "5",
|
||||
"start": 20,
|
||||
"start": 30,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 23,
|
||||
"end": 24,
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 33,
|
||||
"end": 36,
|
||||
"name": "pot",
|
||||
"start": 33,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 39,
|
||||
"end": 40,
|
||||
"raw": "4",
|
||||
"start": 23,
|
||||
"start": 39,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -45,40 +73,52 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 13,
|
||||
"end": 19,
|
||||
"commentStart": 17,
|
||||
"end": 23,
|
||||
"name": {
|
||||
"commentStart": 13,
|
||||
"end": 19,
|
||||
"commentStart": 17,
|
||||
"end": 23,
|
||||
"name": "legLen",
|
||||
"start": 13,
|
||||
"start": 17,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 13,
|
||||
"start": 17,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 13,
|
||||
"end": 25,
|
||||
"start": 13,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"commentStart": 17,
|
||||
"end": 41,
|
||||
"start": 17,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
"commentStart": 12,
|
||||
"end": 25,
|
||||
"commentStart": 16,
|
||||
"end": 41,
|
||||
"operator": "-",
|
||||
"start": 12,
|
||||
"start": 16,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 27,
|
||||
"end": 28,
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 43,
|
||||
"end": 44,
|
||||
"name": "y",
|
||||
"start": 43,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 47,
|
||||
"end": 48,
|
||||
"raw": "5",
|
||||
"start": 27,
|
||||
"start": 47,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -86,6 +126,7 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
@ -103,15 +144,16 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 8,
|
||||
"end": 29,
|
||||
"end": 49,
|
||||
"start": 8,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 29,
|
||||
"end": 49,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -119,6 +161,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 29,
|
||||
"end": 49,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 30,
|
||||
"end": 34,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 5,
|
||||
@ -53,24 +53,22 @@ expression: actual
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 24,
|
||||
"end": 26,
|
||||
"raw": "45",
|
||||
"start": 24,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 45.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 28,
|
||||
"end": 29,
|
||||
"name": "y",
|
||||
"start": 28,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 32,
|
||||
"end": 33,
|
||||
"start": 32,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
@ -88,14 +86,26 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 17,
|
||||
"end": 30,
|
||||
"end": 34,
|
||||
"start": 17,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 24,
|
||||
"end": 26,
|
||||
"raw": "45",
|
||||
"start": 24,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 45.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"commentStart": 8,
|
||||
"end": 30,
|
||||
"end": 34,
|
||||
"start": 8,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -103,7 +113,7 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 30,
|
||||
"end": 34,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -111,6 +121,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 30,
|
||||
"end": 34,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -7,23 +7,23 @@ expression: actual
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 14,
|
||||
"commentStart": 4,
|
||||
"end": 18,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 1,
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"name": "x",
|
||||
"start": 0,
|
||||
"start": 4,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 4,
|
||||
"end": 14,
|
||||
"commentStart": 8,
|
||||
"end": 18,
|
||||
"left": {
|
||||
"commentStart": 4,
|
||||
"end": 5,
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
"raw": "1",
|
||||
"start": 4,
|
||||
"start": 8,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -33,13 +33,13 @@ expression: actual
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"commentStart": 9,
|
||||
"end": 14,
|
||||
"commentStart": 13,
|
||||
"end": 18,
|
||||
"left": {
|
||||
"commentStart": 9,
|
||||
"end": 10,
|
||||
"commentStart": 13,
|
||||
"end": 14,
|
||||
"raw": "3",
|
||||
"start": 9,
|
||||
"start": 13,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -49,10 +49,10 @@ expression: actual
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 13,
|
||||
"end": 14,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "4",
|
||||
"start": 13,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -60,18 +60,18 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 9,
|
||||
"start": 13,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 8,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 4,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 14,
|
||||
"end": 18,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -79,6 +79,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 14,
|
||||
"end": 18,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 3,
|
||||
"end": 52,
|
||||
"end": 58,
|
||||
"id": {
|
||||
"commentStart": 3,
|
||||
"end": 4,
|
||||
@ -22,65 +22,65 @@ expression: actual
|
||||
{
|
||||
"argument": {
|
||||
"abs_path": false,
|
||||
"commentStart": 24,
|
||||
"end": 26,
|
||||
"commentStart": 30,
|
||||
"end": 32,
|
||||
"name": {
|
||||
"commentStart": 24,
|
||||
"end": 26,
|
||||
"commentStart": 30,
|
||||
"end": 32,
|
||||
"name": "sg",
|
||||
"start": 24,
|
||||
"start": 30,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 24,
|
||||
"start": 30,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 17,
|
||||
"end": 26,
|
||||
"start": 17,
|
||||
"commentStart": 23,
|
||||
"end": 32,
|
||||
"start": 23,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"abs_path": false,
|
||||
"commentStart": 42,
|
||||
"end": 44,
|
||||
"commentStart": 48,
|
||||
"end": 50,
|
||||
"name": {
|
||||
"commentStart": 42,
|
||||
"end": 44,
|
||||
"commentStart": 48,
|
||||
"end": 50,
|
||||
"name": "sg",
|
||||
"start": 42,
|
||||
"start": 48,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 42,
|
||||
"start": 48,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 35,
|
||||
"end": 44,
|
||||
"start": 35,
|
||||
"commentStart": 41,
|
||||
"end": 50,
|
||||
"start": 41,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 7,
|
||||
"end": 52,
|
||||
"start": 7
|
||||
"commentStart": 13,
|
||||
"end": 58,
|
||||
"start": 13
|
||||
},
|
||||
"commentStart": 4,
|
||||
"end": 52,
|
||||
"commentStart": 7,
|
||||
"end": 58,
|
||||
"params": [],
|
||||
"start": 4,
|
||||
"start": 7,
|
||||
"type": "FunctionExpression",
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"start": 3,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 52,
|
||||
"end": 58,
|
||||
"kind": "fn",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -88,6 +88,6 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 52,
|
||||
"end": 58,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 3,
|
||||
@ -18,11 +18,11 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 8,
|
||||
"end": 13,
|
||||
"end": 12,
|
||||
"key": {
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
"start": 8,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"commentStart": 11,
|
||||
"end": 12,
|
||||
"raw": "1",
|
||||
"start": 12,
|
||||
"start": 11,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -46,22 +46,22 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 15,
|
||||
"end": 20,
|
||||
"commentStart": 14,
|
||||
"end": 18,
|
||||
"key": {
|
||||
"commentStart": 15,
|
||||
"end": 16,
|
||||
"commentStart": 14,
|
||||
"end": 15,
|
||||
"name": "b",
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 19,
|
||||
"end": 20,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "2",
|
||||
"start": 19,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -78,32 +78,32 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 27,
|
||||
"commentStart": 25,
|
||||
"declaration": {
|
||||
"commentStart": 27,
|
||||
"end": 45,
|
||||
"commentStart": 25,
|
||||
"end": 43,
|
||||
"id": {
|
||||
"commentStart": 27,
|
||||
"end": 33,
|
||||
"commentStart": 25,
|
||||
"end": 31,
|
||||
"name": "height",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 36,
|
||||
"end": 45,
|
||||
"commentStart": 34,
|
||||
"end": 43,
|
||||
"left": {
|
||||
"commentStart": 36,
|
||||
"end": 37,
|
||||
"commentStart": 34,
|
||||
"end": 35,
|
||||
"raw": "1",
|
||||
"start": 36,
|
||||
"start": 34,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -113,44 +113,44 @@ expression: actual
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 40,
|
||||
"commentStart": 38,
|
||||
"computed": false,
|
||||
"end": 45,
|
||||
"object": {
|
||||
"commentStart": 40,
|
||||
"end": 43,
|
||||
"object": {
|
||||
"commentStart": 38,
|
||||
"end": 41,
|
||||
"name": "obj",
|
||||
"start": 40,
|
||||
"start": 38,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 44,
|
||||
"end": 45,
|
||||
"commentStart": 42,
|
||||
"end": 43,
|
||||
"name": "a",
|
||||
"start": 44,
|
||||
"start": 42,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 40,
|
||||
"start": 38,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 36,
|
||||
"start": 34,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 45,
|
||||
"end": 43,
|
||||
"kind": "const",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 45,
|
||||
"end": 43,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 3,
|
||||
@ -18,11 +18,11 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 8,
|
||||
"end": 13,
|
||||
"end": 12,
|
||||
"key": {
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
"start": 8,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"commentStart": 11,
|
||||
"end": 12,
|
||||
"raw": "1",
|
||||
"start": 12,
|
||||
"start": 11,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -46,22 +46,22 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 15,
|
||||
"end": 20,
|
||||
"commentStart": 14,
|
||||
"end": 18,
|
||||
"key": {
|
||||
"commentStart": 15,
|
||||
"end": 16,
|
||||
"commentStart": 14,
|
||||
"end": 15,
|
||||
"name": "b",
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 19,
|
||||
"end": 20,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "2",
|
||||
"start": 19,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -78,32 +78,32 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 28,
|
||||
"commentStart": 26,
|
||||
"declaration": {
|
||||
"commentStart": 28,
|
||||
"end": 49,
|
||||
"commentStart": 26,
|
||||
"end": 47,
|
||||
"id": {
|
||||
"commentStart": 28,
|
||||
"end": 34,
|
||||
"commentStart": 26,
|
||||
"end": 32,
|
||||
"name": "height",
|
||||
"start": 28,
|
||||
"start": 26,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 37,
|
||||
"end": 49,
|
||||
"commentStart": 35,
|
||||
"end": 47,
|
||||
"left": {
|
||||
"commentStart": 37,
|
||||
"end": 38,
|
||||
"commentStart": 35,
|
||||
"end": 36,
|
||||
"raw": "1",
|
||||
"start": 37,
|
||||
"start": 35,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -113,45 +113,45 @@ expression: actual
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 41,
|
||||
"commentStart": 39,
|
||||
"computed": false,
|
||||
"end": 49,
|
||||
"end": 47,
|
||||
"object": {
|
||||
"commentStart": 41,
|
||||
"end": 44,
|
||||
"commentStart": 39,
|
||||
"end": 42,
|
||||
"name": "obj",
|
||||
"start": 41,
|
||||
"start": 39,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 45,
|
||||
"end": 48,
|
||||
"commentStart": 43,
|
||||
"end": 46,
|
||||
"raw": "\"a\"",
|
||||
"start": 45,
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "a"
|
||||
},
|
||||
"start": 41,
|
||||
"start": 39,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 37,
|
||||
"start": 35,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 28,
|
||||
"start": 26,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 49,
|
||||
"end": 47,
|
||||
"kind": "const",
|
||||
"start": 28,
|
||||
"start": 26,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 49,
|
||||
"end": 47,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 3,
|
||||
@ -18,11 +18,11 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 8,
|
||||
"end": 13,
|
||||
"end": 12,
|
||||
"key": {
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
"start": 8,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"commentStart": 11,
|
||||
"end": 12,
|
||||
"raw": "1",
|
||||
"start": 12,
|
||||
"start": 11,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -46,22 +46,22 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 15,
|
||||
"end": 20,
|
||||
"commentStart": 14,
|
||||
"end": 18,
|
||||
"key": {
|
||||
"commentStart": 15,
|
||||
"end": 16,
|
||||
"commentStart": 14,
|
||||
"end": 15,
|
||||
"name": "b",
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 19,
|
||||
"end": 20,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "2",
|
||||
"start": 19,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -78,58 +78,58 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 27,
|
||||
"commentStart": 25,
|
||||
"declaration": {
|
||||
"commentStart": 27,
|
||||
"end": 48,
|
||||
"commentStart": 25,
|
||||
"end": 46,
|
||||
"id": {
|
||||
"commentStart": 27,
|
||||
"end": 33,
|
||||
"commentStart": 25,
|
||||
"end": 31,
|
||||
"name": "height",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 36,
|
||||
"end": 48,
|
||||
"commentStart": 34,
|
||||
"end": 46,
|
||||
"left": {
|
||||
"commentStart": 36,
|
||||
"commentStart": 34,
|
||||
"computed": false,
|
||||
"end": 44,
|
||||
"end": 42,
|
||||
"object": {
|
||||
"commentStart": 36,
|
||||
"end": 39,
|
||||
"commentStart": 34,
|
||||
"end": 37,
|
||||
"name": "obj",
|
||||
"start": 36,
|
||||
"start": 34,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 40,
|
||||
"end": 43,
|
||||
"commentStart": 38,
|
||||
"end": 41,
|
||||
"raw": "\"a\"",
|
||||
"start": 40,
|
||||
"start": 38,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "a"
|
||||
},
|
||||
"start": 36,
|
||||
"start": 34,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 47,
|
||||
"end": 48,
|
||||
"commentStart": 45,
|
||||
"end": 46,
|
||||
"raw": "1",
|
||||
"start": 47,
|
||||
"start": 45,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -137,21 +137,21 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 36,
|
||||
"start": 34,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 48,
|
||||
"end": 46,
|
||||
"kind": "const",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 48,
|
||||
"end": 46,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 3,
|
||||
@ -18,11 +18,11 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 8,
|
||||
"end": 13,
|
||||
"end": 12,
|
||||
"key": {
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
"start": 8,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"commentStart": 11,
|
||||
"end": 12,
|
||||
"raw": "1",
|
||||
"start": 12,
|
||||
"start": 11,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -46,22 +46,22 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 15,
|
||||
"end": 20,
|
||||
"commentStart": 14,
|
||||
"end": 18,
|
||||
"key": {
|
||||
"commentStart": 15,
|
||||
"end": 16,
|
||||
"commentStart": 14,
|
||||
"end": 15,
|
||||
"name": "b",
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 19,
|
||||
"end": 20,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "2",
|
||||
"start": 19,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -78,35 +78,35 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 27,
|
||||
"commentStart": 25,
|
||||
"declaration": {
|
||||
"commentStart": 27,
|
||||
"end": 53,
|
||||
"commentStart": 25,
|
||||
"end": 51,
|
||||
"id": {
|
||||
"commentStart": 27,
|
||||
"end": 33,
|
||||
"commentStart": 25,
|
||||
"end": 31,
|
||||
"name": "height",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 36,
|
||||
"commentStart": 34,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 37,
|
||||
"end": 49,
|
||||
"commentStart": 35,
|
||||
"end": 47,
|
||||
"left": {
|
||||
"commentStart": 37,
|
||||
"end": 38,
|
||||
"commentStart": 35,
|
||||
"end": 36,
|
||||
"raw": "1",
|
||||
"start": 37,
|
||||
"start": 35,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -116,39 +116,39 @@ expression: actual
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 41,
|
||||
"commentStart": 39,
|
||||
"computed": false,
|
||||
"end": 49,
|
||||
"end": 47,
|
||||
"object": {
|
||||
"commentStart": 41,
|
||||
"end": 44,
|
||||
"commentStart": 39,
|
||||
"end": 42,
|
||||
"name": "obj",
|
||||
"start": 41,
|
||||
"start": 39,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 45,
|
||||
"end": 48,
|
||||
"commentStart": 43,
|
||||
"end": 46,
|
||||
"raw": "\"a\"",
|
||||
"start": 45,
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "a"
|
||||
},
|
||||
"start": 41,
|
||||
"start": 39,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 37,
|
||||
"start": 35,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 51,
|
||||
"end": 52,
|
||||
"commentStart": 49,
|
||||
"end": 50,
|
||||
"raw": "0",
|
||||
"start": 51,
|
||||
"start": 49,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -157,22 +157,22 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 53,
|
||||
"start": 36,
|
||||
"end": 51,
|
||||
"start": 34,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 53,
|
||||
"end": 51,
|
||||
"kind": "const",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 53,
|
||||
"end": 51,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 3,
|
||||
@ -18,11 +18,11 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 8,
|
||||
"end": 13,
|
||||
"end": 12,
|
||||
"key": {
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
"start": 8,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"commentStart": 11,
|
||||
"end": 12,
|
||||
"raw": "1",
|
||||
"start": 12,
|
||||
"start": 11,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -46,22 +46,22 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 15,
|
||||
"end": 20,
|
||||
"commentStart": 14,
|
||||
"end": 18,
|
||||
"key": {
|
||||
"commentStart": 15,
|
||||
"end": 16,
|
||||
"commentStart": 14,
|
||||
"end": 15,
|
||||
"name": "b",
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 19,
|
||||
"end": 20,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "2",
|
||||
"start": 19,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -78,61 +78,61 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 27,
|
||||
"commentStart": 25,
|
||||
"declaration": {
|
||||
"commentStart": 27,
|
||||
"end": 53,
|
||||
"commentStart": 25,
|
||||
"end": 51,
|
||||
"id": {
|
||||
"commentStart": 27,
|
||||
"end": 33,
|
||||
"commentStart": 25,
|
||||
"end": 31,
|
||||
"name": "height",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 36,
|
||||
"commentStart": 34,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 37,
|
||||
"end": 49,
|
||||
"commentStart": 35,
|
||||
"end": 47,
|
||||
"left": {
|
||||
"commentStart": 37,
|
||||
"commentStart": 35,
|
||||
"computed": false,
|
||||
"end": 45,
|
||||
"end": 43,
|
||||
"object": {
|
||||
"commentStart": 37,
|
||||
"end": 40,
|
||||
"commentStart": 35,
|
||||
"end": 38,
|
||||
"name": "obj",
|
||||
"start": 37,
|
||||
"start": 35,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 41,
|
||||
"end": 44,
|
||||
"commentStart": 39,
|
||||
"end": 42,
|
||||
"raw": "\"a\"",
|
||||
"start": 41,
|
||||
"start": 39,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "a"
|
||||
},
|
||||
"start": 37,
|
||||
"start": 35,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 48,
|
||||
"end": 49,
|
||||
"commentStart": 46,
|
||||
"end": 47,
|
||||
"raw": "1",
|
||||
"start": 48,
|
||||
"start": 46,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -140,15 +140,15 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 37,
|
||||
"start": 35,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 51,
|
||||
"end": 52,
|
||||
"commentStart": 49,
|
||||
"end": 50,
|
||||
"raw": "0",
|
||||
"start": 51,
|
||||
"start": 49,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -157,22 +157,22 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 53,
|
||||
"start": 36,
|
||||
"end": 51,
|
||||
"start": 34,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 53,
|
||||
"end": 51,
|
||||
"kind": "const",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 53,
|
||||
"end": 51,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 21,
|
||||
"end": 20,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 3,
|
||||
@ -18,19 +18,19 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"end": 21,
|
||||
"end": 20,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 7,
|
||||
"commentStart": 8,
|
||||
"end": 12,
|
||||
"key": {
|
||||
"commentStart": 7,
|
||||
"end": 8,
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
"name": "a",
|
||||
"start": 7,
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 7,
|
||||
"start": 8,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 11,
|
||||
@ -47,7 +47,7 @@ expression: actual
|
||||
},
|
||||
{
|
||||
"commentStart": 14,
|
||||
"end": 19,
|
||||
"end": 18,
|
||||
"key": {
|
||||
"commentStart": 14,
|
||||
"end": 15,
|
||||
@ -58,10 +58,10 @@ expression: actual
|
||||
"start": 14,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 18,
|
||||
"end": 19,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "2",
|
||||
"start": 18,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -78,61 +78,61 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 21,
|
||||
"end": 20,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 26,
|
||||
"commentStart": 25,
|
||||
"declaration": {
|
||||
"commentStart": 26,
|
||||
"end": 51,
|
||||
"commentStart": 25,
|
||||
"end": 50,
|
||||
"id": {
|
||||
"commentStart": 26,
|
||||
"end": 32,
|
||||
"commentStart": 25,
|
||||
"end": 31,
|
||||
"name": "height",
|
||||
"start": 26,
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 35,
|
||||
"commentStart": 34,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 36,
|
||||
"end": 47,
|
||||
"commentStart": 35,
|
||||
"end": 46,
|
||||
"left": {
|
||||
"commentStart": 36,
|
||||
"commentStart": 35,
|
||||
"computed": false,
|
||||
"end": 44,
|
||||
"end": 43,
|
||||
"object": {
|
||||
"commentStart": 36,
|
||||
"end": 39,
|
||||
"commentStart": 35,
|
||||
"end": 38,
|
||||
"name": "obj",
|
||||
"start": 36,
|
||||
"start": 35,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 40,
|
||||
"end": 43,
|
||||
"commentStart": 39,
|
||||
"end": 42,
|
||||
"raw": "\"a\"",
|
||||
"start": 40,
|
||||
"start": 39,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "a"
|
||||
},
|
||||
"start": 36,
|
||||
"start": 35,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 46,
|
||||
"end": 47,
|
||||
"commentStart": 45,
|
||||
"end": 46,
|
||||
"raw": "1",
|
||||
"start": 46,
|
||||
"start": 45,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -140,15 +140,15 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 36,
|
||||
"start": 35,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 49,
|
||||
"end": 50,
|
||||
"commentStart": 48,
|
||||
"end": 49,
|
||||
"raw": "0",
|
||||
"start": 49,
|
||||
"start": 48,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -157,22 +157,22 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 51,
|
||||
"start": 35,
|
||||
"end": 50,
|
||||
"start": 34,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 26,
|
||||
"start": 25,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 51,
|
||||
"end": 50,
|
||||
"kind": "const",
|
||||
"start": 26,
|
||||
"start": 25,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 51,
|
||||
"end": 50,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ expression: actual
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 3,
|
||||
@ -18,11 +18,11 @@ expression: actual
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 8,
|
||||
"end": 13,
|
||||
"end": 12,
|
||||
"key": {
|
||||
"commentStart": 8,
|
||||
"end": 9,
|
||||
@ -33,10 +33,10 @@ expression: actual
|
||||
"start": 8,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 12,
|
||||
"end": 13,
|
||||
"commentStart": 11,
|
||||
"end": 12,
|
||||
"raw": "1",
|
||||
"start": 12,
|
||||
"start": 11,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -46,22 +46,22 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 15,
|
||||
"end": 20,
|
||||
"commentStart": 14,
|
||||
"end": 18,
|
||||
"key": {
|
||||
"commentStart": 15,
|
||||
"end": 16,
|
||||
"commentStart": 14,
|
||||
"end": 15,
|
||||
"name": "b",
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 15,
|
||||
"start": 14,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 19,
|
||||
"end": 20,
|
||||
"commentStart": 17,
|
||||
"end": 18,
|
||||
"raw": "2",
|
||||
"start": 19,
|
||||
"start": 17,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -78,60 +78,60 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 22,
|
||||
"end": 20,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 27,
|
||||
"commentStart": 25,
|
||||
"declaration": {
|
||||
"commentStart": 27,
|
||||
"end": 44,
|
||||
"commentStart": 25,
|
||||
"end": 42,
|
||||
"id": {
|
||||
"commentStart": 27,
|
||||
"end": 33,
|
||||
"commentStart": 25,
|
||||
"end": 31,
|
||||
"name": "height",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 36,
|
||||
"commentStart": 34,
|
||||
"computed": false,
|
||||
"end": 44,
|
||||
"end": 42,
|
||||
"object": {
|
||||
"commentStart": 36,
|
||||
"end": 39,
|
||||
"commentStart": 34,
|
||||
"end": 37,
|
||||
"name": "obj",
|
||||
"start": 36,
|
||||
"start": 34,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 40,
|
||||
"end": 43,
|
||||
"commentStart": 38,
|
||||
"end": 41,
|
||||
"raw": "\"a\"",
|
||||
"start": 40,
|
||||
"start": 38,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "a"
|
||||
},
|
||||
"start": 36,
|
||||
"start": 34,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 44,
|
||||
"end": 42,
|
||||
"kind": "const",
|
||||
"start": 27,
|
||||
"start": 25,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 44,
|
||||
"end": 42,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": {
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": "XY",
|
||||
"start": 19,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 19,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 5,
|
||||
@ -55,43 +37,62 @@ expression: actual
|
||||
"commentStart": 5,
|
||||
"end": 22,
|
||||
"start": 5,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": {
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": "XY",
|
||||
"start": 19,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 19,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 39,
|
||||
"end": 41,
|
||||
"name": "at",
|
||||
"start": 39,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"abs_path": false,
|
||||
"commentStart": 41,
|
||||
"end": 44,
|
||||
"commentStart": 44,
|
||||
"end": 47,
|
||||
"name": {
|
||||
"commentStart": 41,
|
||||
"end": 44,
|
||||
"commentStart": 44,
|
||||
"end": 47,
|
||||
"name": "pos",
|
||||
"start": 41,
|
||||
"start": 44,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 41,
|
||||
"start": 44,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"commentStart": 46,
|
||||
"end": 47,
|
||||
"start": 46,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 26,
|
||||
"end": 40,
|
||||
"end": 38,
|
||||
"name": {
|
||||
"commentStart": 26,
|
||||
"end": 40,
|
||||
"name": "startProfileAt",
|
||||
"end": 38,
|
||||
"name": "startProfile",
|
||||
"start": 26,
|
||||
"type": "Identifier"
|
||||
},
|
||||
@ -102,8 +103,9 @@ expression: actual
|
||||
"commentStart": 26,
|
||||
"end": 48,
|
||||
"start": 26,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 5,
|
||||
|
||||
@ -19,24 +19,6 @@ expression: actual
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": {
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": "XY",
|
||||
"start": 19,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 19,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 5,
|
||||
@ -55,36 +37,62 @@ expression: actual
|
||||
"commentStart": 5,
|
||||
"end": 22,
|
||||
"start": 5,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": {
|
||||
"commentStart": 19,
|
||||
"end": 21,
|
||||
"name": "XY",
|
||||
"start": 19,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 19,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 43,
|
||||
"end": 45,
|
||||
"name": "at",
|
||||
"start": 43,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"abs_path": false,
|
||||
"commentStart": 45,
|
||||
"end": 48,
|
||||
"commentStart": 48,
|
||||
"end": 51,
|
||||
"name": {
|
||||
"commentStart": 45,
|
||||
"end": 48,
|
||||
"commentStart": 48,
|
||||
"end": 51,
|
||||
"name": "pos",
|
||||
"start": 45,
|
||||
"start": 48,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 45,
|
||||
"start": 48,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 30,
|
||||
"end": 44,
|
||||
"end": 42,
|
||||
"name": {
|
||||
"commentStart": 30,
|
||||
"end": 44,
|
||||
"name": "startProfileAt",
|
||||
"end": 42,
|
||||
"name": "startProfile",
|
||||
"start": 30,
|
||||
"type": "Identifier"
|
||||
},
|
||||
@ -93,21 +101,41 @@ expression: actual
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 30,
|
||||
"end": 49,
|
||||
"end": 52,
|
||||
"start": 30,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 58,
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 56,
|
||||
"end": 60,
|
||||
"name": {
|
||||
"commentStart": 56,
|
||||
"end": 60,
|
||||
"name": "line",
|
||||
"start": 56,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 56,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 56,
|
||||
"end": 73,
|
||||
"start": 56,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 61,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 59,
|
||||
"end": 60,
|
||||
"commentStart": 62,
|
||||
"end": 63,
|
||||
"raw": "0",
|
||||
"start": 59,
|
||||
"start": 62,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -118,61 +146,33 @@ expression: actual
|
||||
{
|
||||
"argument": {
|
||||
"abs_path": false,
|
||||
"commentStart": 63,
|
||||
"end": 68,
|
||||
"commentStart": 66,
|
||||
"end": 71,
|
||||
"name": {
|
||||
"commentStart": 63,
|
||||
"end": 68,
|
||||
"commentStart": 66,
|
||||
"end": 71,
|
||||
"name": "scale",
|
||||
"start": 63,
|
||||
"start": 66,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 63,
|
||||
"start": 66,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 62,
|
||||
"end": 68,
|
||||
"commentStart": 65,
|
||||
"end": 71,
|
||||
"operator": "-",
|
||||
"start": 62,
|
||||
"start": 65,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 69,
|
||||
"start": 58,
|
||||
"end": 72,
|
||||
"start": 61,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 71,
|
||||
"end": 72,
|
||||
"start": 71,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 53,
|
||||
"end": 57,
|
||||
"name": {
|
||||
"commentStart": 53,
|
||||
"end": 57,
|
||||
"name": "line",
|
||||
"start": 53,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 53,
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 53,
|
||||
"end": 73,
|
||||
"start": 53,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"commentStart": 5,
|
||||
|
||||
Reference in New Issue
Block a user