1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! SFC type checking functionality for Vue Single File Components.
//!
//! This module provides AST-based type analysis for Vue SFCs.
//! It leverages croquis for semantic analysis and scope tracking.
//!
//! ## Features
//!
//! - Props type validation (defineProps)
//! - Emits type validation (defineEmits)
//! - Template binding validation (undefined references)
//! - Virtual TypeScript generation with scope-aware code
//!
//! ## Architecture
//!
//! ```text
//! Vue SFC (.vue)
//! |
//! v
//! +-------------------------------------+
//! | vize_atelier_sfc::parse_sfc |
//! +-------------------------------------+
//! |
//! v
//! +-------------------------------------+
//! | vize_croquis::Analyzer |
//! | - Script analysis (bindings) |
//! | - Template analysis (scopes) |
//! | - Macro tracking (defineProps) |
//! +-------------------------------------+
//! |
//! v
//! +-------------------------------------+
//! | type_check_sfc() |
//! | - check_props_typing() |
//! | - check_emits_typing() |
//! | - check_template_bindings() |
//! | - generate_virtual_ts_with_scopes()|
//! +-------------------------------------+
//! ```
pub use ;
pub use ;