| 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 | 3 |
| 4 library engine.constant; | 4 library engine.constant; |
| 5 | 5 |
| 6 import 'java_core.dart'; | 6 import 'java_core.dart'; |
| 7 import 'source.dart' show Source; | 7 import 'source.dart' show Source; |
| 8 import 'error.dart' show AnalysisError, ErrorCode, CompileTimeErrorCode; | 8 import 'error.dart' show AnalysisError, ErrorCode, CompileTimeErrorCode; |
| 9 import 'scanner.dart' show TokenType; | 9 import 'scanner.dart' show TokenType; |
| 10 import 'ast.dart'; | 10 import 'ast.dart'; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 for (MapLiteralEntry entry in node.entries) { | 244 for (MapLiteralEntry entry in node.entries) { |
| 245 result = union(result, entry.key.accept(this)); | 245 result = union(result, entry.key.accept(this)); |
| 246 result = union(result, entry.value.accept(this)); | 246 result = union(result, entry.value.accept(this)); |
| 247 } | 247 } |
| 248 if (result != null) { | 248 if (result != null) { |
| 249 return result; | 249 return result; |
| 250 } | 250 } |
| 251 return ValidResult.RESULT_OBJECT; | 251 return ValidResult.RESULT_OBJECT; |
| 252 } | 252 } |
| 253 EvaluationResultImpl visitMethodInvocation(MethodInvocation node) { | 253 EvaluationResultImpl visitMethodInvocation(MethodInvocation node) { |
| 254 Element element21 = node.methodName.element; | 254 Element element23 = node.methodName.element; |
| 255 if (element21 is FunctionElement) { | 255 if (element23 is FunctionElement) { |
| 256 FunctionElement function = element21 as FunctionElement; | 256 FunctionElement function = element23 as FunctionElement; |
| 257 if (function.name == "identical") { | 257 if (function.name == "identical") { |
| 258 NodeList<Expression> arguments3 = node.argumentList.arguments; | 258 NodeList<Expression> arguments3 = node.argumentList.arguments; |
| 259 if (arguments3.length == 2) { | 259 if (arguments3.length == 2) { |
| 260 Element enclosingElement2 = function.enclosingElement; | 260 Element enclosingElement2 = function.enclosingElement; |
| 261 if (enclosingElement2 is CompilationUnitElement) { | 261 if (enclosingElement2 is CompilationUnitElement) { |
| 262 LibraryElement library20 = ((enclosingElement2 as CompilationUnitEle
ment)).library; | 262 LibraryElement library20 = ((enclosingElement2 as CompilationUnitEle
ment)).library; |
| 263 if (library20.isDartCore()) { | 263 if (library20.isDartCore()) { |
| 264 EvaluationResultImpl leftArgument = arguments3[0].accept(this); | 264 EvaluationResultImpl leftArgument = arguments3[0].accept(this); |
| 265 EvaluationResultImpl rightArgument = arguments3[1].accept(this); | 265 EvaluationResultImpl rightArgument = arguments3[1].accept(this); |
| 266 return leftArgument.equalEqual(node, rightArgument); | 266 return leftArgument.equalEqual(node, rightArgument); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 * The errors that prevent the expression from being a valid compile time cons
tant. | 356 * The errors that prevent the expression from being a valid compile time cons
tant. |
| 357 */ | 357 */ |
| 358 List<ErrorResult_ErrorData> _errors = new List<ErrorResult_ErrorData>(); | 358 List<ErrorResult_ErrorData> _errors = new List<ErrorResult_ErrorData>(); |
| 359 /** | 359 /** |
| 360 * Initialize a newly created result representing the error with the given cod
e reported against | 360 * Initialize a newly created result representing the error with the given cod
e reported against |
| 361 * the given node. | 361 * the given node. |
| 362 * @param node the node against which the error should be reported | 362 * @param node the node against which the error should be reported |
| 363 * @param errorCode the error code for the error to be generated | 363 * @param errorCode the error code for the error to be generated |
| 364 */ | 364 */ |
| 365 ErrorResult.con1(ASTNode node, ErrorCode errorCode) { | 365 ErrorResult.con1(ASTNode node, ErrorCode errorCode) { |
| 366 _jtd_constructor_158_impl(node, errorCode); | 366 _jtd_constructor_157_impl(node, errorCode); |
| 367 } | 367 } |
| 368 _jtd_constructor_158_impl(ASTNode node, ErrorCode errorCode) { | 368 _jtd_constructor_157_impl(ASTNode node, ErrorCode errorCode) { |
| 369 _errors.add(new ErrorResult_ErrorData(node, errorCode)); | 369 _errors.add(new ErrorResult_ErrorData(node, errorCode)); |
| 370 } | 370 } |
| 371 /** | 371 /** |
| 372 * Initialize a newly created result to represent the union of the errors in t
he given result | 372 * Initialize a newly created result to represent the union of the errors in t
he given result |
| 373 * objects. | 373 * objects. |
| 374 * @param firstResult the first set of results being merged | 374 * @param firstResult the first set of results being merged |
| 375 * @param secondResult the second set of results being merged | 375 * @param secondResult the second set of results being merged |
| 376 */ | 376 */ |
| 377 ErrorResult.con2(ErrorResult firstResult, ErrorResult secondResult) { | 377 ErrorResult.con2(ErrorResult firstResult, ErrorResult secondResult) { |
| 378 _jtd_constructor_159_impl(firstResult, secondResult); | 378 _jtd_constructor_158_impl(firstResult, secondResult); |
| 379 } | 379 } |
| 380 _jtd_constructor_159_impl(ErrorResult firstResult, ErrorResult secondResult) { | 380 _jtd_constructor_158_impl(ErrorResult firstResult, ErrorResult secondResult) { |
| 381 _errors.addAll(firstResult._errors); | 381 _errors.addAll(firstResult._errors); |
| 382 _errors.addAll(secondResult._errors); | 382 _errors.addAll(secondResult._errors); |
| 383 } | 383 } |
| 384 EvaluationResultImpl add(BinaryExpression node, EvaluationResultImpl rightOper
and) => rightOperand.addToError(node, this); | 384 EvaluationResultImpl add(BinaryExpression node, EvaluationResultImpl rightOper
and) => rightOperand.addToError(node, this); |
| 385 EvaluationResultImpl bitAnd(BinaryExpression node, EvaluationResultImpl rightO
perand) => rightOperand.bitAndError(node, this); | 385 EvaluationResultImpl bitAnd(BinaryExpression node, EvaluationResultImpl rightO
perand) => rightOperand.bitAndError(node, this); |
| 386 EvaluationResultImpl bitNot(Expression node) => this; | 386 EvaluationResultImpl bitNot(Expression node) => this; |
| 387 EvaluationResultImpl bitOr(BinaryExpression node, EvaluationResultImpl rightOp
erand) => rightOperand.bitOrError(node, this); | 387 EvaluationResultImpl bitOr(BinaryExpression node, EvaluationResultImpl rightOp
erand) => rightOperand.bitOrError(node, this); |
| 388 EvaluationResultImpl bitXor(BinaryExpression node, EvaluationResultImpl rightO
perand) => rightOperand.bitXorError(node, this); | 388 EvaluationResultImpl bitXor(BinaryExpression node, EvaluationResultImpl rightO
perand) => rightOperand.bitXorError(node, this); |
| 389 EvaluationResultImpl concatenate(Expression node, EvaluationResultImpl rightOp
erand) => rightOperand.concatenateError(node, this); | 389 EvaluationResultImpl concatenate(Expression node, EvaluationResultImpl rightOp
erand) => rightOperand.concatenateError(node, this); |
| 390 EvaluationResultImpl divide(BinaryExpression node, EvaluationResultImpl rightO
perand) => rightOperand.divideError(node, this); | 390 EvaluationResultImpl divide(BinaryExpression node, EvaluationResultImpl rightO
perand) => rightOperand.divideError(node, this); |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 * @return a result object representing the given value | 1106 * @return a result object representing the given value |
| 1107 */ | 1107 */ |
| 1108 ValidResult valueOf3(double value) => new ValidResult(value); | 1108 ValidResult valueOf3(double value) => new ValidResult(value); |
| 1109 /** | 1109 /** |
| 1110 * Return a result object representing the given value. | 1110 * Return a result object representing the given value. |
| 1111 * @param value the value to be represented as a result object | 1111 * @param value the value to be represented as a result object |
| 1112 * @return a result object representing the given value | 1112 * @return a result object representing the given value |
| 1113 */ | 1113 */ |
| 1114 ValidResult valueOf4(String value) => new ValidResult(value); | 1114 ValidResult valueOf4(String value) => new ValidResult(value); |
| 1115 } | 1115 } |
| OLD | NEW |