| Index: test/protos/dart_name.proto
|
| diff --git a/test/protos/dart_name.proto b/test/protos/dart_name.proto
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..33b157b2ae77a50438b687e15faddd565d218faa
|
| --- /dev/null
|
| +++ b/test/protos/dart_name.proto
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +syntax = "proto2";
|
| +
|
| +import "dart_options.proto";
|
| +
|
| +package dart_name;
|
| +
|
| +message DartName {
|
| + optional string field = 1 [
|
| + (dart_options.dart_name) = "renamedField"
|
| + ];
|
| +}
|
| +
|
| +message SwapNames {
|
| + optional string first = 1 [
|
| + (dart_options.dart_name) = "second"
|
| + ];
|
| + optional string second = 2 [
|
| + (dart_options.dart_name) = "first"
|
| + ];
|
| +}
|
| +
|
| +message TakeExistingName {
|
| + optional string first = 1;
|
| + optional string second = 2 [
|
| + (dart_options.dart_name) = "first"
|
| + ];
|
| +}
|
|
|