Lines Matching refs:v

70 			if v, ok := mtDef.variables[varName]; ok {
71 moduleType.Variables = append(moduleType.Variables, v)
83 func processImportModuleDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
86 return processModuleTypeDef(v, def)
88 return processStringVariableDef(v, def)
90 return processBoolVariableDef(v, def)
125 func processModuleTypeDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
153 v.ModuleTypes[props.Name] = mt
167 func processStringVariableDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
185 v.variables[base.variable] = &stringVariable{
193 func processBoolVariableDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) {
199 v.variables[base.variable] = &boolVariable{
370 v := reflect.ValueOf(ps)
372 if !v.IsValid() {
376 if v.Kind() == reflect.Interface {
377 if v.IsNil() {
380 v = v.Elem()
384 if v.Kind() == reflect.Ptr {
385 if v.IsNil() {
386 v = reflect.Zero(v.Type().Elem())
388 v = v.Elem()
392 if v.Kind() != reflect.Struct {
400 v = v.FieldByName(proptools.FieldNameForProperty(prefix))
402 f := v.FieldByName(proptools.FieldNameForProperty(property))
488 initializeProperties(v reflect.Value, typ reflect.Type)
514 for _, v := range values {
516 Name: proptools.FieldNameForProperty(v),
526 func (s *stringVariable) initializeProperties(v reflect.Value, typ reflect.Type) {
528 v.Field(i).Set(reflect.Zero(typ))
530 v.Field(len(s.values)).Set(reflect.Zero(typ)) // conditions default is the final value
536 for j, v := range s.values {
538 if config.String(s.variable) == v && !f.Elem().IsNil() {
568 func (b boolVariable) initializeProperties(v reflect.Value, typ reflect.Type) {
569 initializePropertiesWithDefault(v, typ)
576 func initializePropertiesWithDefault(v reflect.Value, typ reflect.Type) {
591 v.Set(reflect.Zero(newTyp))
596 func conditionsDefaultField(v reflect.Value) reflect.Value {
597 return v.Field(v.NumField() - 1)
603 v := values.Elem().Elem()
604 s := conditionsDefaultField(v)
607 return v
615 val := v.Field(i)
634 v := values.Elem().Elem()
635 if f := conditionsDefaultField(v); f.IsValid() {
652 func (s *valueVariable) initializeProperties(v reflect.Value, typ reflect.Type) {
653 initializePropertiesWithDefault(v, typ)
728 func CanonicalizeToProperty(v string) string {
739 }, v)
744 for i, v := range values {
745 ret[i] = CanonicalizeToProperty(v)