| 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.constant; | 3 library engine.constant; |
| 4 import 'java_core.dart'; | 4 import 'java_core.dart'; |
| 5 import 'source.dart' show Source; | 5 import 'source.dart' show Source; |
| 6 import 'error.dart' show AnalysisError, ErrorCode, CompileTimeErrorCode; | 6 import 'error.dart' show AnalysisError, ErrorCode, CompileTimeErrorCode; |
| 7 import 'scanner.dart' show TokenType; | 7 import 'scanner.dart' show TokenType; |
| 8 import 'ast.dart'; | 8 import 'ast.dart'; |
| 9 import 'element.dart'; | 9 import 'element.dart'; |
| 10 import 'engine.dart' show AnalysisEngine; | 10 import 'engine.dart' show AnalysisEngine; |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 EvaluationResultImpl result = null; | 480 EvaluationResultImpl result = null; |
| 481 for (InterpolationElement element in node.elements) { | 481 for (InterpolationElement element in node.elements) { |
| 482 if (result == null) { | 482 if (result == null) { |
| 483 result = element.accept(this); | 483 result = element.accept(this); |
| 484 } else { | 484 } else { |
| 485 result = result.concatenate(node, element.accept(this)); | 485 result = result.concatenate(node, element.accept(this)); |
| 486 } | 486 } |
| 487 } | 487 } |
| 488 return result; | 488 return result; |
| 489 } | 489 } |
| 490 EvaluationResultImpl visitSymbolLiteral(SymbolLiteral node) => ValidResult.RES
ULT_SYMBOL; |
| 490 | 491 |
| 491 /** | 492 /** |
| 492 * Return a result object representing an error associated with the given node
. | 493 * Return a result object representing an error associated with the given node
. |
| 493 * | 494 * |
| 494 * @param node the AST node associated with the error | 495 * @param node the AST node associated with the error |
| 495 * @param code the error code indicating the nature of the error | 496 * @param code the error code indicating the nature of the error |
| 496 * @return a result object representing an error associated with the given nod
e | 497 * @return a result object representing an error associated with the given nod
e |
| 497 */ | 498 */ |
| 498 ErrorResult error(ASTNode node, ErrorCode code) => new ErrorResult.con1(node,
code == null ? CompileTimeErrorCode.INVALID_CONSTANT : code); | 499 ErrorResult error(ASTNode node, ErrorCode code) => new ErrorResult.con1(node,
code == null ? CompileTimeErrorCode.INVALID_CONSTANT : code); |
| 499 | 500 |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 */ | 989 */ |
| 989 static ValidResult RESULT_BOOL = new ValidResult(null); | 990 static ValidResult RESULT_BOOL = new ValidResult(null); |
| 990 | 991 |
| 991 /** | 992 /** |
| 992 * A result object representing the an arbitrary object on which no further op
erations can be | 993 * A result object representing the an arbitrary object on which no further op
erations can be |
| 993 * performed. | 994 * performed. |
| 994 */ | 995 */ |
| 995 static ValidResult RESULT_OBJECT = new ValidResult(new Object()); | 996 static ValidResult RESULT_OBJECT = new ValidResult(new Object()); |
| 996 | 997 |
| 997 /** | 998 /** |
| 999 * A result object representing the an arbitrary symbol on which no further op
erations can be |
| 1000 * performed. |
| 1001 */ |
| 1002 static ValidResult RESULT_SYMBOL = new ValidResult(new Object()); |
| 1003 |
| 1004 /** |
| 998 * A result object representing the an arbitrary string on which no further op
erations can be | 1005 * A result object representing the an arbitrary string on which no further op
erations can be |
| 999 * performed. | 1006 * performed. |
| 1000 */ | 1007 */ |
| 1001 static ValidResult RESULT_STRING = new ValidResult("<string>"); | 1008 static ValidResult RESULT_STRING = new ValidResult("<string>"); |
| 1002 | 1009 |
| 1003 /** | 1010 /** |
| 1004 * A result object representing the value 'true'. | 1011 * A result object representing the value 'true'. |
| 1005 */ | 1012 */ |
| 1006 static ValidResult RESULT_TRUE = new ValidResult(true); | 1013 static ValidResult RESULT_TRUE = new ValidResult(true); |
| 1007 | 1014 |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1737 ValidResult valueOf3(double value) => new ValidResult(value); | 1744 ValidResult valueOf3(double value) => new ValidResult(value); |
| 1738 | 1745 |
| 1739 /** | 1746 /** |
| 1740 * Return a result object representing the given value. | 1747 * Return a result object representing the given value. |
| 1741 * | 1748 * |
| 1742 * @param value the value to be represented as a result object | 1749 * @param value the value to be represented as a result object |
| 1743 * @return a result object representing the given value | 1750 * @return a result object representing the given value |
| 1744 */ | 1751 */ |
| 1745 ValidResult valueOf4(String value) => new ValidResult(value); | 1752 ValidResult valueOf4(String value) => new ValidResult(value); |
| 1746 } | 1753 } |
| OLD | NEW |