Lines Matching refs:moduleInfo

77 	moduleInfo          map[Module]*moduleInfo  member
78 modulesSorted []*moduleInfo
133 module *moduleInfo
165 target *moduleInfo
172 modules []*moduleInfo
178 type moduleInfo struct { struct
185 createdBy *moduleInfo argument
200 reverseDeps []*moduleInfo argument
201 forwardDeps []*moduleInfo argument
208 splitModules []*moduleInfo argument
209 aliasTarget *moduleInfo argument
216 module *moduleInfo
220 func (module *moduleInfo) Name() string { argument
233 func (module *moduleInfo) String() string { argument
245 func (module *moduleInfo) namespace() Namespace { argument
313 moduleInfo: make(map[Module]*moduleInfo),
674 *moduleInfo
694 var addModule func(module *moduleInfo) []error
695 addModule = func(module *moduleInfo) []error {
754 newErrs := c.addModule(module.moduleInfo)
1210 func (c *Context) cloneLogicModule(origModule *moduleInfo) (Module, []interface{}) {
1227 func (c *Context) createVariations(origModule *moduleInfo, mutatorName string,
1228 defaultVariationName *string, variationNames []string) ([]*moduleInfo, []error) {
1235 newModules := []*moduleInfo{}
1292 func (c *Context) convertDepsToVariation(module *moduleInfo,
1297 var newDep *moduleInfo
1352 func newModule(factory ModuleFactory) *moduleInfo {
1355 module := &moduleInfo{
1366 …edModuleFactories map[string]ModuleFactory, ignoreUnknownModuleTypes bool) (*moduleInfo, []error) {
1413 func (c *Context) addModule(module *moduleInfo) []error {
1423 c.moduleInfo[module.logicModule] = module
1427 modules: []*moduleInfo{module},
1497 ctx.error(newPanicErrorf(r, "DynamicDependencies for %s", ctx.moduleInfo()))
1513 func (c *Context) findMatchingVariant(module *moduleInfo, possible *moduleGroup, reverse bool) *mod…
1541 func (c *Context) addDependency(module *moduleInfo, tag DependencyTag, depName string) []error {
1578 func (c *Context) findReverseDependency(module *moduleInfo, destName string) (*moduleInfo, []error)…
1613 …ntext) findVariant(module *moduleInfo, possibleDeps *moduleGroup, variations []Variation, far bool…
1643 var foundDep *moduleInfo
1663 func (c *Context) addVariationDependency(module *moduleInfo, variations []Variation,
1710 func (c *Context) addInterVariantDependency(origModule *moduleInfo, tag DependencyTag,
1716 var fromInfo, toInfo *moduleInfo
1780 waitCount(module *moduleInfo) int argument
1782 propagate(module *moduleInfo) []*moduleInfo argument
1784 visit(modules []*moduleInfo, visit func(*moduleInfo) bool) argument
1789 func (unorderedVisitorImpl) waitCount(module *moduleInfo) int {
1793 func (unorderedVisitorImpl) propagate(module *moduleInfo) []*moduleInfo {
1797 func (unorderedVisitorImpl) visit(modules []*moduleInfo, visit func(*moduleInfo) bool) {
1807 func (bottomUpVisitorImpl) waitCount(module *moduleInfo) int {
1811 func (bottomUpVisitorImpl) propagate(module *moduleInfo) []*moduleInfo {
1815 func (bottomUpVisitorImpl) visit(modules []*moduleInfo, visit func(*moduleInfo) bool) {
1825 func (topDownVisitorImpl) waitCount(module *moduleInfo) int {
1829 func (topDownVisitorImpl) propagate(module *moduleInfo) []*moduleInfo {
1833 func (topDownVisitorImpl) visit(modules []*moduleInfo, visit func(*moduleInfo) bool) {
1849 func (c *Context) parallelVisit(order visitOrderer, visit func(group *moduleInfo) bool) {
1850 doneCh := make(chan *moduleInfo)
1854 var backlog []*moduleInfo
1861 visitOne := func(module *moduleInfo) {
1913 visited := make(map[*moduleInfo]bool) // modules that were already checked
1914 checking := make(map[*moduleInfo]bool) // modules actively being checked
1916 sorted := make([]*moduleInfo, 0, len(c.moduleInfo))
1918 var check func(group *moduleInfo) []*moduleInfo
1920 cycleError := func(cycle []*moduleInfo) {
1944 check = func(module *moduleInfo) []*moduleInfo {
1949 deps := make(map[*moduleInfo]bool)
1963 module.reverseDeps = []*moduleInfo{}
1964 module.forwardDeps = []*moduleInfo{}
1969 return []*moduleInfo{dep, module}
2003 for _, module := range c.moduleInfo {
2171 module *moduleInfo
2178 newModuleInfo := make(map[Module]*moduleInfo)
2179 for k, v := range c.moduleInfo {
2187 newModules []*moduleInfo
2191 reverseDeps := make(map[*moduleInfo][]depInfo)
2194 var newModules []*moduleInfo
2198 newVariationsCh := make(chan []*moduleInfo)
2203 visit := func(module *moduleInfo) bool {
2290 c.moduleInfo = newModuleInfo
2385 clone *moduleInfo
2390 c.parallelVisit(unorderedVisitorImpl{}, func(m *moduleInfo) bool {
2405 delete(c.moduleInfo, update.orig)
2406 c.moduleInfo[update.clone.logicModule] = update.clone
2413 func spliceModules(modules []*moduleInfo, i int, newModules []*moduleInfo) ([]*moduleInfo, int) { argument
2416 var dest []*moduleInfo
2421 dest = make([]*moduleInfo, newLen)
2459 c.parallelVisit(bottomUpVisitor, func(module *moduleInfo) bool {
2624 func (c *Context) walkDeps(topModule *moduleInfo, allowDuplicates bool,
2625 visitDown func(depInfo, *moduleInfo) bool, visitUp func(depInfo, *moduleInfo)) {
2627 visited := make(map[*moduleInfo]bool)
2628 var visiting *moduleInfo
2637 var walk func(module *moduleInfo)
2638 walk = func(module *moduleInfo) {
2661 from, to *moduleInfo
2670 func (c *Context) moduleMatchingVariant(module *moduleInfo, name string) *moduleInfo {
2730 func (c *Context) discoveredMissingDependencies(module *moduleInfo, depName string) (errs []error) {
2738 func (c *Context) missingDependencyError(module *moduleInfo, depName string) (errs error) {
2772 var module *moduleInfo
2791 var module *moduleInfo
2809 func (c *Context) visitAllModuleVariants(module *moduleInfo,
2812 var variant *moduleInfo
2988 for _, module := range c.moduleInfo {
3046 module := c.moduleInfo[logicModule]
3055 module := c.moduleInfo[logicModule]
3060 module := c.moduleInfo[logicModule]
3065 module := c.moduleInfo[logicModule]
3072 module := c.moduleInfo[logicModule]
3090 topModule := c.moduleInfo[module]
3092 var visiting *moduleInfo
3108 topModule := c.moduleInfo[module]
3110 var visiting *moduleInfo
3128 topModule := c.moduleInfo[module]
3130 var visiting *moduleInfo
3139 c.walkDeps(topModule, false, nil, func(dep depInfo, parent *moduleInfo) {
3146 topModule := c.moduleInfo[module]
3148 var visiting *moduleInfo
3157 c.walkDeps(topModule, false, nil, func(dep depInfo, parent *moduleInfo) {
3166 return c.moduleInfo[module].group.modules[0].logicModule
3170 modules := c.moduleInfo[module].group.modules
3177 c.visitAllModuleVariants(c.moduleInfo[module], visit)
3513 modules []*moduleInfo
3549 modules := make([]*moduleInfo, 0, len(c.moduleInfo))
3550 for _, module := range c.moduleInfo {
3728 func beforeInModuleList(a, b *moduleInfo, list []*moduleInfo) bool { argument