Lines Matching refs:singleton
63 type singleton struct { struct
71 func newSingleton(name string, factory SingletonFactory) singleton {
72 return singleton{false, name, factory}
75 func newPreSingleton(name string, factory SingletonFactory) singleton {
76 return singleton{true, name, factory}
79 func (s singleton) componentName() string { argument
83 func (s singleton) register(ctx *Context) { argument
92 var _ sortableComponent = singleton{}
123 singleton := factory()
124 if makevars, ok := singleton.(SingletonMakeVarsProvider); ok {
127 return &singletonAdaptor{Singleton: singleton}
214 singleton{false, "bazeldeps", BazelSingleton},
217 singleton{false, "phony", phonySingletonFactory},
220 singleton{false, "makevars", makeVarsSingletonFunc},
224 singleton{false, "ninjadeps", ninjaDepsSingletonFactory},