• Home
  • Raw
  • Download

Lines Matching refs:decl

125     for decl in decls:
126 if not decl.data:
129 yield decl
132 def analyze_resolved(resolved, decl, types, knowntypes, extra=None): argument
133 if decl.kind not in KINDS:
139 if decl.kind in (KIND.STRUCT, KIND.UNION):
140 typedeps = [typedeps] * len(decl.members)
148 raise NotImplementedError((decl, extra))
150 unsupported = _check_unsupported(decl, typedeps, types, knowntypes)
156 def _check_unsupported(decl, typedeps, types, knowntypes): argument
158 raise NotImplementedError(decl)
160 if decl.kind in (KIND.STRUCT, KIND.UNION):
161 return _check_members(decl, typedeps, types, knowntypes)
162 elif decl.kind is KIND.ENUM:
164 raise NotImplementedError((decl, typedeps))
167 return _check_typedep(decl, typedeps, types, knowntypes)
170 def _check_members(decl, typedeps, types, knowntypes): argument
172 raise NotImplementedError((decl, typedeps))
175 members = decl.members
178 raise NotImplementedError(decl)
180 raise NotImplementedError((decl, typedeps))
194 def _check_typedep(decl, typedecl, types, knowntypes): argument
206 raise NotImplementedError((decl, typedecl))
208 if isinstance(decl, Member):
209 return _check_vartype(decl, typedecl, types, knowntypes)
210 elif not isinstance(decl, Declaration):
211 raise NotImplementedError(decl)
212 elif decl.kind is KIND.TYPEDEF:
213 return _check_vartype(decl, typedecl, types, knowntypes)
214 elif decl.kind is KIND.VARIABLE:
215 if not is_process_global(decl):
217 checked = _check_vartype(decl, typedecl, types, knowntypes)
220 raise NotImplementedError(decl)
223 def _check_vartype(decl, typedecl, types, knowntypes): argument
225 checked = _check_typespec(decl, typedecl, types, knowntypes)
228 if is_immutable(decl.vartype):
230 if is_fixed_type(decl.vartype):
235 def _check_typespec(decl, typedecl, types, knowntypes): argument
236 typespec = decl.vartype.typespec
256 elif is_funcptr(decl.vartype):