| Index: mojom/generators/common/cli.go
|
| diff --git a/mojom/generators/common/cli.go b/mojom/generators/common/cli.go
|
| index 1915b7054dc0fb3eac360177b48d5fb6ebcc93a9..1599f7407a37d8b4605ae3e13438fc076a4d9232 100644
|
| --- a/mojom/generators/common/cli.go
|
| +++ b/mojom/generators/common/cli.go
|
| @@ -36,6 +36,8 @@ func GetCliConfig(args []string) GeneratorConfig {
|
| flagSet.BoolVar(&config.noGenImports, "no-gen-imports", false,
|
| "Generate code only for the files that are specified on the command line. "+
|
| "By default, code is generated for all specified files and their transitive imports.")
|
| + flagSet.BoolVar(&config.genTypeInfo, "generate-type-info", false,
|
| + "Do not generate type information inside the mojom.")
|
|
|
| flagSet.Parse(args[1:])
|
|
|
| @@ -88,6 +90,7 @@ type generatorCliConfig struct {
|
| outputDir string
|
| srcRootPath string
|
| noGenImports bool
|
| + genTypeInfo bool
|
| }
|
|
|
| // See GeneratorConfig.
|
| @@ -109,3 +112,8 @@ func (c *generatorCliConfig) SrcRootPath() string {
|
| func (c *generatorCliConfig) GenImports() bool {
|
| return !c.noGenImports
|
| }
|
| +
|
| +// See GeneratorConfig.
|
| +func (c *generatorCliConfig) GenTypeInfo() bool {
|
| + return c.genTypeInfo
|
| +}
|
|
|