API reference
python:irx:irx.analysis.collection_access.resolve_collection_access
function resolve_collection_access
Variant 1
resolve_collection_access(analyzer: SemanticAnalyzerCore, node: astx.MethodCall) -> bool
Resolve list append and dataframe metadata from the receiver type.
DataFrame nrows/ncols take no arguments, keywords, or template arguments and normalize to the canonical i64 count operations. Invalid signatures report a type mismatch at the call's source location; non-DataFrame receivers retain their ordinary method rules.
Parameters
-
analyzer — Semantic analyzer resolving the operation.; Type: SemanticAnalyzerCore
-
node — Syntax node to process.; Type: astx.MethodCall
Returns
Resolved list append and dataframe metadata from the receiver type.; Type: bool
Variant 2
resolve_collection_access(analyzer: SemanticAnalyzerCore, node: astx.FieldAccess) -> bool
Resolve dataframe field-style access without frontend type guesses.
Parameters
-
analyzer — Semantic analyzer resolving the operation.; Type: SemanticAnalyzerCore
-
node — Syntax node to process.; Type: astx.FieldAccess
Returns
Resolved dataframe field-style access without frontend type guesses.; Type: bool
Variant 3
resolve_collection_access(analyzer: SemanticAnalyzerCore, node: astx.SubscriptExpr) -> bool
Resolve dataframe string keys while preserving static-schema checks.
Parameters
-
analyzer — Semantic analyzer resolving the operation.; Type: SemanticAnalyzerCore
-
node — Syntax node to process.; Type: astx.SubscriptExpr
Returns
Resolved dataframe string keys while preserving static-schema checks.; Type: bool
Source: packages/irx/src/irx/analysis/collection_access.py:65