Lines Matching refs:attrs

322 func (attrs *LabelListAttribute) Append(other LabelListAttribute) {
324 this := attrs.GetValueForArch(arch)
327 attrs.SetValueForArch(arch, this)
331 this := attrs.GetValueForOS(os)
334 attrs.SetValueForOS(os, this)
337 attrs.Value.Append(other.Value)
342 func (attrs LabelListAttribute) HasConfigurableValues() bool {
344 if len(attrs.GetValueForArch(arch).Includes) > 0 {
350 if len(attrs.GetValueForOS(os).Includes) > 0 {
357 func (attrs *LabelListAttribute) archValuePtrs() map[string]*LabelList {
359 ARCH_X86: &attrs.ArchValues.X86,
360 ARCH_X86_64: &attrs.ArchValues.X86_64,
361 ARCH_ARM: &attrs.ArchValues.Arm,
362 ARCH_ARM64: &attrs.ArchValues.Arm64,
363 CONDITIONS_DEFAULT: &attrs.ArchValues.ConditionsDefault,
368 func (attrs *LabelListAttribute) GetValueForArch(arch string) LabelList {
370 if v = attrs.archValuePtrs()[arch]; v == nil {
377 func (attrs *LabelListAttribute) SetValueForArch(arch string, value LabelList) {
379 if v = attrs.archValuePtrs()[arch]; v == nil {
385 func (attrs *LabelListAttribute) osValuePtrs() map[string]*LabelList {
387 OS_ANDROID: &attrs.OsValues.Android,
388 OS_DARWIN: &attrs.OsValues.Darwin,
389 OS_FUCHSIA: &attrs.OsValues.Fuchsia,
390 OS_LINUX: &attrs.OsValues.Linux,
391 OS_LINUX_BIONIC: &attrs.OsValues.LinuxBionic,
392 OS_WINDOWS: &attrs.OsValues.Windows,
393 CONDITIONS_DEFAULT: &attrs.OsValues.ConditionsDefault,
398 func (attrs *LabelListAttribute) GetValueForOS(os string) LabelList {
400 if v = attrs.osValuePtrs()[os]; v == nil {
407 func (attrs *LabelListAttribute) SetValueForOS(os string, value LabelList) {
409 if v = attrs.osValuePtrs()[os]; v == nil {
463 func (attrs StringListAttribute) HasConfigurableValues() bool {
465 if len(attrs.GetValueForArch(arch)) > 0 {
471 if len(attrs.GetValueForOS(os)) > 0 {
478 func (attrs *StringListAttribute) archValuePtrs() map[string]*[]string {
480 ARCH_X86: &attrs.ArchValues.X86,
481 ARCH_X86_64: &attrs.ArchValues.X86_64,
482 ARCH_ARM: &attrs.ArchValues.Arm,
483 ARCH_ARM64: &attrs.ArchValues.Arm64,
484 CONDITIONS_DEFAULT: &attrs.ArchValues.ConditionsDefault,
489 func (attrs *StringListAttribute) GetValueForArch(arch string) []string {
491 if v = attrs.archValuePtrs()[arch]; v == nil {
498 func (attrs *StringListAttribute) SetValueForArch(arch string, value []string) {
500 if v = attrs.archValuePtrs()[arch]; v == nil {
506 func (attrs *StringListAttribute) osValuePtrs() map[string]*[]string {
508 OS_ANDROID: &attrs.OsValues.Android,
509 OS_DARWIN: &attrs.OsValues.Darwin,
510 OS_FUCHSIA: &attrs.OsValues.Fuchsia,
511 OS_LINUX: &attrs.OsValues.Linux,
512 OS_LINUX_BIONIC: &attrs.OsValues.LinuxBionic,
513 OS_WINDOWS: &attrs.OsValues.Windows,
514 CONDITIONS_DEFAULT: &attrs.OsValues.ConditionsDefault,
519 func (attrs *StringListAttribute) GetValueForOS(os string) []string {
521 if v = attrs.osValuePtrs()[os]; v == nil {
528 func (attrs *StringListAttribute) SetValueForOS(os string, value []string) {
530 if v = attrs.osValuePtrs()[os]; v == nil {
538 func (attrs *StringListAttribute) Append(other StringListAttribute) {
540 this := attrs.GetValueForArch(arch)
543 attrs.SetValueForArch(arch, this)
547 this := attrs.GetValueForOS(os)
550 attrs.SetValueForOS(os, this)
553 attrs.Value = append(attrs.Value, other.Value...)