| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 String name = tokens.read(); | 405 String name = tokens.read(); |
| 406 bool isRecursive = name == "rec"; | 406 bool isRecursive = name == "rec"; |
| 407 if (isRecursive) name = tokens.read(); | 407 if (isRecursive) name = tokens.read(); |
| 408 | 408 |
| 409 Continuation cont = name2variable[name]; | 409 Continuation cont = name2variable[name]; |
| 410 assert(cont != null); | 410 assert(cont != null); |
| 411 | 411 |
| 412 List<Primitive> args = parsePrimitiveList(); | 412 List<Primitive> args = parsePrimitiveList(); |
| 413 | 413 |
| 414 tokens.consumeEnd(); | 414 tokens.consumeEnd(); |
| 415 return new InvokeContinuation(cont, args, recursive: isRecursive); | 415 return new InvokeContinuation(cont, args, isRecursive: isRecursive); |
| 416 } | 416 } |
| 417 | 417 |
| 418 /// (InvokeMethod receiver method (args) cont) | 418 /// (InvokeMethod receiver method (args) cont) |
| 419 InvokeMethod parseInvokeMethod() { | 419 InvokeMethod parseInvokeMethod() { |
| 420 tokens.consumeStart(INVOKE_METHOD); | 420 tokens.consumeStart(INVOKE_METHOD); |
| 421 | 421 |
| 422 Definition receiver = name2variable[tokens.read()]; | 422 Definition receiver = name2variable[tokens.read()]; |
| 423 assert(receiver != null); | 423 assert(receiver != null); |
| 424 | 424 |
| 425 String methodName = tokens.read(); | 425 String methodName = tokens.read(); |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 return new ReifyTypeVar(type); | 730 return new ReifyTypeVar(type); |
| 731 } | 731 } |
| 732 | 732 |
| 733 /// (This) | 733 /// (This) |
| 734 This parseThis() { | 734 This parseThis() { |
| 735 tokens.consumeStart(THIS); | 735 tokens.consumeStart(THIS); |
| 736 tokens.consumeEnd(); | 736 tokens.consumeEnd(); |
| 737 return new This(); | 737 return new This(); |
| 738 } | 738 } |
| 739 } | 739 } |
| OLD | NEW |