Home
last modified time | relevance | path

Searched refs:named_value (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dconstant_resolver.py14 def GetResolvedValue(named_value): argument
15 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_value
29 return named_value.resolved_value
/external/libchrome/mojo/public/tools/bindings/generators/
Dmojom_java_generator.py319 def _TranslateNamedValue(named_value): argument
320 entity_name = GetNameForElement(named_value)
321 if named_value.parent_kind:
322 return GetJavaType(context, named_value.parent_kind) + '.' + entity_name
324 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