@@ -42,17 +42,13 @@ tag def {
42
42
def_arg ( def_id) ;
43
43
def_local ( def_id) ;
44
44
def_variant ( def_id, /* tag */ def_id) ;
45
-
46
-
47
45
/* variant */
48
46
def_ty ( def_id) ;
49
47
def_ty_arg ( uint, kind) ;
50
48
def_binding ( def_id) ;
51
49
def_use ( def_id) ;
52
50
def_native_ty ( def_id) ;
53
51
def_native_fn ( def_id) ;
54
-
55
-
56
52
/* A "fake" def for upvars. This never appears in the def_map, but
57
53
* freevars::def_lookup will return it for a def that is an upvar.
58
54
* It contains the actual def. */
@@ -256,8 +252,6 @@ type stmt = spanned[stmt_];
256
252
tag stmt_ {
257
253
stmt_decl(@decl, node_id);
258
254
stmt_expr(@expr, node_id);
259
-
260
-
261
255
// These only exist in crate-level blocks.
262
256
stmt_crate_directive(@crate_directive);
263
257
}
@@ -314,7 +308,6 @@ tag expr_ {
314
308
expr_alt(@expr, [arm]);
315
309
expr_fn(_fn);
316
310
expr_block(blk);
317
-
318
311
/*
319
312
* FIXME: many of these @exprs should be constrained with
320
313
* is_lval once we have constrained types working.
@@ -335,15 +328,10 @@ tag expr_ {
335
328
expr_put(option::t[@expr]);
336
329
expr_be(@expr);
337
330
expr_log(int, @expr);
338
-
339
-
340
331
/* just an assert, no significance to typestate */
341
332
expr_assert(@expr);
342
-
343
-
344
333
/* preds that typestate is aware of */
345
334
expr_check(check_mode, @expr);
346
-
347
335
/* FIXME Would be nice if expr_check desugared
348
336
to expr_if_check. */
349
337
expr_if_check(@expr, blk, option::t[@expr]);
@@ -438,29 +426,20 @@ tag ty_ {
438
426
ty_bot; /* return type of ! functions and type of
439
427
ret/fail/break/cont. there is no syntax
440
428
for this type. */
441
-
442
-
443
-
444
429
/* bot represents the value of functions that don't return a value
445
430
locally to their context. in contrast, things like log that do
446
431
return, but don't return a meaningful value, have result type nil. */
447
- ty_bool;
432
+ ty_bool;
448
433
ty_int;
449
434
ty_uint;
450
435
ty_float;
451
436
ty_machine ( ty_mach) ;
452
437
ty_char;
453
438
ty_str;
454
439
ty_istr; // interior string
455
-
456
-
457
-
458
440
ty_box ( mt) ;
459
441
ty_vec ( mt) ;
460
442
ty_ivec ( mt) ; // interior vector
461
-
462
-
463
-
464
443
ty_ptr ( mt) ;
465
444
ty_task;
466
445
ty_port ( @ty) ;
@@ -523,21 +502,13 @@ type fn_decl =
523
502
524
503
tag purity {
525
504
pure_fn; // declared with "pred"
526
-
527
-
528
-
529
505
impure_fn; // declared with "fn"
530
-
531
506
}
532
507
533
508
tag controlflow {
534
509
noreturn; // functions with return type _|_ that always
535
510
// raise an error or exit (i.e. never return to the caller)
536
-
537
-
538
-
539
511
return ; // everything else
540
-
541
512
}
542
513
543
514
type _fn = { decl: fn_decl, proto: proto, body: blk} ;
0 commit comments