ConstructorPattern represents: Ok(x), Err(e), Some(v), None, EnumName_Variant(x) CRITICAL: Supports nested patterns in Params
| 84 | // ConstructorPattern represents: Ok(x), Err(e), Some(v), None, EnumName_Variant(x) |
| 85 | // CRITICAL: Supports nested patterns in Params |
| 86 | type ConstructorPattern struct { |
| 87 | NamePos token.Pos // Position of constructor name |
| 88 | Name string // Constructor name (Ok, Err, Some, None, or qualified) |
| 89 | LParen token.Pos // Position of '(' (zero if no params) |
| 90 | Params []Pattern // CHANGED: Pattern instead of string (enables nesting!) |
| 91 | RParen token.Pos // Position of ')' (zero if no params) |
| 92 | } |
| 93 | |
| 94 | func (p *ConstructorPattern) PatternNode() {} |
| 95 | func (p *ConstructorPattern) Pos() token.Pos { |
nothing calls this directly
no outgoing calls
no test coverage detected