Implement String() method for CodegenMode.
Test: build_conversion_test.go Change-Id: I17bf5c9b366b0e7bda59f0b1e18f6272153a6ed7
This commit is contained in:
parent
33832f96e0
commit
dcc329af9f
|
@ -67,6 +67,17 @@ const (
|
|||
QueryView
|
||||
)
|
||||
|
||||
func (mode CodegenMode) String() string {
|
||||
switch mode {
|
||||
case Bp2Build:
|
||||
return "Bp2Build"
|
||||
case QueryView:
|
||||
return "QueryView"
|
||||
default:
|
||||
return fmt.Sprintf("%d", mode)
|
||||
}
|
||||
}
|
||||
|
||||
func (ctx CodegenContext) AddNinjaFileDeps(...string) {}
|
||||
func (ctx CodegenContext) Config() android.Config { return ctx.config }
|
||||
func (ctx CodegenContext) Context() android.Context { return ctx.context }
|
||||
|
|
Loading…
Reference in New Issue