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