Skip to content

Commit

Permalink
Use public field
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 7, 2024
1 parent 1f310fb commit f348b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-parser/src/tokenizer/state.ts
Expand Up @@ -31,7 +31,7 @@ export const enum LoopLabelKind {
declare const bit: import("../../../../scripts/babel-plugin-bit-decorator/types.d.ts").BitDecorator<State>;

export default class State {
@bit.storage #flags: number;
@bit.storage flags: number;

@bit accessor strict = false;

Expand Down Expand Up @@ -165,7 +165,7 @@ export default class State {

clone(): State {
const state = new State();
state.#flags = this.#flags;
state.flags = this.flags;
state.curLine = this.curLine;
state.lineStart = this.lineStart;
state.startLoc = this.startLoc;
Expand Down

0 comments on commit f348b40

Please sign in to comment.