-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ashar/config
- Loading branch information
Showing
21 changed files
with
473 additions
and
40 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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,31 @@ | ||
syntax = "proto3"; | ||
|
||
package com.parser; | ||
|
||
// A Book is book | ||
message Book { | ||
|
||
// This is represents author | ||
// A author is a someone who writes books | ||
// | ||
// Author has a name and a country where they were born | ||
message Author { | ||
string name = 1; | ||
string country = 2; | ||
}; | ||
Author author = 1; | ||
int price_usd = 2; | ||
} | ||
|
||
message BookShelf {} | ||
|
||
message Library { | ||
repeated Book books = 1; | ||
Book.Author collection = 2; | ||
BookShelf shelf = 3; | ||
} | ||
|
||
service Myservice { | ||
rpc GetBook(Empty) returns (Book); | ||
rpc GetAuthor(Empty) returns (Book.Author) | ||
} |
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
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
36 changes: 36 additions & 0 deletions
36
src/parser/snapshots/protols__parser__rename__test__reference-2.snap
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,36 @@ | ||
--- | ||
source: src/parser/rename.rs | ||
expression: reference_fn(&pos_author) | ||
--- | ||
- uri: "file://foo/bar.proto" | ||
range: | ||
start: | ||
line: 23 | ||
character: 2 | ||
end: | ||
line: 23 | ||
character: 13 | ||
- uri: "file://foo/bar.proto" | ||
range: | ||
start: | ||
line: 29 | ||
character: 32 | ||
end: | ||
line: 29 | ||
character: 43 | ||
- uri: "file://foo/bar.proto" | ||
range: | ||
start: | ||
line: 11 | ||
character: 10 | ||
end: | ||
line: 11 | ||
character: 16 | ||
- uri: "file://foo/bar.proto" | ||
range: | ||
start: | ||
line: 15 | ||
character: 2 | ||
end: | ||
line: 15 | ||
character: 8 |
5 changes: 5 additions & 0 deletions
5
src/parser/snapshots/protols__parser__rename__test__reference-3.snap
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,5 @@ | ||
--- | ||
source: src/parser/rename.rs | ||
expression: reference_fn(&pos_non_ref) | ||
--- | ||
[] |
28 changes: 28 additions & 0 deletions
28
src/parser/snapshots/protols__parser__rename__test__reference.snap
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,28 @@ | ||
--- | ||
source: src/parser/rename.rs | ||
expression: reference_fn(&pos_book) | ||
--- | ||
- uri: "file://foo/bar.proto" | ||
range: | ||
start: | ||
line: 22 | ||
character: 11 | ||
end: | ||
line: 22 | ||
character: 15 | ||
- uri: "file://foo/bar.proto" | ||
range: | ||
start: | ||
line: 28 | ||
character: 30 | ||
end: | ||
line: 28 | ||
character: 34 | ||
- uri: "file://foo/bar.proto" | ||
range: | ||
start: | ||
line: 5 | ||
character: 8 | ||
end: | ||
line: 5 | ||
character: 12 |
Oops, something went wrong.