• Home
  • Raw
  • Download

Lines Matching defs:Context

74 type Context struct {  struct
75 context.Context argument
78 EventHandler *metrics.EventHandler
80 BeforePrepareBuildActionsHook func() error
82 moduleFactories map[string]ModuleFactory
83 nameInterface NameInterface
84 moduleGroups []*moduleGroup
85 moduleInfo map[Module]*moduleInfo
86 modulesSorted []*moduleInfo
87 preSingletonInfo []*singletonInfo
88 singletonInfo []*singletonInfo
89 mutatorInfo []*mutatorInfo
90 variantMutatorNames []string
92 depsModified uint32 // positive if a mutator modified the dependencies
94 dependenciesReady bool // set to true on a successful ResolveDependencies
95 buildActionsReady bool // set to true on a successful PrepareBuildActions
98 ignoreUnknownModuleTypes bool
101 allowMissingDependencies bool
104 pkgNames map[*packageContext]string
105 liveGlobals *liveTracker
106 globalVariables map[Variable]ninjaString
107 globalPools map[Pool]*poolDef
108 globalRules map[Rule]*ruleDef
111 outDir ninjaString // The builddir special Ninja variable
112 requiredNinjaMajor int // For the ninja_required_version variable
113 requiredNinjaMinor int // For the ninja_required_version variable
114 requiredNinjaMicro int // For the ninja_required_version variable
116 subninjas []string
119 cachedSortedModuleGroups []*moduleGroup
121 cachedDepsModified bool
123 globs map[globKey]pathtools.GlobResult
124 globLock sync.Mutex
126 srcDir string
127 fs pathtools.FileSystem
128 moduleListFile string
133 providerMutators []*mutatorInfo
136 startedMutator *mutatorInfo
138 finishedMutators map[*mutatorInfo]bool
141 skipCloneModulesAfterMutators bool
144 includeTags *IncludeTags
146 sourceRootDirs *SourceRootDirs
182 func (c *Context) AddSourceRootDirs(dirs ...string) {
200 func (c *Context) AddIncludeTags(names ...string) {
204 func (c *Context) ContainsIncludeTag(name string) bool {
555 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
575 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) {
597 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) {
611 func (c *Context) SetNameInterface(i NameInterface) {
615 func (c *Context) SetSrcDir(path string) {
620 func (c *Context) SrcDir() string {
650 func (c *Context) RegisterTopDownMutator(name string, mutator TopDownMutator) MutatorHandle {
677 func (c *Context) RegisterBottomUpMutator(name string, mutator BottomUpMutator) MutatorHandle {
911 func (c *Context) RegisterTransitionMutator(name string, mutator TransitionMutator) {
939 func (c *Context) SetIgnoreUnknownModuleTypes(ignoreUnknownModuleTypes bool) {
947 func (c *Context) SetAllowMissingDependencies(allowMissingDependencies bool) {
951 func (c *Context) SetModuleListFile(listFile string) {
955 func (c *Context) ListModulePaths(baseDir string) (paths []string, err error) {
1000 func (c *Context) ParseBlueprintsFiles(rootFile string,
1023 func shouldVisitFile(c *Context, file *parser.File) shouldVisitFileInfo {
1076 func (c *Context) ParseFileList(rootDir string, filePaths []string,
1238 func (c *Context) WalkBlueprintsFiles(rootDir string, filePaths []string,
1369 func (c *Context) MockFileSystem(files map[string][]byte) {
1392 func (c *Context) SetFs(fs pathtools.FileSystem) {
1397 func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string,
1455 func (c *Context) parseOne(rootDir, filename string, reader io.Reader,
1514 func (c *Context) findBuildBlueprints(dir string, build []string,
1556 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position,
1649 func (c *Context) cloneLogicModule(origModule *moduleInfo) (Module, []interface{}) {
1695 func (c *Context) createVariations(origModule *moduleInfo, mutatorName string,
1813 func (c *Context) convertDepsToVariation(module *moduleInfo, depChooser depChooser) (errs []error) {
1832 func (c *Context) prettyPrintVariant(variations variationMap) string {
1843 func (c *Context) prettyPrintGroupVariants(group *moduleGroup) string {
1914 func (c *Context) addModule(module *moduleInfo) []error {
1952 func (c *Context) ResolveDependencies(config interface{}) (deps []string, errs []error) {
1958 …ntext) resolveDependencies(ctx context.Context, config interface{}) (deps []string, errs []error) {
2037 …text) addDependency(module *moduleInfo, tag DependencyTag, depName string) (*moduleInfo, []error) {
2074 …nc (c *Context) findReverseDependency(module *moduleInfo, destName string) (*moduleInfo, []error) {
2150 func (c *Context) addVariationDependency(module *moduleInfo, variations []Variation,
2197 func (c *Context) addInterVariantDependency(origModule *moduleInfo, tag DependencyTag,
2588 func (c *Context) updateDependencies() (errs []error) {
2809 func (c *Context) GetOutputsFromModuleNames(moduleNames []string) map[string][]string {
2834 func (c *Context) PrintJSONGraphAndActions(wGraph io.Writer, wActions io.Writer) {
2884 func (c *Context) PrepareBuildActions(config interface{}) (deps []string, errs []error) {
2946 …c (c *Context) runMutators(ctx context.Context, config interface{}) (deps []string, errs []error) {
3022 func (c *Context) runMutator(config interface{}, mutator *mutatorInfo,
3253 func (c *Context) cloneModules() {
3309 func (c *Context) generateModuleBuildActions(config interface{},
3409 func (c *Context) generateSingletonBuildActions(config interface{},
3465 func (c *Context) processLocalBuildActions(out, in *localBuildActions,
3506 func (c *Context) walkDeps(topModule *moduleInfo, allowDuplicates bool,
3552 func (c *Context) moduleMatchingVariant(module *moduleInfo, name string) *moduleInfo {
3568 func (c *Context) handleRenames(renames []rename) []error {
3582 func (c *Context) handleReplacements(replacements []replace) []error {
3606 …issingDependencies(module *moduleInfo, depName string, depVariations variationMap) (errs []error) {
3617 func (c *Context) missingDependencyError(module *moduleInfo, depName string) (errs error) {
3626 func (c *Context) moduleGroupFromName(name string, namespace Namespace) *moduleGroup {
3634 func (c *Context) sortedModuleGroups() []*moduleGroup {
3651 func (c *Context) visitAllModules(visit func(Module)) {
3670 func (c *Context) visitAllModulesIf(pred func(Module) bool,
3693 func (c *Context) visitAllModuleVariants(module *moduleInfo,
3712 func (c *Context) requireNinjaVersion(major, minor, micro int) {
3725 func (c *Context) setOutDir(value ninjaString) {
3731 func (c *Context) makeUniquePackageNames(
3793 func (c *Context) memoizeFullNames(liveGlobals *liveTracker, pkgNames map[*packageContext]string) {
3805 func (c *Context) checkForVariableReferenceCycles(
3881 func (c *Context) AllTargets() (map[string]string, error) {
3917 func (c *Context) OutDir() (string, error) {
3927 func (c *Context) ModuleTypePropertyStructs() map[string][]interface{} {
3936 func (c *Context) ModuleTypeFactories() map[string]ModuleFactory {
3944 func (c *Context) ModuleName(logicModule Module) string {
3949 func (c *Context) ModuleDir(logicModule Module) string {
3953 func (c *Context) ModuleSubDir(logicModule Module) string {
3958 func (c *Context) ModuleType(logicModule Module) string {
3969 func (c *Context) ModuleProvider(logicModule Module, provider ProviderKey) interface{} {
3976 func (c *Context) ModuleHasProvider(logicModule Module, provider ProviderKey) bool {
3982 func (c *Context) BlueprintFile(logicModule Module) string {
3987 func (c *Context) ModuleErrorf(logicModule Module, format string,
3997 func (c *Context) VisitAllModules(visit func(Module)) {
4001 func (c *Context) VisitAllModulesIf(pred func(Module) bool,
4007 func (c *Context) VisitDirectDeps(module Module, visit func(Module)) {
4025 func (c *Context) VisitDirectDepsIf(module Module, pred func(Module) bool, visit func(Module)) {
4045 func (c *Context) VisitDepsDepthFirst(module Module, visit func(Module)) {
4063 func (c *Context) VisitDepsDepthFirstIf(module Module, pred func(Module) bool, visit func(Module)) {
4083 func (c *Context) PrimaryModule(module Module) Module {
4087 func (c *Context) FinalModule(module Module) Module {
4091 func (c *Context) VisitAllModuleVariants(module Module,
4098 func (c *Context) Singletons() []Singleton {
4107 func (c *Context) SingletonName(singleton Singleton) string {
4119 func (c *Context) WriteBuildFile(w io.StringWriter) error {
4194 func (c *Context) writeBuildFileHeader(nw *ninjaWriter) error {
4233 func (c *Context) writeNinjaRequiredVersion(nw *ninjaWriter) error {
4245 func (c *Context) writeSubninjas(nw *ninjaWriter) error {
4255 func (c *Context) writeBuildDir(nw *ninjaWriter) error {
4293 func (c *Context) writeGlobalVariables(nw *ninjaWriter) error {
4344 func (c *Context) writeGlobalPools(nw *ninjaWriter) error {
4370 func (c *Context) writeGlobalRules(nw *ninjaWriter) error {
4448 func (c *Context) writeAllModuleActions(nw *ninjaWriter) error {
4518 func (c *Context) writeAllSingletonActions(nw *ninjaWriter) error {
4574 func (c *Context) GetEventHandler() *metrics.EventHandler {
4578 func (c *Context) BeginEvent(name string) {
4582 func (c *Context) EndEvent(name string) {
4586 func (c *Context) SetBeforePrepareBuildActionsHook(hookFn func() error) {
4649 func (c *Context) deduplicateOrderOnlyDeps(infos []*moduleInfo) *localBuildActions {
4686 func (c *Context) writeLocalBuildActions(nw *ninjaWriter,
4847 func RegisterPackageIncludesModuleType(ctx *Context) {