@@ -294,16 +294,6 @@ fn parse_ty_fn(proto: ast::proto, p: parser) -> ast::ty_ {
294
294
ret ast:: ty_fn ( proto, inputs. node , ret_ty, ret_style, constrs) ;
295
295
}
296
296
297
- fn parse_method_proto ( p : parser ) -> ast:: proto {
298
- if eat_word ( p, "iter" ) {
299
- ret ast:: proto_iter;
300
- } else if eat_word ( p, "fn" ) {
301
- ret ast:: proto_fn;
302
- } else if eat_word ( p, "block" ) {
303
- ret ast:: proto_block;
304
- } else { unexpected ( p, p. peek ( ) ) ; }
305
- }
306
-
307
297
fn parse_ty_obj ( p : parser , & hi: uint ) -> ast:: ty_ {
308
298
fn parse_method_sig ( p : parser ) -> ast:: ty_method {
309
299
let flo = p. get_lo_pos ( ) ;
@@ -2179,6 +2169,14 @@ fn parse_fn_anon_proto(p: parser) -> ast::proto {
2179
2169
}
2180
2170
}
2181
2171
2172
+ fn parse_method_proto ( p : parser ) -> ast:: proto {
2173
+ if eat_word ( p, "iter" ) {
2174
+ ret ast:: proto_iter;
2175
+ } else if eat_word ( p, "fn" ) {
2176
+ ret ast:: proto_bare;
2177
+ } else { unexpected ( p, p. peek ( ) ) ; }
2178
+ }
2179
+
2182
2180
fn parse_item ( p : parser , attrs : [ ast:: attribute ] ) -> option:: t < @ast:: item > {
2183
2181
if eat_word ( p, "const" ) {
2184
2182
ret some ( parse_item_const ( p, attrs) ) ;
0 commit comments