commit | 0895119f1dfb10c25c1fd438f6990094d3a7c35d | [log] [tgz] |
---|---|---|
author | Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> | Thu Mar 14 15:35:23 2024 -0400 |
committer | GitHub <noreply@github.com> | Thu Mar 14 19:35:23 2024 +0000 |
tree | 2c3a95cd883d510c0140dc3a766d72133c0429a9 | |
parent | 92a8b7a0b9356452890b15e611df277915027d08 [diff] |
[pigeon] Fixes double prefixes added to enum names for Objc HostApis and FlutterApis (#6263) In some areas of the Objc generator, the the name created from [_objcTypeForDartType](https://github.com/flutter/packages/blob/main/packages/pigeon/lib/objc_generator.dart#L1353) is being passed to [_enumName](https://github.com/flutter/packages/blob/main/packages/pigeon/lib/objc_generator.dart#L1196) and both of these methods add a prefix to enums. The locations are when they are used in `HostApi` or `FlutterApi` methods, but the name of the generated enum would be correct. e.g. `FLTEnumName` vs `FLTFLTEnumName`. This fixes the locations where this is happening by passing the AST name to `_enumName` instead.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: