pyslang.CoverageBinSymbol class

Classes

class TransRangeList

Enums

class BinKind: Bins = 0 IllegalBins = 1 IgnoreBins = 2
Members:

Methods

def isDeclaredBefore(self, target: Symbol) -> typing.Optional[bool]
def isDeclaredBefore(self, location: LookupLocation) -> typing.Optional[bool]
def visit(self, f: object) -> None
Visit a pyslang object with a callback function `f`.

Special methods

def __repr__(self, /) -> str

Properties

binsKind get
crossSelectExpr: BinsSelectExpr get
declaredType get
declaringDefinition get
hierarchicalPath: str get
iffExpr: Expression get
isArray: bool get
isDefault: bool get
isDefaultSequence: bool get
isScope: bool get
isType: bool get
isValue: bool get
isWildcard: bool get
kind: SymbolKind get
lexicalPath: str get
location: SourceLocation get
name: str get
nextSibling: Symbol get
numberOfBinsExpr: Expression get
parentScope get
randMode: RandMode get
setCoverageExpr: Expression get
sourceLibrary: SourceLibrary get
syntax get
values: span[Expression] get
withExpr: Expression get

Data

Bins = BinKind.Bins
IgnoreBins = BinKind.IgnoreBins
IllegalBins = BinKind.IllegalBins

Method documentation

def pyslang.CoverageBinSymbol.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.