Skip to content

Commit

Permalink
Update plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Nov 22, 2023
1 parent 514538f commit 380ea65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protoc_plugin/lib/src/base_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class BaseType {
: prefixed;

String getRepeatedDartType(FileGenerator fileGen) =>
'$coreImportPrefix.List<${getDartType(fileGen)}>';
'$protobufImportPrefix.PbList<${getDartType(fileGen)}>';

String getRepeatedDartTypeIterable(FileGenerator fileGen) =>
'$coreImportPrefix.Iterable<${getDartType(fileGen)}>';
Expand Down
2 changes: 1 addition & 1 deletion protoc_plugin/lib/src/protobuf_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ProtobufField {
final d = baseType.generator as MessageGenerator;
final keyType = d._fieldList[0].baseType.getDartType(parent.fileGen!);
final valueType = d._fieldList[1].baseType.getDartType(parent.fileGen!);
return '$coreImportPrefix.Map<$keyType, $valueType>';
return '$protobufImportPrefix.PbMap<$keyType, $valueType>';
}
if (isRepeated) return baseType.getRepeatedDartType(parent.fileGen!);
return baseType.getDartType(parent.fileGen!);
Expand Down

0 comments on commit 380ea65

Please sign in to comment.