Lines Matching refs:Context
80 type Context struct { struct
81 context.Context argument
195 func (c *Context) AddSourceRootDirs(dirs ...string) { argument
213 func (c *Context) AddIncludeTags(names ...string) { argument
217 func (c *Context) ContainsIncludeTag(name string) bool { argument
470 func newContext() *Context {
472 return &Context{
473 Context: context.Background(),
495 func NewContext() *Context {
569 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) { argument
591 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory, parallel bool) { argument
606 func (c *Context) SetNameInterface(i NameInterface) { argument
610 func (c *Context) SetSrcDir(path string) { argument
615 func (c *Context) SrcDir() string { argument
645 func (c *Context) RegisterTopDownMutator(name string, mutator TopDownMutator) MutatorHandle { argument
672 func (c *Context) RegisterBottomUpMutator(name string, mutator BottomUpMutator) MutatorHandle { argument
717 func (c *Context) SetIgnoreUnknownModuleTypes(ignoreUnknownModuleTypes bool) { argument
725 func (c *Context) SetAllowMissingDependencies(allowMissingDependencies bool) { argument
733 func (c *Context) SetVerifyProvidersAreUnchanged(verifyProvidersAreUnchanged bool) { argument
737 func (c *Context) GetVerifyProvidersAreUnchanged() bool { argument
741 func (c *Context) SetModuleListFile(listFile string) { argument
745 func (c *Context) ListModulePaths(baseDir string) (paths []string, err error) { argument
790 func (c *Context) ParseBlueprintsFiles(rootFile string, argument
813 func shouldVisitFile(c *Context, file *parser.File) shouldVisitFileInfo { argument
837 func (c *Context) ParseFileList(rootDir string, filePaths []string, argument
999 func (c *Context) WalkBlueprintsFiles(rootDir string, filePaths []string, argument
1130 func (c *Context) MockFileSystem(files map[string][]byte) { argument
1153 func (c *Context) SetFs(fs pathtools.FileSystem) { argument
1158 func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string, argument
1216 func (c *Context) parseOne(rootDir, filename string, reader io.Reader, argument
1275 func (c *Context) findBuildBlueprints(dir string, build []string, argument
1317 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position, argument
1410 func (c *Context) cloneLogicModule(origModule *moduleInfo) (Module, []interface{}) { argument
1456 func (c *Context) createVariations(origModule *moduleInfo, mutator *mutatorInfo, argument
1552 func (c *Context) convertDepsToVariation(module *moduleInfo, variationIndex int, depChooser depChoo… argument
1571 func (c *Context) prettyPrintVariant(variations variationMap) string { argument
1582 func (c *Context) prettyPrintGroupVariants(group *moduleGroup) string { argument
1653 func (c *Context) addModule(module *moduleInfo) []error { argument
1691 func (c *Context) ResolveDependencies(config interface{}) (deps []string, errs []error) { argument
1694 return c.resolveDependencies(c.Context, config)
1697 func (c *Context) resolveDependencies(ctx context.Context, config interface{}) (deps []string, errs… argument
1698 pprof.Do(ctx, pprof.Labels("blueprint", "ResolveDependencies"), func(ctx context.Context) {
1757 func (c *Context) findExactVariantOrSingle(module *moduleInfo, config any, possible *moduleGroup, r… argument
1773 func (c *Context) addDependency(module *moduleInfo, config any, tag DependencyTag, depName string) … argument
1810 func (c *Context) findReverseDependency(module *moduleInfo, config any, destName string) (*moduleIn… argument
1849 func (c *Context) applyTransitions(config any, module *moduleInfo, group *moduleGroup, variant vari… argument
1894 func (c *Context) findVariant(module *moduleInfo, config any, argument
1939 func (c *Context) addVariationDependency(module *moduleInfo, config any, variations []Variation, argument
1986 func (c *Context) addInterVariantDependency(origModule *moduleInfo, tag DependencyTag, argument
2377 func (c *Context) updateDependencies() (errs []error) { argument
2607 func (c *Context) GetWeightedOutputsFromPredicate(predicate func(*JsonModule) (bool, int)) map[stri… argument
2637 func (c *Context) PrintJSONGraphAndActions(wGraph io.Writer, wActions io.Writer) { argument
2687 func (c *Context) PrepareBuildActions(config interface{}) (deps []string, errs []error) { argument
2690 pprof.Do(c.Context, pprof.Labels("blueprint", "PrepareBuildActions"), func(ctx context.Context) {
2749 func (c *Context) runMutators(ctx context.Context, config interface{}) (deps []string, errs []error… argument
2750 pprof.Do(ctx, pprof.Labels("blueprint", "runMutators"), func(ctx context.Context) {
2752 pprof.Do(ctx, pprof.Labels("mutator", mutator.name), func(context.Context) {
2825 func (c *Context) runMutator(config interface{}, mutator *mutatorInfo, argument
3087 func (c *Context) clearTransitionMutatorInputVariants() { argument
3096 func (c *Context) cloneModules() { argument
3152 func (c *Context) generateModuleBuildActions(config interface{}, argument
3254 func (c *Context) generateOneSingletonBuildActions(config interface{}, argument
3301 func (c *Context) generateParallelSingletonBuildActions(config interface{}, argument
3352 func (c *Context) generateSingletonBuildActions(config interface{}, argument
3389 func (c *Context) processLocalBuildActions(out, in *localBuildActions, argument
3430 func (c *Context) walkDeps(topModule *moduleInfo, allowDuplicates bool, argument
3478 func (c *Context) moduleVariantsThatDependOn(name string, dep *moduleInfo) []*moduleInfo { argument
3501 func (c *Context) handleRenames(renames []rename) []error { argument
3515 func (c *Context) handleReplacements(replacements []replace) []error { argument
3539 func (c *Context) discoveredMissingDependencies(module *moduleInfo, depName string, depVariations v… argument
3550 func (c *Context) missingDependencyError(module *moduleInfo, depName string) (errs error) { argument
3559 func (c *Context) moduleGroupFromName(name string, namespace Namespace) *moduleGroup { argument
3567 func (c *Context) sortedModuleGroups() []*moduleGroup { argument
3584 func (c *Context) visitAllModules(visit func(Module)) { argument
3603 func (c *Context) visitAllModulesIf(pred func(Module) bool, argument
3626 func (c *Context) visitAllModuleVariants(module *moduleInfo, argument
3645 func (c *Context) visitAllModuleInfos(visit func(*moduleInfo)) { argument
3664 func (c *Context) requireNinjaVersion(major, minor, micro int) { argument
3677 func (c *Context) setOutDir(value *ninjaString) { argument
3683 func (c *Context) makeUniquePackageNames( argument
3745 func (c *Context) memoizeFullNames(liveGlobals *liveTracker, pkgNames map[*packageContext]string) *… argument
3764 func (c *Context) checkForVariableReferenceCycles( argument
3840 func (c *Context) AllTargets() (map[string]string, error) { argument
3879 func (c *Context) OutDir() (string, error) { argument
3889 func (c *Context) ModuleTypePropertyStructs() map[string][]interface{} { argument
3898 func (c *Context) ModuleTypeFactories() map[string]ModuleFactory { argument
3906 func (c *Context) ModuleName(logicModule Module) string { argument
3911 func (c *Context) ModuleDir(logicModule Module) string { argument
3915 func (c *Context) ModuleSubDir(logicModule Module) string { argument
3920 func (c *Context) ModuleType(logicModule Module) string { argument
3929 func (c *Context) ModuleProvider(logicModule Module, provider AnyProviderKey) (any, bool) { argument
3934 func (c *Context) BlueprintFile(logicModule Module) string { argument
3939 func (c *Context) ModuleErrorf(logicModule Module, format string, argument
3959 func (c *Context) PropertyErrorf(logicModule Module, property string, format string, argument
3987 func (c *Context) VisitAllModules(visit func(Module)) { argument
3991 func (c *Context) VisitAllModulesIf(pred func(Module) bool, argument
3997 func (c *Context) VisitDirectDeps(module Module, visit func(Module)) { argument
4015 func (c *Context) VisitDirectDepsIf(module Module, pred func(Module) bool, visit func(Module)) { argument
4035 func (c *Context) VisitDepsDepthFirst(module Module, visit func(Module)) { argument
4053 func (c *Context) VisitDepsDepthFirstIf(module Module, pred func(Module) bool, visit func(Module)) { argument
4073 func (c *Context) PrimaryModule(module Module) Module { argument
4077 func (c *Context) FinalModule(module Module) Module { argument
4081 func (c *Context) VisitAllModuleVariants(module Module, argument
4088 func (c *Context) Singletons() []Singleton { argument
4097 func (c *Context) SingletonName(singleton Singleton) string { argument
4109 func (c *Context) VerifyProvidersWereUnchanged() []error { argument
4164 func (c *Context) WriteBuildFile(w StringWriterWriter, shardNinja bool, ninjaFileName string) error… argument
4166 pprof.Do(c.Context, pprof.Labels("blueprint", "WriteBuildFile"), func(ctx context.Context) {
4239 func (c *Context) writeBuildFileHeader(nw *ninjaWriter) error { argument
4278 func (c *Context) writeNinjaRequiredVersion(nw *ninjaWriter) error { argument
4290 func (c *Context) writeSubninjas(nw *ninjaWriter) error { argument
4300 func (c *Context) writeBuildDir(nw *ninjaWriter) error { argument
4315 func (c *Context) writeGlobalVariables(nw *ninjaWriter) error { argument
4367 func (c *Context) writeGlobalPools(nw *ninjaWriter) error { argument
4394 func (c *Context) writeGlobalRules(nw *ninjaWriter) error { argument
4483 func (c *Context) writeAllModuleActions(nw *ninjaWriter, shardNinja bool, ninjaFileName string) err… argument
4558 func (c *Context) writeModuleAction(modules []*moduleInfo, nw *ninjaWriter, headerTemplate *templat… argument
4609 func (c *Context) writeAllSingletonActions(nw *ninjaWriter) error { argument
4665 func (c *Context) GetEventHandler() *metrics.EventHandler { argument
4669 func (c *Context) BeginEvent(name string) { argument
4673 func (c *Context) EndEvent(name string) { argument
4677 func (c *Context) SetBeforePrepareBuildActionsHook(hookFn func() error) { argument
4759 func (c *Context) deduplicateOrderOnlyDeps(modules []*moduleInfo) *localBuildActions { argument
4794 func (c *Context) writeLocalBuildActions(nw *ninjaWriter, argument
5128 func (this *Context) GenerateModuleDebugInfo(filename string) { argument