Lines Matching refs:l
64 func (l *loadHookContext) moduleFactories() map[string]blueprint.ModuleFactory {
65 return l.bp.ModuleFactories()
68 func (l *loadHookContext) AppendProperties(props ...interface{}) {
70 err := proptools.AppendMatchingProperties(l.Module().base().customizableProperties,
74 l.PropertyErrorf(propertyErr.Property, "%s", propertyErr.Err.Error())
82 func (l *loadHookContext) PrependProperties(props ...interface{}) {
84 err := proptools.PrependMatchingProperties(l.Module().base().customizableProperties,
88 l.PropertyErrorf(propertyErr.Property, "%s", propertyErr.Err.Error())
96 func (l *loadHookContext) CreateModule(factory ModuleFactory, props ...interface{}) Module {
97 inherited := []interface{}{&l.Module().base().commonProperties}
98 module := l.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
100 if l.Module().base().variableProperties != nil && module.base().variableProperties != nil {
101 src := l.Module().base().variableProperties
117 func (l *loadHookContext) registerScopedModuleType(name string, factory blueprint.ModuleFactory) {
118 l.bp.RegisterScopedModuleType(name, factory)