Home
last modified time | relevance | path

Searched refs:vartype (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython3/Tools/c-analyzer/cpython/
Dsupported.py103 elif _vartype_okay(variable.vartype,
126 if variable.vartype.startswith('static state '):
129 if variable.vartype.startswith('static identifier '):
196 def _is_vartype_okay(vartype, ignoredtypes=None): argument
197 if _is_object(vartype):
200 if vartype.startswith('static const '):
202 if vartype.startswith('const '):
207 if name in vartype:
211 if name in vartype:
214 if name in vartype:
[all …]
Dfind.py95 elif var.vartype == UNKNOWN:
98 elif skip_objects and _is_object(found.vartype):
D_generate.py296 yield _as_known(found.id, found.vartype)
307 if variable.vartype== UNKNOWN:
309 yield _as_known(variable.id, variable.vartype)
/external/python/cpython3/Tools/c-analyzer/c_analyzer/parser/
Ddeclarations.py225 vartype = m.group(0)
226 name = stmt[len(vartype):].partition('=')[0].strip()
233 vartype = f'{vartype} ({inside.strip()}){after}'
237 vartype = f'{vartype} {before}'
239 vartype = vartype.strip()
240 while ' ' in vartype:
241 vartype = vartype.replace(' ', ' ')
243 return name, vartype
290 name, vartype = _parse_var(stmt)
292 yield (None, name, vartype)
[all …]
/external/python/cpython3/Tools/c-analyzer/c_analyzer/variables/
Dinfo.py7 def normalize_vartype(vartype): argument
10 if vartype is None:
15 return str(vartype)
48 def __new__(cls, id, storage, vartype): argument
53 vartype=normalize_vartype(vartype) if vartype else None,
84 if self.vartype is None or self.vartype == UNKNOWN:
93 return 'const' in self.vartype.split()
/external/python/cpython3/Lib/test/test_tools/test_c_analyzer/test_variables/
Dtest_info.py23 for vartype, expected in tests:
24 with self.subTest(vartype):
25 normalized = normalize_vartype(vartype)
50 vartype='int',
69 vartype='int',
84 vartype=value,
104 vartype=PseudoStr('int'),
114 vartype=Object(),
124 vartype=StrProxy('variable'),
134 vartype=('x', 'y', 'z'),
[all …]
Dtest_known.py95 self._return_read_file = [('variable', v.id, v.vartype)
122 *[('_handle_var', (v.id, v.vartype))
/external/autotest/tko/
Djob_serializer.py422 def set_attr_safely(self, var, attr, value, vartype): argument
439 if vartype in supported_types:
441 value = vartype()
442 elif not isinstance(value, vartype):
444 type(value), attr, vartype)
446 setattr(var, attr, vartype(value))
/external/python/cpython3/Lib/test/test_tools/test_c_analyzer/test_parser/
Dtest_declarations.py518 name, vartype = _parse_var(stmt)
520 self.assertEqual((name, vartype), expected)
/external/rust/crates/half/src/binary16/
Dconvert.rs4 (fn $name:ident($var:ident : $vartype:ty) -> $restype:ty {
8 pub(crate) fn $name($var: $vartype) -> $restype {
/external/python/cpython3/Lib/idlelib/
Deditor.py1202 def setvar(self, name, value, vartype=None): argument
1203 var = self.get_var_obj(name, vartype)
1209 def get_var_obj(self, name, vartype=None): argument
1211 if not var and vartype:
1213 self.tkinter_vars[name] = var = vartype(self.text)
/external/python/cpython2/Lib/idlelib/
DEditorWindow.py1127 def setvar(self, name, value, vartype=None): argument
1128 var = self.get_var_obj(name, vartype)
1134 def get_var_obj(self, name, vartype=None): argument
1136 if not var and vartype:
1138 self.tkinter_vars[name] = var = vartype(self.text)
/external/python/setuptools/pkg_resources/
D__init__.py127 def _declare_state(vartype, **kw): argument
129 _state_vars.update(dict.fromkeys(kw, vartype))