|
Zen-C
|
#include <typecheck.h>

Data Fields | |
| ParserContext * | pctx |
| Reference to global parser context (for lookups). | |
| Scope * | current_scope |
| Current lexical scope during traversal. | |
| ASTNode * | current_func |
| Current function being checked (for return type checks). | |
| int | error_count |
| Number of type errors found. | |
| int | warning_count |
Type Checker Context.
Holds the state during the semantic analysis pass. Unlike the parser, this focuses on semantic validity (types, definitions, correctness).
| ASTNode* TypeChecker::current_func |
Current function being checked (for return type checks).
| Scope* TypeChecker::current_scope |
Current lexical scope during traversal.
| int TypeChecker::error_count |
Number of type errors found.
| ParserContext* TypeChecker::pctx |
Reference to global parser context (for lookups).
| int TypeChecker::warning_count |