Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: lib/protobuf/runtime/FieldInfo.dart

Issue 10595002: Protocol Buffer runtime library and 'protoc' plugin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Work around http://code.google.com/p/dart/issues/detail?id=3806 Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/protobuf/runtime/ExtensionRegistry.dart ('k') | lib/protobuf/runtime/GeneratedMessage.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « lib/protobuf/runtime/ExtensionRegistry.dart ('k') | lib/protobuf/runtime/GeneratedMessage.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698