styles-update

This commit is contained in:
Rogelio
2025-10-23 05:59:44 +00:00
parent b60b35cad4
commit 127413b971
1685 changed files with 272410 additions and 5731 deletions

View File

@@ -0,0 +1,19 @@
import {TokenType as tt} from "../parser/tokenizer/types";
import Transformer from "./Transformer";
export default class OptionalCatchBindingTransformer extends Transformer {
constructor( tokens, nameManager) {
super();this.tokens = tokens;this.nameManager = nameManager;;
}
process() {
if (this.tokens.matches2(tt._catch, tt.braceL)) {
this.tokens.copyToken();
this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`);
return true;
}
return false;
}
}