Skip to content

Commit

Permalink
Make the FieldInfo.isDummy getter private (google#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdm authored Aug 13, 2019
1 parent 4fca486 commit 1d7b49a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protobuf/lib/src/protobuf/builder_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class BuilderInfo {
// Fields with tag number 0 are considered dummy fields added to avoid
// index calculations add up. They should not be reflected in the following
// maps.
if (!fi.isDummy) {
if (!fi._isDummy) {
fieldInfo[fi.tagNumber] = fi;
byTagAsString["${fi.tagNumber}"] = fi;
byName[fi.name] = fi;
Expand Down
2 changes: 1 addition & 1 deletion protobuf/lib/src/protobuf/field_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class FieldInfo<T> {

/// Returns `true` if this represents a dummy field standing in for a field
/// that has been removed by a program transformation.
bool get isDummy => tagNumber == 0;
bool get _isDummy => tagNumber == 0;

bool get isRequired => _isRequired(type);
bool get isRepeated => _isRepeated(type);
Expand Down

0 comments on commit 1d7b49a

Please sign in to comment.