2022-03-30 09:07:40 +03:00
|
|
|
|
|
|
|
x Module
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | ,-> function foo(a, b = c) {
|
|
|
|
2 | |
|
|
|
|
3 | `-> }
|
|
|
|
`----
|
|
|
|
|
|
|
|
x ModuleItem
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | ,-> function foo(a, b = c) {
|
|
|
|
2 | |
|
|
|
|
3 | `-> }
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Stmt
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | ,-> function foo(a, b = c) {
|
|
|
|
2 | |
|
|
|
|
3 | `-> }
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Decl
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | ,-> function foo(a, b = c) {
|
|
|
|
2 | |
|
|
|
|
3 | `-> }
|
|
|
|
`----
|
|
|
|
|
|
|
|
x FnDecl
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | ,-> function foo(a, b = c) {
|
|
|
|
2 | |
|
|
|
|
3 | `-> }
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Ident
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^^^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Function
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | ,-> function foo(a, b = c) {
|
|
|
|
2 | |
|
|
|
|
3 | `-> }
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Param
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Pat
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Ident
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Param
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^^^^^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Pat
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^^^^^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x AssignPat
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^^^^^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Pat
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Ident
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Expr
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x Ident
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | function foo(a, b = c) {
|
|
|
|
: ^
|
|
|
|
`----
|
|
|
|
|
|
|
|
x BlockStmt
|
|
|
|
,-[$DIR/tests/span/js/decl/fn.js:1:1]
|
|
|
|
1 | ,-> function foo(a, b = c) {
|
|
|
|
2 | |
|
|
|
|
3 | `-> }
|
|
|
|
`----
|