refactor(js_interop_gen): extract pure utilities and data classes (#545)

Cleans up transformer.dart by moving isolated logic and pure utility
functions that do not rely on the core transformer state.

- Extracted `ExportReference` data class into a dedicated `export_reference.dart` file.
- Extracted context-independent helper functions (`parseModifiers`, `parseQualifiedNameParts`, `parseQualifiedNameFromTSQualifiedName`, `parseQualifiedName`, and `toCamelCase`) into a new `utils.dart` file.
- Inlined the short `parseNumericLiteral` and `parseStringLiteral` helpers directly at their call sites in the `Transformer` class.
- Updated imports, made the extracted utility functions public, and cleaned up unused imports.

No functional changes: All tests pass, and package:web code generation yields a zero diff.
4 files changed
tree: 292f6766f45b5e6d8ab341685d74dc8ae084afdd
  1. .github/
  2. js_interop/
  3. js_interop_gen/
  4. third_party/
  5. web/
  6. web_generator/
  7. .gitignore
  8. LICENSE
  9. README.md
README.md
PackageDescriptionVersionCI
webLightweight browser API bindings built around JS interop.pub packagepackage:web
js_interopUtility functions and types for dart:js_interop and dart:js_interop_unsafe.pub packagepackage:js_interop
js_interop_genTools to generate Dart interfaces from TypeScript declaration files and Web IDL definitions.N/Apackage:js_interop_gen
web_generatorInternal tooling to generate the web package bindings.N/Apackage:web_generator