Buckets:
Quantumbraid/trainingdata / ui /node_modules /sucrase /dist /esm /transformers /OptionalCatchBindingTransformer.js
| 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; | |
| } | |
| } | |
Xet Storage Details
- Size:
- 511 Bytes
- Xet hash:
- c9bc88c81c66771e7ab646444f65e97be7e367b00db87ef5a7ea0128ba3bb595
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.