Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Unified Diff: mojom/generators/go/translator/mojom_file.go

Issue 2077113002: Handle interfaces with a ServiceName in the go bindings generator. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix names issue. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojom/generators/go/templates/templates.go ('k') | mojom/generators/go/translator/names.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/generators/go/translator/mojom_file.go
diff --git a/mojom/generators/go/translator/mojom_file.go b/mojom/generators/go/translator/mojom_file.go
index efc05faae72b849d0cb2a190c15a86d5be3e9964..2ba381cee2f8042daae8e5cdc071608bccfd65bf 100644
--- a/mojom/generators/go/translator/mojom_file.go
+++ b/mojom/generators/go/translator/mojom_file.go
@@ -12,6 +12,7 @@ type TmplFile struct {
Structs []*StructTemplate
Unions []*UnionTemplate
Enums []*EnumTemplate
+ Interfaces []*InterfaceTemplate
}
type Import struct {
@@ -125,6 +126,9 @@ type InterfaceTemplate struct {
// PrivateName is identical to Name with the first letter lower cased.
PrivateName string
+ // ServiceName is the service name of the interface.
+ ServiceName *string
+
// Methods contains the list of methods of the interface.
Methods []MethodTemplate
}
« no previous file with comments | « mojom/generators/go/templates/templates.go ('k') | mojom/generators/go/translator/names.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698