Expand description
Port of doParse() / doParseSync() of src/parser/parse.ts.
One async fn serves both, with every feature: do_parse_sync() runs it to completion (a host that returns its
values synchronously resolves the @import rules, the css modules, …). The restrictions of the typescript
doParseSync() (no import resolution, errors instead of loading css modules, generateSyncScopedName()) are kept by
the javascript bindings only, with ParserOptions::sync_api_compat.
Structs§
- Parse
Result ParseResult- StrMap
- ordered string map (
Record<string, string>)
Functions§
- do_
parse - parse css (
doParse()).arena: the arena of the parent parse (nested parses share it) - do_
parse_ sync - parse css synchronously:
do_parse()run to completion. every feature is available; a host callback that returns a pending promise is an error - generate_
scoped_ name generateScopedName()(async: the sha hashes are allowed) andgenerateSyncScopedName()
Type Aliases§
- Parse
Future - boxed future (recursive parses)