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

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

Issue 14050010: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 /** 89 /**
90 * The value of the expression. 90 * The value of the expression.
91 */ 91 */
92 Object _value; 92 Object _value;
93 /** 93 /**
94 * The errors that should be reported for the expression(s) that were evaluate d. 94 * The errors that should be reported for the expression(s) that were evaluate d.
95 */ 95 */
96 List<AnalysisError> _errors; 96 List<AnalysisError> _errors;
97 /** 97 /**
98 * Initialize a newly created result object with the given state. Clients shou ld use one of the 98 * Initialize a newly created result object with the given state. Clients shou ld use one of the
99 * factory methods: {@link #forErrors(AnalysisError[])} and {@link #forValue(O bject)}. 99 * factory methods: {@link #forErrors(AnalysisError[[]])} and {@link #forValue (Object)}.
100 * @param value the value of the expression 100 * @param value the value of the expression
101 * @param errors the errors that should be reported for the expression(s) that were evaluated 101 * @param errors the errors that should be reported for the expression(s) that were evaluated
102 */ 102 */
103 EvaluationResult(Object value, List<AnalysisError> errors) { 103 EvaluationResult(Object value, List<AnalysisError> errors) {
104 this._value = value; 104 this._value = value;
105 this._errors = errors; 105 this._errors = errors;
106 } 106 }
107 /** 107 /**
108 * Return an array containing the errors that should be reported for the expre ssion(s) that were 108 * Return an array containing the errors that should be reported for the expre ssion(s) that were
109 * evaluated. If there are no such errors, the array will be empty. The array can be empty even if 109 * evaluated. If there are no such errors, the array will be empty. The array can be empty even if
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 * The errors that prevent the expression from being a valid compile time cons tant. 625 * The errors that prevent the expression from being a valid compile time cons tant.
626 */ 626 */
627 List<ErrorResult_ErrorData> _errors = new List<ErrorResult_ErrorData>(); 627 List<ErrorResult_ErrorData> _errors = new List<ErrorResult_ErrorData>();
628 /** 628 /**
629 * Initialize a newly created result representing the error with the given cod e reported against 629 * Initialize a newly created result representing the error with the given cod e reported against
630 * the given node. 630 * the given node.
631 * @param node the node against which the error should be reported 631 * @param node the node against which the error should be reported
632 * @param errorCode the error code for the error to be generated 632 * @param errorCode the error code for the error to be generated
633 */ 633 */
634 ErrorResult.con1(ASTNode node, ErrorCode errorCode) { 634 ErrorResult.con1(ASTNode node, ErrorCode errorCode) {
635 _jtd_constructor_162_impl(node, errorCode); 635 _jtd_constructor_168_impl(node, errorCode);
636 } 636 }
637 _jtd_constructor_162_impl(ASTNode node, ErrorCode errorCode) { 637 _jtd_constructor_168_impl(ASTNode node, ErrorCode errorCode) {
638 _errors.add(new ErrorResult_ErrorData(node, errorCode)); 638 _errors.add(new ErrorResult_ErrorData(node, errorCode));
639 } 639 }
640 /** 640 /**
641 * Initialize a newly created result to represent the union of the errors in t he given result 641 * Initialize a newly created result to represent the union of the errors in t he given result
642 * objects. 642 * objects.
643 * @param firstResult the first set of results being merged 643 * @param firstResult the first set of results being merged
644 * @param secondResult the second set of results being merged 644 * @param secondResult the second set of results being merged
645 */ 645 */
646 ErrorResult.con2(ErrorResult firstResult, ErrorResult secondResult) { 646 ErrorResult.con2(ErrorResult firstResult, ErrorResult secondResult) {
647 _jtd_constructor_163_impl(firstResult, secondResult); 647 _jtd_constructor_169_impl(firstResult, secondResult);
648 } 648 }
649 _jtd_constructor_163_impl(ErrorResult firstResult, ErrorResult secondResult) { 649 _jtd_constructor_169_impl(ErrorResult firstResult, ErrorResult secondResult) {
650 _errors.addAll(firstResult._errors); 650 _errors.addAll(firstResult._errors);
651 _errors.addAll(secondResult._errors); 651 _errors.addAll(secondResult._errors);
652 } 652 }
653 EvaluationResultImpl add(BinaryExpression node, EvaluationResultImpl rightOper and) => rightOperand.addToError(node, this); 653 EvaluationResultImpl add(BinaryExpression node, EvaluationResultImpl rightOper and) => rightOperand.addToError(node, this);
654 EvaluationResultImpl bitAnd(BinaryExpression node, EvaluationResultImpl rightO perand) => rightOperand.bitAndError(node, this); 654 EvaluationResultImpl bitAnd(BinaryExpression node, EvaluationResultImpl rightO perand) => rightOperand.bitAndError(node, this);
655 EvaluationResultImpl bitNot(Expression node) => this; 655 EvaluationResultImpl bitNot(Expression node) => this;
656 EvaluationResultImpl bitOr(BinaryExpression node, EvaluationResultImpl rightOp erand) => rightOperand.bitOrError(node, this); 656 EvaluationResultImpl bitOr(BinaryExpression node, EvaluationResultImpl rightOp erand) => rightOperand.bitOrError(node, this);
657 EvaluationResultImpl bitXor(BinaryExpression node, EvaluationResultImpl rightO perand) => rightOperand.bitXorError(node, this); 657 EvaluationResultImpl bitXor(BinaryExpression node, EvaluationResultImpl rightO perand) => rightOperand.bitXorError(node, this);
658 EvaluationResultImpl concatenate(Expression node, EvaluationResultImpl rightOp erand) => rightOperand.concatenateError(node, this); 658 EvaluationResultImpl concatenate(Expression node, EvaluationResultImpl rightOp erand) => rightOperand.concatenateError(node, this);
659 EvaluationResultImpl divide(BinaryExpression node, EvaluationResultImpl rightO perand) => rightOperand.divideError(node, this); 659 EvaluationResultImpl divide(BinaryExpression node, EvaluationResultImpl rightO perand) => rightOperand.divideError(node, this);
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 * @return a result object representing the given value 1413 * @return a result object representing the given value
1414 */ 1414 */
1415 ValidResult valueOf3(double value) => new ValidResult(value); 1415 ValidResult valueOf3(double value) => new ValidResult(value);
1416 /** 1416 /**
1417 * Return a result object representing the given value. 1417 * Return a result object representing the given value.
1418 * @param value the value to be represented as a result object 1418 * @param value the value to be represented as a result object
1419 * @return a result object representing the given value 1419 * @return a result object representing the given value
1420 */ 1420 */
1421 ValidResult valueOf4(String value) => new ValidResult(value); 1421 ValidResult valueOf4(String value) => new ValidResult(value);
1422 } 1422 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698