• Home
  • Raw
  • Download

Lines Matching defs:Context

70 type Context struct {  struct
71 context.Context argument
74 moduleFactories map[string]ModuleFactory
75 nameInterface NameInterface
76 moduleGroups []*moduleGroup
77 moduleInfo map[Module]*moduleInfo
78 modulesSorted []*moduleInfo
79 preSingletonInfo []*singletonInfo
80 singletonInfo []*singletonInfo
81 mutatorInfo []*mutatorInfo
82 earlyMutatorInfo []*mutatorInfo
83 variantMutatorNames []string
85 depsModified uint32 // positive if a mutator modified the dependencies
87 dependenciesReady bool // set to true on a successful ResolveDependencies
88 buildActionsReady bool // set to true on a successful PrepareBuildActions
91 ignoreUnknownModuleTypes bool
94 allowMissingDependencies bool
97 pkgNames map[*packageContext]string
98 liveGlobals *liveTracker
99 globalVariables map[Variable]*ninjaString
100 globalPools map[Pool]*poolDef
101 globalRules map[Rule]*ruleDef
104 ninjaBuildDir *ninjaString // The builddir special Ninja variable
105 requiredNinjaMajor int // For the ninja_required_version variable
106 requiredNinjaMinor int // For the ninja_required_version variable
107 requiredNinjaMicro int // For the ninja_required_version variable
109 subninjas []string
112 cachedSortedModuleGroups []*moduleGroup
114 globs map[string]GlobPath
115 globLock sync.Mutex
117 fs pathtools.FileSystem
118 moduleListFile string
373 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
393 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) {
415 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) {
429 func (c *Context) SetNameInterface(i NameInterface) {
459 func (c *Context) RegisterTopDownMutator(name string, mutator TopDownMutator) MutatorHandle {
486 func (c *Context) RegisterBottomUpMutator(name string, mutator BottomUpMutator) MutatorHandle {
531 func (c *Context) RegisterEarlyMutator(name string, mutator EarlyMutator) {
556 func (c *Context) SetIgnoreUnknownModuleTypes(ignoreUnknownModuleTypes bool) {
564 func (c *Context) SetAllowMissingDependencies(allowMissingDependencies bool) {
568 func (c *Context) SetModuleListFile(listFile string) {
572 func (c *Context) ListModulePaths(baseDir string) (paths []string, err error) {
616 func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string, errs []error) {
625 func (c *Context) ParseFileList(rootDir string, filePaths []string) (deps []string,
720 func (c *Context) WalkBlueprintsFiles(rootDir string, filePaths []string,
851 func (c *Context) MockFileSystem(files map[string][]byte) {
875 func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string,
933 func (c *Context) parseOne(rootDir, filename string, reader io.Reader,
997 func (c *Context) findBuildBlueprints(dir string, build []string,
1039 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position,
1132 func (c *Context) cloneLogicModule(origModule *moduleInfo) (Module, []interface{}) {
1149 func (c *Context) createVariations(origModule *moduleInfo, mutatorName string,
1211 func (c *Context) convertDepsToVariation(module *moduleInfo,
1238 func (c *Context) prettyPrintVariant(variant variationMap) string {
1249 func (c *Context) newModule(factory ModuleFactory) *moduleInfo {
1262 func (c *Context) processModuleDef(moduleDef *parser.Module,
1298 func (c *Context) addModule(module *moduleInfo) []error {
1336 func (c *Context) ResolveDependencies(config interface{}) (deps []string, errs []error) {
1340 …ntext) resolveDependencies(ctx context.Context, config interface{}) (deps []string, errs []error) {
1398 func (c *Context) findMatchingVariant(module *moduleInfo, possible []*moduleInfo) *moduleInfo {
1412 func (c *Context) addDependency(module *moduleInfo, tag DependencyTag, depName string) []error {
1450 …nc (c *Context) findReverseDependency(module *moduleInfo, destName string) (*moduleInfo, []error) {
1486 func (c *Context) addVariationDependency(module *moduleInfo, variations []Variation,
1554 func (c *Context) addInterVariantDependency(origModule *moduleInfo, tag DependencyTag,
1693 func (c *Context) parallelVisit(order visitOrderer, visit func(group *moduleInfo) bool) {
1756 func (c *Context) updateDependencies() (errs []error) {
1882 func (c *Context) PrepareBuildActions(config interface{}) (deps []string, errs []error) {
1940 …c (c *Context) runMutators(ctx context.Context, config interface{}) (deps []string, errs []error) {
2019 func (c *Context) runMutator(config interface{}, mutator *mutatorInfo,
2192 func (c *Context) cloneModules() {
2244 func (c *Context) generateModuleBuildActions(config interface{},
2337 func (c *Context) generateSingletonBuildActions(config interface{},
2393 func (c *Context) processLocalBuildActions(out, in *localBuildActions,
2434 func (c *Context) walkDeps(topModule *moduleInfo, allowDuplicates bool,
2479 func (c *Context) moduleMatchingVariant(module *moduleInfo, name string) *moduleInfo {
2495 func (c *Context) handleRenames(renames []rename) []error {
2509 func (c *Context) handleReplacements(replacements []replace) []error {
2526 func (c *Context) discoveredMissingDependencies(module *moduleInfo, depName string) (errs []error) {
2534 func (c *Context) missingDependencyError(module *moduleInfo, depName string) (errs error) {
2543 func (c *Context) modulesFromName(name string, namespace Namespace) []*moduleInfo {
2551 func (c *Context) sortedModuleGroups() []*moduleGroup {
2567 func (c *Context) visitAllModules(visit func(Module)) {
2584 func (c *Context) visitAllModulesIf(pred func(Module) bool,
2605 func (c *Context) visitAllModuleVariants(module *moduleInfo,
2622 func (c *Context) requireNinjaVersion(major, minor, micro int) {
2635 func (c *Context) setNinjaBuildDir(value *ninjaString) {
2641 func (c *Context) makeUniquePackageNames(
2700 func (c *Context) checkForVariableReferenceCycles(
2776 func (c *Context) AllTargets() (map[string]string, error) {
2814 func (c *Context) NinjaBuildDir() (string, error) {
2824 func (c *Context) ModuleTypePropertyStructs() map[string][]interface{} {
2833 func (c *Context) ModuleTypeFactories() map[string]ModuleFactory {
2841 func (c *Context) ModuleName(logicModule Module) string {
2846 func (c *Context) ModulePath(logicModule Module) string {
2851 func (c *Context) ModuleDir(logicModule Module) string {
2855 func (c *Context) ModuleSubDir(logicModule Module) string {
2860 func (c *Context) ModuleType(logicModule Module) string {
2865 func (c *Context) BlueprintFile(logicModule Module) string {
2870 func (c *Context) ModuleErrorf(logicModule Module, format string,
2880 func (c *Context) VisitAllModules(visit func(Module)) {
2884 func (c *Context) VisitAllModulesIf(pred func(Module) bool,
2890 func (c *Context) VisitDirectDeps(module Module, visit func(Module)) {
2908 func (c *Context) VisitDirectDepsIf(module Module, pred func(Module) bool, visit func(Module)) {
2928 func (c *Context) VisitDepsDepthFirst(module Module, visit func(Module)) {
2946 func (c *Context) VisitDepsDepthFirstIf(module Module, pred func(Module) bool, visit func(Module)) {
2966 func (c *Context) PrimaryModule(module Module) Module {
2970 func (c *Context) FinalModule(module Module) Module {
2975 func (c *Context) VisitAllModuleVariants(module Module,
2982 func (c *Context) Singletons() []Singleton {
2991 func (c *Context) SingletonName(singleton Singleton) string {
3003 func (c *Context) WriteBuildFile(w io.Writer) error {
3091 func (c *Context) writeBuildFileHeader(nw *ninjaWriter) error {
3130 func (c *Context) writeNinjaRequiredVersion(nw *ninjaWriter) error {
3142 func (c *Context) writeSubninjas(nw *ninjaWriter) error {
3152 func (c *Context) writeBuildDir(nw *ninjaWriter) error {
3190 func (c *Context) writeGlobalVariables(nw *ninjaWriter) error {
3241 func (c *Context) writeGlobalPools(nw *ninjaWriter) error {
3267 func (c *Context) writeGlobalRules(nw *ninjaWriter) error {
3342 func (c *Context) writeAllModuleActions(nw *ninjaWriter) error {
3411 func (c *Context) writeAllSingletonActions(nw *ninjaWriter) error {
3465 func (c *Context) writeLocalBuildActions(nw *ninjaWriter,