OLD | NEW |
(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 } |
OLD | NEW |