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

Side by Side Diff: test/protos/dart_name.proto

Issue 2043913005: Change how to set the Dart name of a field (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: better error checking, clean up pubspec Created 4 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
OLDNEW
(Empty)
1 // Copyright (c) 2016, 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 syntax = "proto2";
6
7 import "dart_options.proto";
8
9 package dart_name;
10
11 message DartName {
12 optional string field = 1 [
13 (dart_options.dart_name) = "renamedField"
14 ];
15 }
16
17 message SwapNames {
18 optional string first = 1 [
19 (dart_options.dart_name) = "second"
20 ];
21 optional string second = 2 [
22 (dart_options.dart_name) = "first"
23 ];
24 }
25
26 message TakeExistingName {
27 optional string first = 1;
28 optional string second = 2 [
29 (dart_options.dart_name) = "first"
30 ];
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698