Searched refs:named_value (Results 1 – 2 of 2) sorted by relevance
14 def GetResolvedValue(named_value): argument15 assert isinstance(named_value, (mojom.EnumValue, mojom.ConstantValue))16 if isinstance(named_value, mojom.EnumValue):17 field = next(ifilter(lambda field: field.name == named_value.name,18 named_value.enum.fields), None)22 (named_value.name, named_value.enum.name))24 ResolveEnum(named_value.enum)27 ResolveConstant(named_value.constant)28 named_value.resolved_value = named_value.constant.resolved_value29 return named_value.resolved_value
319 def _TranslateNamedValue(named_value): argument320 entity_name = GetNameForElement(named_value)321 if named_value.parent_kind:322 return GetJavaType(context, named_value.parent_kind) + '.' + entity_name324 if not isinstance(named_value, mojom.EnumValue):325 entity_name = (GetConstantsMainEntityName(named_value.module) + '.' +327 if GetPackage(named_value.module) == GetPackage(context.resolve('module')):329 return GetPackage(named_value.module) + '.' + entity_name