Expose TemplateDir in the AST
This commit is contained in:
parent
14d2af18a7
commit
407790640d
@ -31,6 +31,7 @@ type Ast struct {
|
|||||||
File *descriptor.FileDescriptorProto `json:"file"`
|
File *descriptor.FileDescriptorProto `json:"file"`
|
||||||
RawFilename string `json:"raw-filename"`
|
RawFilename string `json:"raw-filename"`
|
||||||
Filename string `json:"filename"`
|
Filename string `json:"filename"`
|
||||||
|
TemplateDir string `json:"template-dir"`
|
||||||
Service *descriptor.ServiceDescriptorProto `json:"service"`
|
Service *descriptor.ServiceDescriptorProto `json:"service"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,6 +94,7 @@ func (e *GenericTemplateBasedEncoder) genAst(templateFilename string) (*Ast, err
|
|||||||
PWD: pwd,
|
PWD: pwd,
|
||||||
GoPWD: goPwd,
|
GoPWD: goPwd,
|
||||||
File: e.file,
|
File: e.file,
|
||||||
|
TemplateDir: e.templateDir,
|
||||||
RawFilename: templateFilename,
|
RawFilename: templateFilename,
|
||||||
Filename: "",
|
Filename: "",
|
||||||
Service: e.service,
|
Service: e.service,
|
||||||
|
Loading…
Reference in New Issue
Block a user