• Home
  • Raw
  • Download

Lines Matching defs:Context

90 type Context struct {  struct
91 context.Context anonMember
94 EventHandler *metrics.EventHandler
96 BeforePrepareBuildActionsHook func() error
98 moduleFactories map[string]ModuleFactory
99 nameInterface NameInterface
100 moduleGroups []*moduleGroup
101 moduleInfo map[Module]*moduleInfo
102 singletonInfo []*singletonInfo
103 mutatorInfo []*mutatorInfo
104 variantMutatorNames []string
106 completedTransitionMutators int
107 transitionMutators []*transitionMutatorImpl
108 transitionMutatorNames []string
110 needsUpdateDependencies uint32 // positive if a mutator modified the dependencies
112 dependenciesReady bool // set to true on a successful ResolveDependencies
113 buildActionsReady bool // set to true on a successful PrepareBuildActions
116 ignoreUnknownModuleTypes bool
119 allowMissingDependencies bool
122 nameTracker *nameTracker
123 liveGlobals *liveTracker
124 globalVariables map[Variable]*ninjaString
125 globalPools map[Pool]*poolDef
126 globalRules map[Rule]*ruleDef
129 outDir *ninjaString // The builddir special Ninja variable
130 requiredNinjaMajor int // For the ninja_required_version variable
131 requiredNinjaMinor int // For the ninja_required_version variable
132 requiredNinjaMicro int // For the ninja_required_version variable
134 subninjas []string
137 cachedSortedModuleGroups []*moduleGroup
139 cachedDepsModified bool
141 globs map[globKey]pathtools.GlobResult
142 globLock sync.Mutex
144 srcDir string
145 fs pathtools.FileSystem
146 moduleListFile string
151 providerMutators []*mutatorInfo
154 finishedMutators []bool
161 SkipCloneModulesAfterMutators bool
164 includeTags *IncludeTags
166 sourceRootDirs *SourceRootDirs
171 incrementalAnalysis bool
179 incrementalEnabled bool
181 buildActionsCache BuildActionCache
182 buildActionsToCacheLock sync.Mutex
183 orderOnlyStringsCache OrderOnlyStringsCache
184 orderOnlyStrings syncmap.SyncMap[uniquelist.UniqueList[string], *orderOnlyStringsInfo]
226 func (c *Context) AddSourceRootDirs(dirs ...string) {
244 func (c *Context) AddIncludeTags(names ...string) {
248 func (c *Context) ContainsIncludeTag(name string) bool {
253 func (c *Context) iterateAllVariants() iter.Seq[*moduleInfo] {
469 …ntext) setModuleTransitionInfo(module *moduleInfo, t *transitionMutatorImpl, info TransitionInfo) {
689 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
711 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory, parallel bool) {
726 func (c *Context) SetNameInterface(i NameInterface) {
730 func (c *Context) SetIncrementalAnalysis(incremental bool) {
734 func (c *Context) GetIncrementalAnalysis() bool {
738 func (c *Context) SetIncrementalEnabled(incremental bool) {
742 func (c *Context) GetIncrementalEnabled() bool {
746 func (c *Context) updateBuildActionsCache(key *BuildActionCacheKey, data *BuildActionCachedData) {
754 func (c *Context) getBuildActionsFromCache(key *BuildActionCacheKey) *BuildActionCachedData {
761 func (c *Context) CacheAllBuildActions(soongOutDir string) error {
778 func (c *Context) RestoreAllBuildActions(soongOutDir string) error {
797 func (c *Context) SetSrcDir(path string) {
802 func (c *Context) SrcDir() string {
824 …gisterTransitionPropagateMutator(name string, mutator func(mctx BaseModuleContext)) MutatorHandle {
849 func (c *Context) RegisterBottomUpMutator(name string, mutator BottomUpMutator) MutatorHandle {
870 func (c *Context) HasMutatorFinished(mutatorName string) bool {
950 func (c *Context) SetIgnoreUnknownModuleTypes(ignoreUnknownModuleTypes bool) {
958 func (c *Context) SetAllowMissingDependencies(allowMissingDependencies bool) {
962 func (c *Context) SetModuleListFile(listFile string) {
966 func (c *Context) ListModulePaths(baseDir string) (paths []string, err error) {
1011 func (c *Context) ParseBlueprintsFiles(rootFile string,
1034 func shouldVisitFile(c *Context, file *parser.File) shouldVisitFileInfo {
1058 func (c *Context) ParseFileList(rootDir string, filePaths []string,
1220 func (c *Context) WalkBlueprintsFiles(rootDir string, filePaths []string,
1351 func (c *Context) MockFileSystem(files map[string][]byte) {
1374 func (c *Context) SetFs(fs pathtools.FileSystem) {
1379 func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string,
1437 func (c *Context) parseOne(rootDir, filename string, reader io.Reader,
1496 func (c *Context) findBuildBlueprints(dir string, build []string,
1538 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position,
1613 func (c *Context) cloneLogicModule(origModule *moduleInfo) (Module, []interface{}) {
1647 func (c *Context) createVariations(origModule *moduleInfo, mutator *mutatorInfo,
1734 …vertDepsToVariation(module *moduleInfo, variationIndex int, depChooser depChooser) (errs []error) {
1753 func (c *Context) prettyPrintVariant(variations variationMap) string {
1767 func (c *Context) prettyPrintGroupVariants(group *moduleGroup) string {
1833 func (c *Context) addModule(module *moduleInfo) []error {
1871 func (c *Context) ResolveDependencies(config interface{}) (deps []string, errs []error) {
1910 …ntext) resolveDependencies(ctx context.Context, config interface{}) (deps []string, errs []error) {
1971 …Context) applyTransitions(config any, module *moduleInfo, group *moduleGroup, variant variationMap,
2065 func (c *Context) findVariant(module *moduleInfo, config any,
2126 …ddVariationDependency(module *moduleInfo, mutator *mutatorInfo, config any, variations []Variation,
2525 func (c *Context) updateDependencies() (errs []error) {
2719 …*Context) GetWeightedOutputsFromPredicate(predicate func(*JsonModule) (bool, int)) map[string]int {
2740 func (c *Context) PrintJSONGraphAndActions(wGraph io.Writer, wActions io.Writer) {
2790 func (c *Context) PrepareBuildActions(config interface{}) (deps []string, errs []error) {
2887 …ontext.Context, config interface{}, mutatorGroups [][]*mutatorInfo) (deps []string, errs []error) {
2979 func (c *Context) runMutator(config interface{}, mutatorGroup []*mutatorInfo,
3205 func (c *Context) clearTransitionMutatorInputVariants() {
3214 func (c *Context) cloneModules() {
3270 func (c *Context) generateModuleBuildActions(config interface{},
3374 func (c *Context) generateOneSingletonBuildActions(config interface{},
3421 func (c *Context) generateParallelSingletonBuildActions(config interface{},
3472 func (c *Context) generateSingletonBuildActions(config interface{},
3509 func (c *Context) processLocalBuildActions(out, in *localBuildActions,
3550 func (c *Context) walkDeps(topModule *moduleInfo, allowDuplicates bool,
3598 func (c *Context) moduleVariantsThatDependOn(name string, dep *moduleInfo) []*moduleInfo {
3617 func (c *Context) handleRenames(renames []rename) []error {
3631 func (c *Context) handleReplacements(replacements []replace) []error {
3655 …issingDependencies(module *moduleInfo, depName string, depVariations variationMap) (errs []error) {
3666 func (c *Context) missingDependencyError(module *moduleInfo, depName string) (errs error) {
3675 func (c *Context) moduleGroupFromName(name string, namespace Namespace) *moduleGroup {
3683 func (c *Context) sortedModuleGroups() []*moduleGroup {
3700 func (c *Context) visitAllModules(visit func(Module)) {
3717 func (c *Context) visitAllModulesIf(pred func(Module) bool,
3738 func (c *Context) visitAllModuleVariants(module *moduleInfo,
3755 func (c *Context) visitAllModuleInfos(visit func(*moduleInfo)) {
3772 func (c *Context) requireNinjaVersion(major, minor, micro int) {
3785 func (c *Context) setOutDir(value *ninjaString) {
3791 func (c *Context) makeUniquePackageNames(
3853 …ext) memoizeFullNames(liveGlobals *liveTracker, pkgNames map[*packageContext]string) *nameTracker {
3872 func (c *Context) checkForVariableReferenceCycles(
3946 func (c *Context) ModuleTypePropertyStructs() map[string][]interface{} {
3955 func (c *Context) ModuleTypeFactories() map[string]ModuleFactory {
3959 func (c *Context) ModuleName(logicModule Module) string {
3964 func (c *Context) ModuleDir(logicModule Module) string {
3968 func (c *Context) ModuleSubDir(logicModule Module) string {
3973 func (c *Context) ModuleType(logicModule Module) string {
3982 func (c *Context) ModuleProvider(logicModule Module, provider AnyProviderKey) (any, bool) {
3987 func (c *Context) BlueprintFile(logicModule Module) string {
3992 func (c *Context) moduleErrorf(module *moduleInfo, format string,
4010 func (c *Context) ModuleErrorf(logicModule Module, format string,
4015 func (c *Context) PropertyErrorf(logicModule Module, property string, format string,
4043 func (c *Context) VisitAllModules(visit func(Module)) {
4047 func (c *Context) VisitAllModulesIf(pred func(Module) bool,
4053 func (c *Context) VisitDirectDeps(module Module, visit func(Module)) {
4059 func (c *Context) VisitDirectDepsWithTags(module Module, visit func(Module, DependencyTag)) {
4077 func (c *Context) VisitDirectDepsIf(module Module, pred func(Module) bool, visit func(Module)) {
4097 func (c *Context) VisitDepsDepthFirst(module Module, visit func(Module)) {
4115 func (c *Context) VisitDepsDepthFirstIf(module Module, pred func(Module) bool, visit func(Module)) {
4135 func (c *Context) PrimaryModule(module Module) Module {
4139 func (c *Context) IsFinalModule(module Module) bool {
4143 func (c *Context) VisitAllModuleVariants(module Module,
4150 func (c *Context) Singletons() []Singleton {
4159 func (c *Context) SingletonName(singleton Singleton) string {
4171 func (c *Context) VerifyProvidersWereUnchanged() []error {
4226 …nc (c *Context) WriteBuildFile(w StringWriterWriter, shardNinja bool, ninjaFileName string) error {
4301 func (c *Context) writeBuildFileHeader(nw *ninjaWriter) error {
4340 func (c *Context) writeNinjaRequiredVersion(nw *ninjaWriter) error {
4352 func (c *Context) writeSubninjas(nw *ninjaWriter) error {
4362 func (c *Context) writeBuildDir(nw *ninjaWriter) error {
4377 func (c *Context) writeGlobalVariables(nw *ninjaWriter) error {
4429 func (c *Context) writeGlobalPools(nw *ninjaWriter) error {
4456 func (c *Context) writeGlobalRules(nw *ninjaWriter) error {
4550 … (c *Context) writeAllModuleActions(nw *ninjaWriter, shardNinja bool, ninjaFileName string) error {
4656 func writeIncrementalModules(c *Context, baseFile string, modules []*moduleInfo, headerTemplate *te…
4698 …riteModuleAction(modules []*moduleInfo, nw *ninjaWriter, headerTemplate *template.Template) error {
4748 func (c *Context) writeAllSingletonActions(nw *ninjaWriter) error {
4804 func (c *Context) GetEventHandler() *metrics.EventHandler {
4808 func (c *Context) BeginEvent(name string) {
4812 func (c *Context) EndEvent(name string) {
4816 func (c *Context) SetBeforePrepareBuildActionsHook(hookFn func() error) {
4841 func (c *Context) deduplicateOrderOnlyDeps(modules []*moduleInfo) *localBuildActions {
4880 func (c *Context) cacheModuleBuildActions(module *moduleInfo) {
4905 func (c *Context) writeLocalBuildActions(nw *ninjaWriter,
5239 func (this *Context) GenerateModuleDebugInfo(filename string) {