| 1 | // Code generated by 'yaegi extract encoding/xml'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "encoding/xml" |
| 10 | "go/constant" |
| 11 | "go/token" |
| 12 | "reflect" |
| 13 | ) |
| 14 | |
| 15 | func init() { |
| 16 | Symbols["encoding/xml/xml"] = map[string]reflect.Value{ |
| 17 | // function, constant and variable definitions |
| 18 | "CopyToken": reflect.ValueOf(xml.CopyToken), |
| 19 | "Escape": reflect.ValueOf(xml.Escape), |
| 20 | "EscapeText": reflect.ValueOf(xml.EscapeText), |
| 21 | "HTMLAutoClose": reflect.ValueOf(&xml.HTMLAutoClose).Elem(), |
| 22 | "HTMLEntity": reflect.ValueOf(&xml.HTMLEntity).Elem(), |
| 23 | "Header": reflect.ValueOf(constant.MakeFromLiteral("\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\"", token.STRING, 0)), |
| 24 | "Marshal": reflect.ValueOf(xml.Marshal), |
| 25 | "MarshalIndent": reflect.ValueOf(xml.MarshalIndent), |
| 26 | "NewDecoder": reflect.ValueOf(xml.NewDecoder), |
| 27 | "NewEncoder": reflect.ValueOf(xml.NewEncoder), |
| 28 | "NewTokenDecoder": reflect.ValueOf(xml.NewTokenDecoder), |
| 29 | "Unmarshal": reflect.ValueOf(xml.Unmarshal), |
| 30 | |
| 31 | // type definitions |
| 32 | "Attr": reflect.ValueOf((*xml.Attr)(nil)), |
| 33 | "CharData": reflect.ValueOf((*xml.CharData)(nil)), |
| 34 | "Comment": reflect.ValueOf((*xml.Comment)(nil)), |
| 35 | "Decoder": reflect.ValueOf((*xml.Decoder)(nil)), |
| 36 | "Directive": reflect.ValueOf((*xml.Directive)(nil)), |
| 37 | "Encoder": reflect.ValueOf((*xml.Encoder)(nil)), |
| 38 | "EndElement": reflect.ValueOf((*xml.EndElement)(nil)), |
| 39 | "Marshaler": reflect.ValueOf((*xml.Marshaler)(nil)), |
| 40 | "MarshalerAttr": reflect.ValueOf((*xml.MarshalerAttr)(nil)), |
| 41 | "Name": reflect.ValueOf((*xml.Name)(nil)), |
| 42 | "ProcInst": reflect.ValueOf((*xml.ProcInst)(nil)), |
| 43 | "StartElement": reflect.ValueOf((*xml.StartElement)(nil)), |
| 44 | "SyntaxError": reflect.ValueOf((*xml.SyntaxError)(nil)), |
| 45 | "TagPathError": reflect.ValueOf((*xml.TagPathError)(nil)), |
| 46 | "Token": reflect.ValueOf((*xml.Token)(nil)), |
| 47 | "TokenReader": reflect.ValueOf((*xml.TokenReader)(nil)), |
| 48 | "UnmarshalError": reflect.ValueOf((*xml.UnmarshalError)(nil)), |
| 49 | "Unmarshaler": reflect.ValueOf((*xml.Unmarshaler)(nil)), |
| 50 | "UnmarshalerAttr": reflect.ValueOf((*xml.UnmarshalerAttr)(nil)), |
| 51 | "UnsupportedTypeError": reflect.ValueOf((*xml.UnsupportedTypeError)(nil)), |
| 52 | |
| 53 | // interface wrapper definitions |
| 54 | "_Marshaler": reflect.ValueOf((*_encoding_xml_Marshaler)(nil)), |
| 55 | "_MarshalerAttr": reflect.ValueOf((*_encoding_xml_MarshalerAttr)(nil)), |
| 56 | "_Token": reflect.ValueOf((*_encoding_xml_Token)(nil)), |
| 57 | "_TokenReader": reflect.ValueOf((*_encoding_xml_TokenReader)(nil)), |
| 58 | "_Unmarshaler": reflect.ValueOf((*_encoding_xml_Unmarshaler)(nil)), |
| 59 | "_UnmarshalerAttr": reflect.ValueOf((*_encoding_xml_UnmarshalerAttr)(nil)), |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // _encoding_xml_Marshaler is an interface wrapper for Marshaler type |
| 64 | type _encoding_xml_Marshaler struct { |
| 65 | IValue interface{} |
| 66 | WMarshalXML func(e *xml.Encoder, start xml.StartElement) error |
| 67 | } |
| 68 | |
| 69 | func (W _encoding_xml_Marshaler) MarshalXML(e *xml.Encoder, start xml.StartElement) error { |
| 70 | return W.WMarshalXML(e, start) |
| 71 | } |
| 72 | |
| 73 | // _encoding_xml_MarshalerAttr is an interface wrapper for MarshalerAttr type |
| 74 | type _encoding_xml_MarshalerAttr struct { |
| 75 | IValue interface{} |
| 76 | WMarshalXMLAttr func(name xml.Name) (xml.Attr, error) |
| 77 | } |
| 78 | |
| 79 | func (W _encoding_xml_MarshalerAttr) MarshalXMLAttr(name xml.Name) (xml.Attr, error) { |
| 80 | return W.WMarshalXMLAttr(name) |
| 81 | } |
| 82 | |
| 83 | // _encoding_xml_Token is an interface wrapper for Token type |
| 84 | type _encoding_xml_Token struct { |
| 85 | IValue interface{} |
| 86 | } |
| 87 | |
| 88 | // _encoding_xml_TokenReader is an interface wrapper for TokenReader type |
| 89 | type _encoding_xml_TokenReader struct { |
| 90 | IValue interface{} |
| 91 | WToken func() (xml.Token, error) |
| 92 | } |
| 93 | |
| 94 | func (W _encoding_xml_TokenReader) Token() (xml.Token, error) { return W.WToken() } |
| 95 | |
| 96 | // _encoding_xml_Unmarshaler is an interface wrapper for Unmarshaler type |
| 97 | type _encoding_xml_Unmarshaler struct { |
| 98 | IValue interface{} |
| 99 | WUnmarshalXML func(d *xml.Decoder, start xml.StartElement) error |
| 100 | } |
| 101 | |
| 102 | func (W _encoding_xml_Unmarshaler) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { |
| 103 | return W.WUnmarshalXML(d, start) |
| 104 | } |
| 105 | |
| 106 | // _encoding_xml_UnmarshalerAttr is an interface wrapper for UnmarshalerAttr type |
| 107 | type _encoding_xml_UnmarshalerAttr struct { |
| 108 | IValue interface{} |
| 109 | WUnmarshalXMLAttr func(attr xml.Attr) error |
| 110 | } |
| 111 | |
| 112 | func (W _encoding_xml_UnmarshalerAttr) UnmarshalXMLAttr(attr xml.Attr) error { |
| 113 | return W.WUnmarshalXMLAttr(attr) |
| 114 | } |