fix(js_interop_gen): resolve potential Null Pointer Exception and remove redundant comment

Address second round of pull request review comments:
- Add a robust early null check on symbol inside getTypeFromDeclaration to prevent runtime Null Check Operator errors when type checker symbol lookups return null.
- Utilize static variable declaration and type promotion to completely eliminate unsafe force-null assertions (!) on the resolved symbol.
- Clean up a duplicate // get a name comment on consecutive lines inside transformer.dart.
2 files changed
tree: 1b1d370e3dde76242a33ab70c9710463a332c2cd
  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