Home
last modified time | relevance | path

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

/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dtranslate_unittest.py34 self.assertEquals(translate._MapKind("int32[]"), "a:i32")
39 self.assertEquals(translate._MapKind("uint8{string}"), "m[s][u8]")
45 self.assertEquals(translate._MapKind("uint8[]{string}"), "m[s][a:u8]")
73 self.assertEquals(translate._MapKind("asso<SomeInterface>?"),
75 self.assertEquals(translate._MapKind("asso<SomeInterface&>?"),
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dtranslate.py50 def _MapKind(kind): function
69 base_kind = _MapKind(kind[0:-1])
80 return 'm[' + _MapKind(kind[lbracket+1:-1]) + '][' + _MapKind(value) + ']'
84 return 'a' + kind[lbracket+1:-1] + ':' + _MapKind(typename)
86 return 'r:' + _MapKind(kind[0:-1])
89 return 'asso:' + _MapKind(kind[5:-1])
313 module.kinds, _MapKind(parsed_field.typename),
335 module.kinds, _MapKind(parsed_field.typename),
356 module.kinds, _MapKind(parsed_param.typename),
539 constant.kind = _Kind(module.kinds, _MapKind(parsed_const.typename), scope)