API reference
python:irx:irx.analysis.scopes.ScopeStack.declare
method declare
declare(symbol: SemanticSymbol) -> bool
Source: packages/irx/src/irx/analysis/scopes.py:85
Declare a symbol in the current scope.
Add one local symbol to the current scope, reporting whether the name was new there.
Parameters
- symbol — Resolved symbol for the operation.; Type: SemanticSymbol
Returns
Result of this operation: declare a symbol in the current scope.; Type: bool