forked from emicklei/proto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assigning comment to ast nodes (visitee). Issue emicklei#5
- Loading branch information
Ernest Micklei
authored and
Ernest Micklei
committed
Apr 12, 2017
1 parent
7833ed3
commit 8d1c32d
Showing
34 changed files
with
832 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
begin | ||
*/ | ||
|
||
// comment 1 | ||
// comment 2 | ||
syntax = "proto"; // inline 1 | ||
|
||
// comment 3 | ||
// comment 4 | ||
package test; // inline 2 | ||
|
||
// comment 5 | ||
// comment 6 | ||
message Test { | ||
// comment 7 | ||
// comment 8 | ||
int64 i = 1; // inline 3 | ||
/* | ||
cstyle | ||
*/ | ||
} | ||
|
||
// comment 9 | ||
enum Codes { | ||
// comment 10 | ||
Unknown = 0; // inline 4 | ||
} | ||
|
||
// comment 11 | ||
service API { | ||
// comment 12 | ||
rpc doit (In) returns (Out); // inline 5 | ||
} | ||
|
||
// comment 13 | ||
import "some.proto"; // inline 6 | ||
|
||
// comment 14 | ||
option (test.option) = 42; // inline 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.