| 1 |
// Copyright 2009 Google Inc. All rights reserved. |
| 2 |
// |
| 3 |
// Protocol Buffer definitions of the various source map structures. |
| 4 |
// |
| 5 |
// Author: [email protected] (Joseph Schorr) |
| 6 |
|
| 7 |
syntax = "proto2"; |
| 8 |
|
| 9 |
package sourcemap; |
| 10 |
|
| 11 |
option java_package = "com.google.debugging.sourcemap.proto"; |
| 12 |
//option java_api_version = 2; |
| 13 |
|
| 14 |
// Maps a position on a given line to the mapping describing |
| 15 |
// the original code. |
| 16 |
message LineMapping { |
| 17 |
// The line number of the generated code. |
| 18 |
optional int32 line_number = 1; |
| 19 |
|
| 20 |
// The column position on the line. |
| 21 |
optional int32 column_position = 2; |
| 22 |
|
| 23 |
// The original mapping for this line mapping. |
| 24 |
optional OriginalMapping original_mapping = 3; |
| 25 |
} |
| 26 |
|
| 27 |
message OriginalMapping { |
| 28 |
// The original source file. |
| 29 |
optional string original_file = 1; |
| 30 |
|
| 31 |
// The line in the original file. |
| 32 |
optional int32 line_number = 2; |
| 33 |
|
| 34 |
// The column number on the line. |
| 35 |
optional int32 column_position = 3; |
| 36 |
|
| 37 |
// The original name of the identifier. |
| 38 |
optional string identifier = 4; |
| 39 |
} |