Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/constant.dart

Issue 16103010: Fixes for translator and DDA status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 } else if (_value == null) { 1287 } else if (_value == null) {
1288 return error(node.rightOperand); 1288 return error(node.rightOperand);
1289 } else if (leftValue is int) { 1289 } else if (leftValue is int) {
1290 if (_value is int) { 1290 if (_value is int) {
1291 if (((_value as int)) == 0) { 1291 if (((_value as int)) == 0) {
1292 return valueOf3(((leftValue as int)).toDouble() / ((_value as int)).to Double()); 1292 return valueOf3(((leftValue as int)).toDouble() / ((_value as int)).to Double());
1293 } 1293 }
1294 return valueOf(((leftValue as int)) ~/ (_value as int)); 1294 return valueOf(((leftValue as int)) ~/ (_value as int));
1295 } else if (_value is double) { 1295 } else if (_value is double) {
1296 double result = ((leftValue as int)).toDouble() / ((_value as double)); 1296 double result = ((leftValue as int)).toDouble() / ((_value as double));
1297 return valueOf((result as int)); 1297 return valueOf(result.toInt());
1298 } 1298 }
1299 } else if (leftValue is double) { 1299 } else if (leftValue is double) {
1300 if (_value is int) { 1300 if (_value is int) {
1301 double result = ((leftValue as double)) / ((_value as int)).toDouble(); 1301 double result = ((leftValue as double)) / ((_value as int)).toDouble();
1302 return valueOf((result as int)); 1302 return valueOf(result.toInt());
1303 } else if (_value is double) { 1303 } else if (_value is double) {
1304 double result = ((leftValue as double)) / ((_value as double)); 1304 double result = ((leftValue as double)) / ((_value as double));
1305 return valueOf((result as int)); 1305 return valueOf(result.toInt());
1306 } 1306 }
1307 } 1307 }
1308 return error(node); 1308 return error(node);
1309 } 1309 }
1310 EvaluationResultImpl lessThanError(BinaryExpression node, ErrorResult leftOper and) => leftOperand; 1310 EvaluationResultImpl lessThanError(BinaryExpression node, ErrorResult leftOper and) => leftOperand;
1311 EvaluationResultImpl lessThanOrEqualError(BinaryExpression node, ErrorResult l eftOperand) => leftOperand; 1311 EvaluationResultImpl lessThanOrEqualError(BinaryExpression node, ErrorResult l eftOperand) => leftOperand;
1312 EvaluationResultImpl lessThanOrEqualValid(BinaryExpression node, ValidResult l eftOperand2) { 1312 EvaluationResultImpl lessThanOrEqualValid(BinaryExpression node, ValidResult l eftOperand2) {
1313 if (isSomeNum() || leftOperand2.isSomeNum()) { 1313 if (isSomeNum() || leftOperand2.isSomeNum()) {
1314 if (isAnyNum() && leftOperand2.isAnyNum()) { 1314 if (isAnyNum() && leftOperand2.isAnyNum()) {
1315 return RESULT_BOOL; 1315 return RESULT_BOOL;
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 */ 1657 */
1658 ValidResult valueOf3(double value) => new ValidResult(value); 1658 ValidResult valueOf3(double value) => new ValidResult(value);
1659 1659
1660 /** 1660 /**
1661 * Return a result object representing the given value. 1661 * Return a result object representing the given value.
1662 * @param value the value to be represented as a result object 1662 * @param value the value to be represented as a result object
1663 * @return a result object representing the given value 1663 * @return a result object representing the given value
1664 */ 1664 */
1665 ValidResult valueOf4(String value) => new ValidResult(value); 1665 ValidResult valueOf4(String value) => new ValidResult(value);
1666 } 1666 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/ast.dart ('k') | pkg/analyzer_experimental/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698