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

Side by Side Diff: lib/message_generator.dart

Issue 128003003: Fix issue with importing packages where the package name included a dot (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Update pubspec version Created 6 years, 11 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
« no previous file with comments | « lib/file_generator.dart ('k') | lib/protobuf_field.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of protoc; 5 part of protoc;
6 6
7 const String SP = ' '; 7 const String SP = ' ';
8 8
9 class MessageGenerator implements ProtobufContainer { 9 class MessageGenerator extends ProtobufContainer {
10 // List of names which cannot be used in a subclass of GeneratedMessage. 10 // List of names which cannot be used in a subclass of GeneratedMessage.
11 static final List<String> reservedNames = 11 static final List<String> reservedNames =
12 ['hashCode', 'noSuchMethod','runtimeType', 'toString', 12 ['hashCode', 'noSuchMethod','runtimeType', 'toString',
13 'fromBuffer', 'fromJson', 'hasRequiredFields', 'isInitialized', 13 'fromBuffer', 'fromJson', 'hasRequiredFields', 'isInitialized',
14 'clear', 'getTagNumber', 'check', 14 'clear', 'getTagNumber', 'check',
15 'writeToBuffer', 'writeToCodedBufferWriter', 15 'writeToBuffer', 'writeToCodedBufferWriter',
16 'mergeFromCodedBufferReader', 'mergeFromBuffer', 16 'mergeFromCodedBufferReader', 'mergeFromBuffer',
17 'writeToJson', 'mergeFromJson', 17 'writeToJson', 'mergeFromJson',
18 'addExtension', 'getExtension', 'setExtension', 18 'addExtension', 'getExtension', 'setExtension',
19 'hasExtension', 'clearExtension', 19 'hasExtension', 'clearExtension',
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 '(${fieldTypeString} v)${SP}' 240 '(${fieldTypeString} v)${SP}'
241 '{${SP}setField(${field.number},${SP}v);${SP}}'); 241 '{${SP}setField(${field.number},${SP}v);${SP}}');
242 out.println('bool $hasIdentifier()${SP}=>' 242 out.println('bool $hasIdentifier()${SP}=>'
243 '${SP}hasField(${field.number});'); 243 '${SP}hasField(${field.number});');
244 out.println('void $clearIdentifier()${SP}=>' 244 out.println('void $clearIdentifier()${SP}=>'
245 '${SP}clearField(${field.number});'); 245 '${SP}clearField(${field.number});');
246 } 246 }
247 } 247 }
248 } 248 }
249 } 249 }
OLDNEW
« no previous file with comments | « lib/file_generator.dart ('k') | lib/protobuf_field.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698