Lines Matching defs:String
68 moduleFactories map[string]ModuleFactory
69 moduleNames map[string]*moduleGroup
76 variantMutatorNames []string
77 moduleNinjaNames map[string]*moduleGroup
91 pkgNames map[*packageContext]string
103 cachedSortedModuleNames []string
105 globs map[string]GlobPath
129 property string
132 func (e *BlueprintError) Error() string {
136 func (e *ModuleError) Error() string {
140 func (e *PropertyError) Error() string {
151 name string
152 ninjaName string
159 typeName string
160 relBlueprintsFile string
162 propertyPos map[string]scanner.Position
164 variantName string
174 missingDeps []string
195 func (module *moduleInfo) Name() string {
199 func (module *moduleInfo) String() string {
212 Mutator string
215 Variation string
219 type variationMap map[string]string
249 name string
259 name string
269 moduleFactories: make(map[string]ModuleFactory),
270 moduleNames: make(map[string]*moduleGroup),
272 moduleNinjaNames: make(map[string]*moduleGroup),
273 globs: make(map[string]GlobPath),
308 // The fields of the properties struct must be either []string, a string, or
321 // Foo string
322 // Bar []string
342 // foo: "my foo string",
348 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
368 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) {
382 func singletonPkgPath(singleton Singleton) string {
390 func singletonTypeName(singleton Singleton) string {
408 func (c *Context) RegisterTopDownMutator(name string, mutator TopDownMutator) MutatorHandle {
435 func (c *Context) RegisterBottomUpMutator(name string, mutator BottomUpMutator) MutatorHandle {
480 func (c *Context) RegisterEarlyMutator(name string, mutator EarlyMutator) {
527 func (c *Context) parse(rootDir, filename string, r io.Reader,
581 var blueprints []string
606 string
619 func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string,
703 func (c *Context) WalkBlueprintsFiles(rootFile string, handler FileHandler) (deps []string,
708 blueprintsSet := make(map[string]bool)
714 depsCh := make(chan string)
722 startParseBlueprintsFile := func(filename string, scope *parser.Scope) {
752 if blueprintsSet[blueprint.string] {
756 blueprintsSet[blueprint.string] = true
757 startParseBlueprintsFile(blueprint.string, blueprint.Scope)
771 func (c *Context) MockFileSystem(files map[string][]byte) {
779 func (c *Context) parseBlueprintsFile(filename string, scope *parser.Scope, rootDir string,
781 depsCh chan<- string) {
804 depsCh <- b.string
808 func (c *Context) findBuildBlueprints(dir string, build []string,
809 buildPos scanner.Position) ([]string, []error) {
811 var blueprints []string
816 var matches []string
844 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position,
845 subBlueprintsName string, optional bool) ([]string, []error) {
847 var blueprints []string
852 var matches []string
880 func getLocalStringListFromScope(scope *parser.Scope, v string) ([]string, scanner.Position, error) {
886 ret := make([]string, 0, len(value.Values))
889 s, ok := listValue.(*parser.String)
892 panic("non-string value found in list")
899 case *parser.Bool, *parser.String:
910 func getStringFromScope(scope *parser.Scope, v string) (string, scanner.Position, error) {
915 case *parser.String:
919 Err: fmt.Errorf("%q must be a string", v),
954 func (c *Context) createVariations(origModule *moduleInfo, mutatorName string,
955 variationNames []string) ([]*moduleInfo, []error) {
1017 mutatorName, variationName string) (errs []error) {
1043 func (c *Context) prettyPrintVariant(variant variationMap) string {
1044 names := make([]string, 0, len(variant))
1055 relBlueprintsFile string) (*moduleInfo, []error) {
1087 module.propertyPos = make(map[string]scanner.Position)
1193 func (c *Context) addDependency(module *moduleInfo, tag DependencyTag, depName string) []error {
1230 variants := make([]string, len(possibleDeps))
1245 func (c *Context) findReverseDependency(module *moduleInfo, destName string) (*moduleInfo, []error) {
1266 variants := make([]string, len(possibleDeps))
1282 tag DependencyTag, depName string, far bool) []error {
1342 variants := make([]string, len(possibleDeps))
1614 func (c *Context) PrepareBuildActions(config interface{}) (deps []string, errs []error) {
1699 func (bottomUpMutatorImpl) String() string {
1713 func (topDownMutatorImpl) String() string {
1938 liveGlobals *liveTracker) ([]string, []error) {
1940 var deps []string
1945 depsCh := make(chan []string)
2030 liveGlobals *liveTracker) ([]string, []error) {
2032 var deps []string
2167 name string
2170 func (c *Context) moduleMatchingVariant(module *moduleInfo, name string) *moduleInfo {
2235 func (c *Context) modulesFromName(name string) []*moduleInfo {
2242 func (c *Context) sortedModuleNames() []string {
2244 c.cachedSortedModuleNames = make([]string, 0, len(c.moduleNames))
2332 liveGlobals *liveTracker) (map[*packageContext]string, []string) {
2334 pkgs := make(map[string]*packageContext)
2335 pkgNames := make(map[*packageContext]string)
2382 deps := []string{}
2391 variables map[Variable]*ninjaString, pkgNames map[*packageContext]string) {
2418 msgs := []string{"detected variable reference cycle:"}
2466 func (c *Context) AllTargets() (map[string]string, error) {
2471 targets := map[string]string{}
2504 func (c *Context) NinjaBuildDir() (string, error) {
2514 func (c *Context) ModuleTypePropertyStructs() map[string][]interface{} {
2515 ret := make(map[string][]interface{})
2523 func (c *Context) ModuleName(logicModule Module) string {
2528 func (c *Context) ModuleDir(logicModule Module) string {
2533 func (c *Context) ModuleSubDir(logicModule Module) string {
2538 func (c *Context) ModuleType(logicModule Module) string {
2543 func (c *Context) BlueprintFile(logicModule Module) string {
2548 func (c *Context) ModuleErrorf(logicModule Module, format string,
2715 PkgName string
2716 PkgPath string
2763 params := map[string]interface{}{
2773 return nw.Comment(buf.String())
2804 fullName(pkgNames map[*packageContext]string) string
2808 pkgNames map[*packageContext]string
3003 infoMap := map[string]interface{}{
3015 err = nw.Comment(buf.String())
3060 infoMap := map[string]interface{}{
3069 err = nw.Comment(buf.String())
3180 in string
3183 func newPanicErrorf(panic interface{}, in string, a ...interface{}) error {
3193 func (p panicError) Error() string {
3197 func (p *panicError) addIn(in string) {
3201 func funcName(f interface{}) string {