@@ -13,9 +13,11 @@ module Bufio {
13
13
FunctionModels ( ) {
14
14
// signature: func NewReadWriter(r *Reader, w *Writer) *ReadWriter
15
15
hasQualifiedName ( "bufio" , "NewReadWriter" ) and
16
- ( inp .isParameter ( 0 ) and outp .isResult ( ) )
17
- or
18
- inp .isResult ( ) and outp .isParameter ( 1 )
16
+ (
17
+ inp .isParameter ( 0 ) and outp .isResult ( )
18
+ or
19
+ inp .isResult ( ) and outp .isParameter ( 1 )
20
+ )
19
21
or
20
22
// signature: func NewReader(rd io.Reader) *Reader
21
23
hasQualifiedName ( "bufio" , "NewReader" ) and
@@ -64,73 +66,72 @@ module Bufio {
64
66
FunctionOutput outp ;
65
67
66
68
MethodModels ( ) {
67
- // Methods:
68
69
// signature: func (*Reader).Peek(n int) ([]byte, error)
69
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "Peek" ) and
70
+ this .hasQualifiedName ( "bufio" , "Reader" , "Peek" ) and
70
71
( inp .isReceiver ( ) and outp .isResult ( 0 ) )
71
72
or
72
73
// signature: func (*Reader).ReadByte() (byte, error)
73
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "ReadByte" ) and
74
+ this .hasQualifiedName ( "bufio" , "Reader" , "ReadByte" ) and
74
75
( inp .isReceiver ( ) and outp .isResult ( 0 ) )
75
76
or
76
77
// signature: func (*Reader).ReadBytes(delim byte) ([]byte, error)
77
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "ReadBytes" ) and
78
+ this .hasQualifiedName ( "bufio" , "Reader" , "ReadBytes" ) and
78
79
( inp .isReceiver ( ) and outp .isResult ( 0 ) )
79
80
or
80
81
// signature: func (*Reader).ReadLine() (line []byte, isPrefix bool, err error)
81
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "ReadLine" ) and
82
+ this .hasQualifiedName ( "bufio" , "Reader" , "ReadLine" ) and
82
83
( inp .isReceiver ( ) and outp .isResult ( 0 ) )
83
84
or
84
85
// signature: func (*Reader).ReadRune() (r rune, size int, err error)
85
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "ReadRune" ) and
86
+ this .hasQualifiedName ( "bufio" , "Reader" , "ReadRune" ) and
86
87
( inp .isReceiver ( ) and outp .isResult ( 0 ) )
87
88
or
88
89
// signature: func (*Reader).ReadSlice(delim byte) (line []byte, err error)
89
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "ReadSlice" ) and
90
+ this .hasQualifiedName ( "bufio" , "Reader" , "ReadSlice" ) and
90
91
( inp .isReceiver ( ) and outp .isResult ( 0 ) )
91
92
or
92
93
// signature: func (*Reader).ReadString(delim byte) (string, error)
93
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "ReadString" ) and
94
+ this .hasQualifiedName ( "bufio" , "Reader" , "ReadString" ) and
94
95
( inp .isReceiver ( ) and outp .isResult ( 0 ) )
95
96
or
96
97
// signature: func (*Reader).Reset(r io.Reader)
97
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "Reset" ) and
98
+ this .hasQualifiedName ( "bufio" , "Reader" , "Reset" ) and
98
99
( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
99
100
or
100
101
// signature: func (*Reader).WriteTo(w io.Writer) (n int64, err error)
101
- this .( Method ) . hasQualifiedName ( "bufio" , "Reader" , "WriteTo" ) and
102
+ this .hasQualifiedName ( "bufio" , "Reader" , "WriteTo" ) and
102
103
( inp .isReceiver ( ) and outp .isParameter ( 0 ) )
103
104
or
104
105
// signature: func (*Scanner).Bytes() []byte
105
- this .( Method ) . hasQualifiedName ( "bufio" , "Scanner" , "Bytes" ) and
106
+ this .hasQualifiedName ( "bufio" , "Scanner" , "Bytes" ) and
106
107
( inp .isReceiver ( ) and outp .isResult ( ) )
107
108
or
108
109
// signature: func (*Scanner).Text() string
109
- this .( Method ) . hasQualifiedName ( "bufio" , "Scanner" , "Text" ) and
110
+ this .hasQualifiedName ( "bufio" , "Scanner" , "Text" ) and
110
111
( inp .isReceiver ( ) and outp .isResult ( ) )
111
112
or
112
113
// signature: func (*Writer).ReadFrom(r io.Reader) (n int64, err error)
113
- this .( Method ) . hasQualifiedName ( "bufio" , "Writer" , "ReadFrom" ) and
114
+ this .hasQualifiedName ( "bufio" , "Writer" , "ReadFrom" ) and
114
115
( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
115
116
or
116
117
// signature: func (*Writer).Reset(w io.Writer)
117
- this .( Method ) . hasQualifiedName ( "bufio" , "Writer" , "Reset" ) and
118
+ this .hasQualifiedName ( "bufio" , "Writer" , "Reset" ) and
118
119
( inp .isReceiver ( ) and outp .isParameter ( 0 ) )
119
120
or
120
121
// signature: func (*Writer).Write(p []byte) (nn int, err error)
121
- this .( Method ) . hasQualifiedName ( "bufio" , "Writer" , "Write" ) and
122
+ this .hasQualifiedName ( "bufio" , "Writer" , "Write" ) and
122
123
( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
123
124
or
124
125
// signature: func (*Writer).WriteByte(c byte) error
125
- this .( Method ) . hasQualifiedName ( "bufio" , "Writer" , "WriteByte" ) and
126
+ this .hasQualifiedName ( "bufio" , "Writer" , "WriteByte" ) and
126
127
( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
127
128
or
128
129
// signature: func (*Writer).WriteRune(r rune) (size int, err error)
129
- this .( Method ) . hasQualifiedName ( "bufio" , "Writer" , "WriteRune" ) and
130
+ this .hasQualifiedName ( "bufio" , "Writer" , "WriteRune" ) and
130
131
( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
131
132
or
132
133
// signature: func (*Writer).WriteString(s string) (int, error)
133
- this .( Method ) . hasQualifiedName ( "bufio" , "Writer" , "WriteString" ) and
134
+ this .hasQualifiedName ( "bufio" , "Writer" , "WriteString" ) and
134
135
( inp .isParameter ( 0 ) and outp .isReceiver ( ) )
135
136
}
136
137
0 commit comments