We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test to reproduce:
// assume Help is a message such as: // // message HelpMessage { // string string_field = 1; // } func TestNonPrimitiveOptionComment(t *testing.T) { proto := ` // comment option Help = { string_field: "value" }; // inline` p := newParserOn(proto) pr, err := p.Parse() if err != nil { t.Fatal(err) } o := pr.Elements[0].(*Option) if got, want := o.Comment != nil, true; got != want { t.Fatalf("got [%v] want [%v]", got, want) } if got, want := o.Comment.Lines[0], " comment"; got != want { t.Fatalf("got [%v] want [%v]", got, want) } if got, want := o.InlineComment != nil, true; got != want { t.Fatalf("got [%v] want [%v]", got, want) } if got, want := o.InlineComment.Lines[0], " inline"; got != want { t.Fatalf("got [%v] want [%v]", got, want) } }
The text was updated successfully, but these errors were encountered:
fix issue #42 : inline comment on options + RPC.Options -> RPC.Elements
34f7986
2fa54d3
fix issue #42 restoring deprecated RPC.Options
b22518e
No branches or pull requests
Test to reproduce:
The text was updated successfully, but these errors were encountered: