Lines Matching refs:packageContext
27 // A PackageContext provides a way to create package-scoped Ninja pools,
29 // package-scoped PackageContext variable that it uses to create all package-
30 // scoped Ninja object definitions. This PackageContext object should then be
57 type PackageContext interface {
76 type packageContext struct {
84 var _ PackageContext = &packageContext{}
86 func (p *packageContext) getScope() *basicScope {
90 var packageContexts = map[string]*packageContext{}
92 // NewPackageContext creates a PackageContext object for a given package. The
96 func NewPackageContext(pkgPath string) PackageContext {
112 p := &packageContext{
217 func (p *packageContext) Import(pkgPath string) {
233 func (p *packageContext) ImportAs(as, pkgPath string) {
252 pctx *packageContext
266 func (p *packageContext) StaticVariable(name, value string) Variable {
282 func (v *staticVariable) packageContext() *packageContext {
290 func (v *staticVariable) fullName(pkgNames map[*packageContext]string) string {
308 pctx *packageContext
324 func (p *packageContext) VariableFunc(name string,
354 func (p *packageContext) VariableConfigMethod(name string,
382 func (v *variableFunc) packageContext() *packageContext {
390 func (v *variableFunc) fullName(pkgNames map[*packageContext]string) string {
442 func (v *argVariable) packageContext() *packageContext {
450 func (v *argVariable) fullName(pkgNames map[*packageContext]string) string {
463 pctx *packageContext
477 func (p *packageContext) StaticPool(name string, params PoolParams) Pool {
494 func (p *staticPool) packageContext() *packageContext {
502 func (p *staticPool) fullName(pkgNames map[*packageContext]string) string {
519 pctx *packageContext
534 func (p *packageContext) PoolFunc(name string, f func(interface{}) (PoolParams,
553 packageContext() *packageContext {
561 func (p *poolFunc) fullName(pkgNames map[*packageContext]string) string {
585 func (p *builtinPool) packageContext() *packageContext {
593 func (p *builtinPool) fullName(pkgNames map[*packageContext]string) string {
613 pctx *packageContext
639 func (p *packageContext) StaticRule(name string, params RuleParams,
676 func (r *staticRule) packageContext() *packageContext {
684 func (r *staticRule) fullName(pkgNames map[*packageContext]string) string {
718 pctx *packageContext
745 func (p *packageContext) RuleFunc(name string, f func(interface{}) (RuleParams,
782 func (r *ruleFunc) packageContext() *packageContext {
790 func (r *ruleFunc) fullName(pkgNames map[*packageContext]string) string {
833 func (r *builtinRule) packageContext() *packageContext {
841 func (r *builtinRule) fullName(pkgNames map[*packageContext]string) string {
874 func (p *packageContext) AddNinjaFileDeps(deps ...string) {