-
Notifications
You must be signed in to change notification settings - Fork 346
/
go1_16_encoding_xml.go
113 lines (96 loc) · 4.48 KB
/
go1_16_encoding_xml.go
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Code generated by 'yaegi extract encoding/xml'. DO NOT EDIT.
// +build go1.16,!go1.17
package stdlib
import (
"encoding/xml"
"go/constant"
"go/token"
"reflect"
)
func init() {
Symbols["encoding/xml/xml"] = map[string]reflect.Value{
// function, constant and variable definitions
"CopyToken": reflect.ValueOf(xml.CopyToken),
"Escape": reflect.ValueOf(xml.Escape),
"EscapeText": reflect.ValueOf(xml.EscapeText),
"HTMLAutoClose": reflect.ValueOf(&xml.HTMLAutoClose).Elem(),
"HTMLEntity": reflect.ValueOf(&xml.HTMLEntity).Elem(),
"Header": reflect.ValueOf(constant.MakeFromLiteral("\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\"", token.STRING, 0)),
"Marshal": reflect.ValueOf(xml.Marshal),
"MarshalIndent": reflect.ValueOf(xml.MarshalIndent),
"NewDecoder": reflect.ValueOf(xml.NewDecoder),
"NewEncoder": reflect.ValueOf(xml.NewEncoder),
"NewTokenDecoder": reflect.ValueOf(xml.NewTokenDecoder),
"Unmarshal": reflect.ValueOf(xml.Unmarshal),
// type definitions
"Attr": reflect.ValueOf((*xml.Attr)(nil)),
"CharData": reflect.ValueOf((*xml.CharData)(nil)),
"Comment": reflect.ValueOf((*xml.Comment)(nil)),
"Decoder": reflect.ValueOf((*xml.Decoder)(nil)),
"Directive": reflect.ValueOf((*xml.Directive)(nil)),
"Encoder": reflect.ValueOf((*xml.Encoder)(nil)),
"EndElement": reflect.ValueOf((*xml.EndElement)(nil)),
"Marshaler": reflect.ValueOf((*xml.Marshaler)(nil)),
"MarshalerAttr": reflect.ValueOf((*xml.MarshalerAttr)(nil)),
"Name": reflect.ValueOf((*xml.Name)(nil)),
"ProcInst": reflect.ValueOf((*xml.ProcInst)(nil)),
"StartElement": reflect.ValueOf((*xml.StartElement)(nil)),
"SyntaxError": reflect.ValueOf((*xml.SyntaxError)(nil)),
"TagPathError": reflect.ValueOf((*xml.TagPathError)(nil)),
"Token": reflect.ValueOf((*xml.Token)(nil)),
"TokenReader": reflect.ValueOf((*xml.TokenReader)(nil)),
"UnmarshalError": reflect.ValueOf((*xml.UnmarshalError)(nil)),
"Unmarshaler": reflect.ValueOf((*xml.Unmarshaler)(nil)),
"UnmarshalerAttr": reflect.ValueOf((*xml.UnmarshalerAttr)(nil)),
"UnsupportedTypeError": reflect.ValueOf((*xml.UnsupportedTypeError)(nil)),
// interface wrapper definitions
"_Marshaler": reflect.ValueOf((*_encoding_xml_Marshaler)(nil)),
"_MarshalerAttr": reflect.ValueOf((*_encoding_xml_MarshalerAttr)(nil)),
"_Token": reflect.ValueOf((*_encoding_xml_Token)(nil)),
"_TokenReader": reflect.ValueOf((*_encoding_xml_TokenReader)(nil)),
"_Unmarshaler": reflect.ValueOf((*_encoding_xml_Unmarshaler)(nil)),
"_UnmarshalerAttr": reflect.ValueOf((*_encoding_xml_UnmarshalerAttr)(nil)),
}
}
// _encoding_xml_Marshaler is an interface wrapper for Marshaler type
type _encoding_xml_Marshaler struct {
IValue interface{}
WMarshalXML func(e *xml.Encoder, start xml.StartElement) error
}
func (W _encoding_xml_Marshaler) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
return W.WMarshalXML(e, start)
}
// _encoding_xml_MarshalerAttr is an interface wrapper for MarshalerAttr type
type _encoding_xml_MarshalerAttr struct {
IValue interface{}
WMarshalXMLAttr func(name xml.Name) (xml.Attr, error)
}
func (W _encoding_xml_MarshalerAttr) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
return W.WMarshalXMLAttr(name)
}
// _encoding_xml_Token is an interface wrapper for Token type
type _encoding_xml_Token struct {
IValue interface{}
}
// _encoding_xml_TokenReader is an interface wrapper for TokenReader type
type _encoding_xml_TokenReader struct {
IValue interface{}
WToken func() (xml.Token, error)
}
func (W _encoding_xml_TokenReader) Token() (xml.Token, error) { return W.WToken() }
// _encoding_xml_Unmarshaler is an interface wrapper for Unmarshaler type
type _encoding_xml_Unmarshaler struct {
IValue interface{}
WUnmarshalXML func(d *xml.Decoder, start xml.StartElement) error
}
func (W _encoding_xml_Unmarshaler) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
return W.WUnmarshalXML(d, start)
}
// _encoding_xml_UnmarshalerAttr is an interface wrapper for UnmarshalerAttr type
type _encoding_xml_UnmarshalerAttr struct {
IValue interface{}
WUnmarshalXMLAttr func(attr xml.Attr) error
}
func (W _encoding_xml_UnmarshalerAttr) UnmarshalXMLAttr(attr xml.Attr) error {
return W.WUnmarshalXMLAttr(attr)
}