Crate oxc_ast

Source
Expand description

§Oxc AST (Abstract Syntax Tree) Nodes

Supports JavaScript, TypeScript and JSX.

§Types

AST types are similar to estree and typescript-eslint’s definition, with a few notable exceptions:

Field order of types follows “Evaluation order” defined by ECMAScript spec. For TypeScript types, we follow how field order is defined in tsc.

Oxc’s visitors (Visit, VisitMut, Traverse) visit AST node fields in same order as they are defined in the types here.

§Parsing

You can obtain an AST by parsing source code with a Parser from oxc_parser.

§Cargo Features

  • "serde" enables support for serde serialization

Re-exports§

Modules§

Macros§

Structs§

  • AST builder for creating AST nodes
  • A big unsigned integer type.
  • A comment in source code.
  • Double-ended iterator over a range of comments, by starting position.
  • Type that can be used in any AST builder method call which requires an IntoIn<'a, Anything<'a>>. Pass NONE instead of None::<Anything<'a>>.

Enums§

Functions§