Module semantic

Source
Expand description

Pre-expansion semantic analysis helpers. Pre-expansion semantic analysis scaffolding for frontend programs.

Structsยง

BuilderBindingInfo
Runtime binding visible inside a typed expression builder.
MetaCallInfo
Staged semantic facts for a meta call expression.
MetaMatchInfo
Staged semantic facts for a meta match statement.
SemanticAnalyzer ๐Ÿ”’
StagedSemanticInfo
Pre-expansion semantic information keyed by stable frontend node ids.

Enumsยง

BuiltinMetaCallKind
Known builtin meta call categories.
MetaArgKind
Broad meta-value kind used for staged builtin argument expectations.
MetaPatternKind
Broad pattern category used by staged meta-match facts.
MetaType
Compile-time type/category associated with a meta expression.
ResolvedName
Resolved meaning of an identifier before expansion.
SemanticIssue
Pre-expansion semantic issue discovered before meta expansion.

Functionsยง

analyze_program
Analyze a parsed frontend program and collect reusable pre-expansion metadata.
converge_meta_types ๐Ÿ”’
format_meta_type ๐Ÿ”’
infer_meta_expr_type ๐Ÿ”’
infer_meta_expr_type_with_env_shallow ๐Ÿ”’
infer_meta_type_from_type_expr ๐Ÿ”’
infer_runtime_expr_type ๐Ÿ”’
iter_all_expr_types ๐Ÿ”’
looks_like_type_name ๐Ÿ”’
meta_call_info ๐Ÿ”’
meta_pattern_kind ๐Ÿ”’
meta_value_fits_type ๐Ÿ”’
resolve_meta_name ๐Ÿ”’
resolve_runtime_name ๐Ÿ”’