OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * An object representing a protobuf message field. |
| 7 */ |
| 8 class FieldInfo { |
| 9 final String name; |
| 10 final int tagNumber; |
| 11 final int type; |
| 12 final MakeDefaultFunc makeDefault; |
| 13 final CreateBuilderFunc subBuilder; |
| 14 final ValueOfFunc valueOf; |
| 15 |
| 16 FieldInfo(String this.name, int this.tagNumber, int type, |
| 17 [MakeDefaultFunc makeDefault, CreateBuilderFunc this.subBuilder = null, |
| 18 ValueOfFunc this.valueOf = null]) |
| 19 : this.type = type, this.makeDefault = |
| 20 makeDefault == null ? Builder._defaultForType(type) : makeDefault; |
| 21 |
| 22 String toString() => name; |
| 23 } |
OLD | NEW |