class documentation
class UnresolvedDeclaration(_Type):
Known subclasses: reven2.types._declaration.UnresolvedEnumeration
, reven2.types._declaration.UnresolvedStruct
Base class for an unresolved declaration of a named user-defined type.
Method | __init__ |
Initializes a new instance of this class from its name and its mangled name if available. |
Method | description |
The short description of this type. |
Method | parse |
Unconditionally returns None, as no instance of this type can exist. |
Method | size |
Always 0. |
Method | to |
Always raises. |
Property | mangled |
The mangled name of this declaration, if available. |
Property | name |
The name of this declaration. |
Method | _construct |
Return the underlying construct instance |
Method | _resolve |
Uses the resolver to return a resolved version of the type, if possible. |
Instance Variable | _mangled |
Undocumented |
Instance Variable | _name |
Undocumented |
Inherited from Type
:
Method | is |
Whether the context argument needed by some methods actually has an effect. |
def __init__(self, name, mangled_name):
overridden in
reven2.types._declaration.UnresolvedEnumeration
, reven2.types._declaration.UnresolvedStruct
Initializes a new instance of this class from its name and its mangled name if available.
Parameters | |
name:str | Undocumented |
mangled_Optional[ | Undocumented |
def description(self):
overrides
reven2.types._type.Type.description
The short description of this type.
For named types, it is the name of the type. For other types, it is generally __str__.
Returns | |
str | Undocumented |
def parse(self, buf, context=None):
overrides
reven2.types._type.Type.parse
Unconditionally returns None, as no instance of this type can exist.
Parameters | |
buf:bytes | Undocumented |
context | Undocumented |
def size_bytes(self, context=None):
overrides
reven2.types._type.Type.size_bytes
Always 0.
Returns | |
int | Undocumented |
def to_bytes(self, value, context=None):
overrides
reven2.types._type.Type.to_bytes
Always raises.
Information
Returns | |
_NoReturn | Undocumented |
Raises | |
RuntimeError | since no value of this type can exist, calling to_bytes with a value should be impossible. |
def _construct_type(self, context=None):
overrides
reven2.types._type.Type._construct_type
Return the underlying construct instance
def _resolve(self, resolver):
overrides
reven2.types._type.Type._resolve
Uses the resolver to return a resolved version of the type, if possible.
Parameters | |
resolver:_TypeResolver | Undocumented |
Returns | |
_Type | Undocumented |