pyslang.VoidType class

Static methods

def getCommonBase(left: Type, right: Type) -> Type

Methods

def coerceValue(self, value: ConstantValue) -> ConstantValue
def implements(self, rhs: Type) -> bool
def isAssignmentCompatible(self, rhs: Type) -> bool
def isBitstreamCastable(self, rhs: Type) -> bool
def isBitstreamType(self, destination: bool = False) -> bool
def isCastCompatible(self, rhs: Type) -> bool
def isDeclaredBefore(self, target: Symbol) -> typing.Optional[bool]
def isDeclaredBefore(self, location: LookupLocation) -> typing.Optional[bool]
def isDerivedFrom(self, rhs: Type) -> bool
def isEquivalent(self, rhs: Type) -> bool
def isMatching(self, rhs: Type) -> bool
def isValidForRand(self, mode: RandMode, languageVersion: LanguageVersion) -> bool
def makeSigned(self, compilation: Compilation) -> Type
def makeUnsigned(self, compilation: Compilation) -> Type
def visit(self, f: object) -> None
Visit a pyslang object with a callback function `f`.

Special methods

def __repr__(self, /) -> str

Properties

arrayElementType: Type get
associativeIndexType: Type get
bitWidth: int get
bitstreamWidth: int get
canBeStringLike: bool get
canonicalType: Type get
declaredType get
declaringDefinition get
defaultValue: ConstantValue get
fixedRange: ConstantRange get
hasFixedRange: bool get
hierarchicalPath: str get
integralFlags: IntegralFlags get
isAggregate: bool get
isAlias: bool get
isArray: bool get
isAssociativeArray: bool get
isBooleanConvertible: bool get
isByteArray: bool get
isCHandle: bool get
isClass: bool get
isCovergroup: bool get
isDynamicallySizedArray: bool get
isEnum: bool get
isError: bool get
isEvent: bool get
isFixedSize: bool get
isFloating: bool get
isFourState: bool get
isHandleType: bool get
isIntegral: bool get
isIterable: bool get
isNull: bool get
isNumeric: bool get
isPackedArray: bool get
isPackedUnion: bool get
isPredefinedInteger: bool get
isPropertyType: bool get
isQueue: bool get
isScalar: bool get
isScope: bool get
isSequenceType: bool get
isSigned: bool get
isSimpleBitVector: bool get
isSimpleType: bool get
isSingular: bool get
isString: bool get
isStruct: bool get
isTaggedUnion: bool get
isType: bool get
isTypeRefType: bool get
isUnbounded: bool get
isUnpackedArray: bool get
isUnpackedStruct: bool get
isUnpackedUnion: bool get
isUntypedType: bool get
isValidForDPIArg: bool get
isValidForDPIReturn: bool get
isValidForSequence: bool get
isValue: bool get
isVirtualInterface: bool get
isVoid: bool get
kind: SymbolKind get
lexicalPath: str get
location: SourceLocation get
name: str get
nextSibling: Symbol get
parentScope get
randMode: RandMode get
selectableWidth: int get
sourceLibrary: SourceLibrary get
syntax get

Method documentation

def pyslang.VoidType.visit(self, f: object) -> None

Visit a pyslang object with a callback function `f`.

The callback function `f` should take a single argument, which is the current node being visited.

The return value of `f` determines the next node to visit. If `f` ever returns `pyslang.VisitAction.Interrupt`, the visit is aborted and no additional nodes are visited. If `f` returns `pyslang.VisitAction.Skip`, then no child nodes of the current node are visited. For any other return value, including `pyslang.VisitAction.Advance`, the return value is ignored, and the walk continues.