| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine.parser; | 3 library engine.parser; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'java_core.dart'; | 5 import 'java_core.dart'; |
| 6 import 'java_engine.dart'; | 6 import 'java_engine.dart'; |
| 7 import 'instrumentation.dart'; | 7 import 'instrumentation.dart'; |
| 8 import 'error.dart'; | 8 import 'error.dart'; |
| 9 import 'source.dart'; | 9 import 'source.dart'; |
| 10 import 'scanner.dart'; | 10 import 'scanner.dart'; |
| (...skipping 3592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3603 return new NullLiteral.full(andAdvance); | 3603 return new NullLiteral.full(andAdvance); |
| 3604 } else if (matches(Keyword.FALSE)) { | 3604 } else if (matches(Keyword.FALSE)) { |
| 3605 return new BooleanLiteral.full(andAdvance, false); | 3605 return new BooleanLiteral.full(andAdvance, false); |
| 3606 } else if (matches(Keyword.TRUE)) { | 3606 } else if (matches(Keyword.TRUE)) { |
| 3607 return new BooleanLiteral.full(andAdvance, true); | 3607 return new BooleanLiteral.full(andAdvance, true); |
| 3608 } else if (matches5(TokenType.DOUBLE)) { | 3608 } else if (matches5(TokenType.DOUBLE)) { |
| 3609 Token token = andAdvance; | 3609 Token token = andAdvance; |
| 3610 double value = 0.0; | 3610 double value = 0.0; |
| 3611 try { | 3611 try { |
| 3612 value = double.parse(token.lexeme); | 3612 value = double.parse(token.lexeme); |
| 3613 } on NumberFormatException catch (exception) { | 3613 } on FormatException catch (exception) { |
| 3614 } | 3614 } |
| 3615 return new DoubleLiteral.full(token, value); | 3615 return new DoubleLiteral.full(token, value); |
| 3616 } else if (matches5(TokenType.HEXADECIMAL)) { | 3616 } else if (matches5(TokenType.HEXADECIMAL)) { |
| 3617 Token token = andAdvance; | 3617 Token token = andAdvance; |
| 3618 int value = null; | 3618 int value = null; |
| 3619 try { | 3619 try { |
| 3620 value = int.parse(token.lexeme.substring(2), radix: 16); | 3620 value = int.parse(token.lexeme.substring(2), radix: 16); |
| 3621 } on NumberFormatException catch (exception) { | 3621 } on FormatException catch (exception) { |
| 3622 } | 3622 } |
| 3623 return new IntegerLiteral.full(token, value); | 3623 return new IntegerLiteral.full(token, value); |
| 3624 } else if (matches5(TokenType.INT)) { | 3624 } else if (matches5(TokenType.INT)) { |
| 3625 Token token = andAdvance; | 3625 Token token = andAdvance; |
| 3626 int value = null; | 3626 int value = null; |
| 3627 try { | 3627 try { |
| 3628 value = int.parse(token.lexeme); | 3628 value = int.parse(token.lexeme); |
| 3629 } on NumberFormatException catch (exception) { | 3629 } on FormatException catch (exception) { |
| 3630 } | 3630 } |
| 3631 return new IntegerLiteral.full(token, value); | 3631 return new IntegerLiteral.full(token, value); |
| 3632 } else if (matches5(TokenType.STRING)) { | 3632 } else if (matches5(TokenType.STRING)) { |
| 3633 return parseStringLiteral(); | 3633 return parseStringLiteral(); |
| 3634 } else if (matches5(TokenType.OPEN_CURLY_BRACKET)) { | 3634 } else if (matches5(TokenType.OPEN_CURLY_BRACKET)) { |
| 3635 return parseMapLiteral(null, null); | 3635 return parseMapLiteral(null, null); |
| 3636 } else if (matches5(TokenType.OPEN_SQUARE_BRACKET) || matches5(TokenType.IND
EX)) { | 3636 } else if (matches5(TokenType.OPEN_SQUARE_BRACKET) || matches5(TokenType.IND
EX)) { |
| 3637 return parseListLiteral(null, null); | 3637 return parseListLiteral(null, null); |
| 3638 } else if (matchesIdentifier()) { | 3638 } else if (matchesIdentifier()) { |
| 3639 return parsePrefixedIdentifier(); | 3639 return parsePrefixedIdentifier(); |
| (...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6261 for (int i = 0; i < size2; i++) { | 6261 for (int i = 0; i < size2; i++) { |
| 6262 if (i > 0) { | 6262 if (i > 0) { |
| 6263 _writer.print(separator); | 6263 _writer.print(separator); |
| 6264 } | 6264 } |
| 6265 nodes[i].accept(this); | 6265 nodes[i].accept(this); |
| 6266 } | 6266 } |
| 6267 } | 6267 } |
| 6268 } | 6268 } |
| 6269 } | 6269 } |
| 6270 } | 6270 } |
| OLD | NEW |