-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue with the name resolution changes in the previous release (…
…#127) * Fixed an issue with the name resolution changes in the previous release, causing some valid files to be rejected
- Loading branch information
1 parent
4c8c56b
commit f90733b
Showing
14 changed files
with
209 additions
and
43 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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#![cfg(test)] | ||
|
||
use std::{ | ||
collections::{BTreeMap, HashMap}, | ||
fmt::Debug, | ||
|
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
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,34 @@ | ||
file: | ||
- name: root.proto | ||
messageType: | ||
- name: Parent | ||
field: | ||
- name: ChildMessage | ||
number: 1 | ||
label: LABEL_OPTIONAL | ||
type: TYPE_MESSAGE | ||
typeName: ChildMessage | ||
jsonName: ChildMessage | ||
- name: ChildEnum | ||
number: 2 | ||
label: LABEL_OPTIONAL | ||
type: TYPE_ENUM | ||
typeName: ChildEnum | ||
jsonName: ChildEnum | ||
- name: ChildMessage | ||
field: | ||
- name: field | ||
number: 1 | ||
label: LABEL_OPTIONAL | ||
type: TYPE_STRING | ||
jsonName: field | ||
enumType: | ||
- name: ChildEnum | ||
value: | ||
- name: UNKNOWN | ||
number: 0 | ||
- name: A | ||
number: 1 | ||
- name: B | ||
number: 2 | ||
syntax: proto3 |
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,20 @@ | ||
file: | ||
- name: dep.proto | ||
package: foo | ||
messageType: | ||
- name: Foo | ||
syntax: proto3 | ||
- name: root.proto | ||
package: sample | ||
dependency: | ||
- dep.proto | ||
messageType: | ||
- name: Sample | ||
field: | ||
- name: foo | ||
number: 2 | ||
label: LABEL_OPTIONAL | ||
type: TYPE_MESSAGE | ||
typeName: foo.Foo | ||
jsonName: foo | ||
syntax: proto3 |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
--- | ||
source: prost-reflect/tests/main.rs | ||
assertion_line: 79 | ||
expression: actual | ||
--- | ||
causes: [] | ||
help: "'foo.FooBar' is is resolved to 'com.foo.FooBar', which is not defined. The innermost scope is searched first in name resolution. Consider using a leading '.'(i.e., '.foo.FooBar') to start from the outermost scope." | ||
help: "The innermost scope is searched first in name resolution. Consider using a leading '.' (i.e., '.foo.FooBar') to start from the outermost scope." | ||
labels: [] | ||
message: "name 'foo.FooBar' is shadowed" | ||
message: "'foo.FooBar' resolves to 'com.foo.FooBar', which is not defined" | ||
related: [] | ||
severity: error |
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,38 @@ | ||
--- | ||
source: prost-reflect/tests/main.rs | ||
expression: actual | ||
--- | ||
file: | ||
- enumType: | ||
- name: ChildEnum | ||
value: | ||
- name: UNKNOWN | ||
number: 0 | ||
- name: A | ||
number: 1 | ||
- name: B | ||
number: 2 | ||
messageType: | ||
- field: | ||
- jsonName: ChildMessage | ||
label: LABEL_OPTIONAL | ||
name: ChildMessage | ||
number: 1 | ||
type: TYPE_MESSAGE | ||
typeName: ".ChildMessage" | ||
- jsonName: ChildEnum | ||
label: LABEL_OPTIONAL | ||
name: ChildEnum | ||
number: 2 | ||
type: TYPE_ENUM | ||
typeName: ".ChildEnum" | ||
name: Parent | ||
- field: | ||
- jsonName: field | ||
label: LABEL_OPTIONAL | ||
name: field | ||
number: 1 | ||
type: TYPE_STRING | ||
name: ChildMessage | ||
name: root.proto | ||
syntax: proto3 |
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,24 @@ | ||
--- | ||
source: prost-reflect/tests/main.rs | ||
expression: actual | ||
--- | ||
file: | ||
- messageType: | ||
- name: Foo | ||
name: dep.proto | ||
package: foo | ||
syntax: proto3 | ||
- dependency: | ||
- dep.proto | ||
messageType: | ||
- field: | ||
- jsonName: foo | ||
label: LABEL_OPTIONAL | ||
name: foo | ||
number: 2 | ||
type: TYPE_MESSAGE | ||
typeName: ".foo.Foo" | ||
name: Sample | ||
name: root.proto | ||
package: sample | ||
syntax: proto3 |