dillon1000/react

Commit

[rust][sema] Allow defining/resolving known globals

Adds an option to pass a list of known globals into the semantic analyzer so 
that references to globals can be checked. As a follow-up we'll need to 
distinguish between different types of semantic analysis errors, so that callers 
which don't want to validate globals can ignore "unknown variable" reference 
errors while still handling definite errors such as duplicate declarations.
Browse files
Changed paths15 files
First-parent comparison
M compiler/forget/crates/forget_fixtures/tests/fixtures_test.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/analyzer.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/lib.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/scope_manager.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/scope_view.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/analysis_test.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] Modified
Patch

Files changed

Rendering syntax-highlighted changes…