Files
JosephandGitHub ff767a7237 docs: typos and errors outside docs, error, examples folders (#94472)
Net pass over markdown files outside docs, examples and errors.
2026-06-05 13:15:42 +02:00
..
…

swc-ast-explorer

A small binary to print out SWC Abstract Syntax Trees.

echo "console.log('hello')" | cargo run -p swc-ast-explorer
Script(
  Script {
    body: [
      Expr(
        ExprStmt {
          expr: Call(
            CallExpr {
              callee: Expr(
                Member(
                  MemberExpr {
                    obj: Ident(
                      Ident {
                        sym: Atom('console' type=inline),
                        optional: false,
                      },
                    ),
                    prop: Ident(
                      Ident {
                        sym: Atom('log' type=inline),
                        optional: false,
                      },
                    ),
                  },
                ),
              ),
              args: [
                ExprOrSpread {
                  spread: None,
                  expr: Lit(
                    Str(
                      Str {
                        value: Atom('hello' type=inline),
                        raw: Some(
                          "'hello'",
                        ),
                      },
                    ),
                  ),
                },
              ],
              type_args: None,
            },
          ),
        },
      ),
    ],
    shebang: None,
  },
)