| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // SExpressionUnstringifier implements the inverse operation to | 5 // SExpressionUnstringifier implements the inverse operation to |
| 6 // [SExpressionStringifier]. | 6 // [SExpressionStringifier]. |
| 7 | 7 |
| 8 library sexpr_unstringifier; | 8 library sexpr_unstringifier; |
| 9 | 9 |
| 10 import 'package:compiler/src/constants/expressions.dart' | 10 import 'package:compiler/src/constants/expressions.dart' |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 List<Continuation> continuations = <Continuation>[]; | 490 List<Continuation> continuations = <Continuation>[]; |
| 491 while (tokens.current != ")") { | 491 while (tokens.current != ")") { |
| 492 continuations.add(parseContinuation()); | 492 continuations.add(parseContinuation()); |
| 493 } | 493 } |
| 494 tokens.consumeEnd(); | 494 tokens.consumeEnd(); |
| 495 | 495 |
| 496 // body) | 496 // body) |
| 497 Expression body = parseExpression(); | 497 Expression body = parseExpression(); |
| 498 tokens.consumeEnd(); | 498 tokens.consumeEnd(); |
| 499 | 499 |
| 500 return new LetCont(continuations, body); | 500 return new LetCont.many(continuations, body); |
| 501 } | 501 } |
| 502 | 502 |
| 503 /// (SetClosureVariable name value body) | 503 /// (SetClosureVariable name value body) |
| 504 SetClosureVariable parseSetClosureVariable() { | 504 SetClosureVariable parseSetClosureVariable() { |
| 505 tokens.consumeStart(SET_CLOSURE_VARIABLE); | 505 tokens.consumeStart(SET_CLOSURE_VARIABLE); |
| 506 | 506 |
| 507 ClosureVariable local = name2variable[tokens.read()]; | 507 ClosureVariable local = name2variable[tokens.read()]; |
| 508 Primitive value = name2variable[tokens.read()]; | 508 Primitive value = name2variable[tokens.read()]; |
| 509 assert(value != null); | 509 assert(value != null); |
| 510 | 510 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 return new ReifyTypeVar(type); | 690 return new ReifyTypeVar(type); |
| 691 } | 691 } |
| 692 | 692 |
| 693 /// (This) | 693 /// (This) |
| 694 This parseThis() { | 694 This parseThis() { |
| 695 tokens.consumeStart(THIS); | 695 tokens.consumeStart(THIS); |
| 696 tokens.consumeEnd(); | 696 tokens.consumeEnd(); |
| 697 return new This(); | 697 return new This(); |
| 698 } | 698 } |
| 699 } | 699 } |
| OLD | NEW |