5 Struct JS_STATE
gullradriel edited this page 2026-10-09 00:55:18 +02:00

JS_STATE

JS emitter state threaded through the helpers.

Public Attributes

Name
int pending_space
1 when collapsed whitespace separates the previous and next token
PRETTY_OUT o
output buffer
char last_sig
last significant code character emitted (0 = none yet)
int kw_regex
1 when the last token was a keyword that can precede a regex literal
int indent
current indentation depth
int at_line_start
1 when nothing has been emitted on the current line yet

Public Attributes Documentation

variable pending_space

int pending_space;

1 when collapsed whitespace separates the previous and next token

variable o

PRETTY_OUT o;

output buffer

variable last_sig

char last_sig;

last significant code character emitted (0 = none yet)

variable kw_regex

int kw_regex;

1 when the last token was a keyword that can precede a regex literal

variable indent

int indent;

current indentation depth

variable at_line_start

int at_line_start;

1 when nothing has been emitted on the current line yet