StructFieldPattern represents struct field pattern: {x, y: newName} Used in struct destructuring
| 138 | // StructFieldPattern represents struct field pattern: {x, y: newName} |
| 139 | // Used in struct destructuring |
| 140 | type StructFieldPattern struct { |
| 141 | Field string // Field name |
| 142 | FieldPos token.Pos // Position of field name |
| 143 | Colon token.Pos // Position of ':' (zero if shorthand) |
| 144 | Pattern Pattern // Pattern for field value (nil if shorthand) |
| 145 | } |
| 146 | |
| 147 | func (p *StructFieldPattern) PatternNode() {} |
| 148 | func (p *StructFieldPattern) Pos() token.Pos { |
nothing calls this directly
no outgoing calls
no test coverage detected