class documentation

class UnresolvedStruct(UnresolvedDeclaration):

View In Hierarchy

Struct that could not be resolved, such as a forward declaration or a Zero-Sized-Type without any method or field.

Method __eq__ Compares the instance for equality with an object.
Method __hash__ Returns the hash for this value.
Method __init__ Initializes a new instance of this class from its kind (struct, class, union), name and mangled name if available.
Method __ne__ Compares the instance for equality with an object.
Method __str__ Returns the nicely printable string representation of this instance.
Property kind The kind of this struct.
Instance Variable _kind Undocumented

Inherited from UnresolvedDeclaration:

Method description The short description of this type.
Method parse Unconditionally returns None, as no instance of this type can exist.
Method size_bytes Always 0.
Method to_bytes Always raises.
Property mangled_name The mangled name of this declaration, if available.
Property name The name of this declaration.
Method _construct_type Return the underlying construct instance
Method _resolve Uses the resolver to return a resolved version of the type, if possible.
Instance Variable _mangled_name Undocumented
Instance Variable _name Undocumented

Inherited from Type (via UnresolvedDeclaration):

Method is_context_sensitive Whether the context argument needed by some methods actually has an effect.
def __eq__(self, o):

Compares the instance for equality with an object.

  • if the object is not an UnresolvedStruct, it will never be equal to this instance.
  • otherwise, all UnresolvedStruct with the same name, kind and mangled name are considered equal.
Parameters
o:objectUndocumented
Returns
boolUndocumented
def __hash__(self):

Returns the hash for this value.

Returns
intUndocumented
def __init__(self, kind, name, mangled_name):

Initializes a new instance of this class from its kind (struct, class, union), name and mangled name if available.

Parameters
kind:StructKindUndocumented
name:strUndocumented
mangled_name:_Optional[str]Undocumented
def __ne__(self, o):

Compares the instance for equality with an object.

  • if the object is not an UnresolvedStruct, it will never be equal to this instance.
  • otherwise, all UnresolvedStruct with the same name, kind and mangled name are considered equal.
Parameters
o:objectUndocumented
Returns
boolUndocumented
def __str__(self):

Returns the nicely printable string representation of this instance.

Returns
strUndocumented
@property
kind: StructKind =

The kind of this struct.

_kind =

Undocumented