class
InstanceBodySymbolMethods
- def find(self, arg0: str, /) -> Symbol
- def findPort(self, portName: str) -> Symbol
- def hasSameType(self, other: InstanceBodySymbol) -> bool
- def isDeclaredBefore(self, target: Symbol) -> typing.Optional[bool]
- def isDeclaredBefore(self, location: LookupLocation) -> typing.Optional[bool]
- def lookupName(self, name: str, location: LookupLocation = ..., flags: LookupFlags = LookupFlags.None_) -> Symbol
- def visit(self, f: object) -> None
- Visit a pyslang object with a callback function `f`.
Special methods
- def __getitem__(self, arg0: int, /) -> object
- def __iter__(self, /) -> typing.Iterator[Symbol]
- def __len__(self, /) -> int
- def __repr__(self, /) -> str
Properties
- compilation: Compilation get
- compilationUnit get
- containingInstance get
- declaredType get
- declaringDefinition get
- defaultNetType get
- definition: DefinitionSymbol get
- hierarchicalPath: str get
- isProceduralContext: bool get
- isScope: bool get
- isType: bool get
- isUninstantiated: bool get
- isValue: bool get
- kind: SymbolKind get
- lexicalPath: str get
- location: SourceLocation get
- name: str get
- nextSibling: Symbol get
- parameters: span[ParameterSymbolBase] get
- parentInstance: InstanceSymbol get
- parentScope get
- portList: span[Symbol] get
- randMode: RandMode get
- sourceLibrary: SourceLibrary get
- syntax get
- timeScale: typing.Optional[TimeScale] get
Method documentation
def pyslang. InstanceBodySymbol. 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.