Skip to main content

Module parse

Module parse 

Source
Expand description

Parser orchestration: parse .d.ts files into IR.

Modules§

classify
Interface classification: determine if an interface is class-like or a dictionary.
docs
Extract JSDoc comments from the oxc comment list.
first_pass
Two-phase first pass over the oxc AST to build the IR.
members
Convert oxc class/interface member AST nodes to our IR Member.
merge
Detection and execution of the declare var + interface merge pattern.
resolve
Module specifier resolution using oxc_resolver.
scope
TypeScript type scope tracking with arena-based ownership.
types
Convert oxc TypeScript type AST nodes to our IR TypeRef.

Functions§

parse_dts_files
Parse one or more .d.ts files and produce a Module + GlobalContext.
parse_single_source
Parse a single .d.ts source string into a Module + GlobalContext.