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

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

Issue 23080005: New analysis_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 386 }
387 return error(node, null); 387 return error(node, null);
388 } 388 }
389 EvaluationResultImpl visitIntegerLiteral(IntegerLiteral node) => new ValidResu lt(node.value); 389 EvaluationResultImpl visitIntegerLiteral(IntegerLiteral node) => new ValidResu lt(node.value);
390 EvaluationResultImpl visitInterpolationExpression(InterpolationExpression node ) { 390 EvaluationResultImpl visitInterpolationExpression(InterpolationExpression node ) {
391 EvaluationResultImpl result = node.expression.accept(this); 391 EvaluationResultImpl result = node.expression.accept(this);
392 return result.performToString(node); 392 return result.performToString(node);
393 } 393 }
394 EvaluationResultImpl visitInterpolationString(InterpolationString node) => new ValidResult(node.value); 394 EvaluationResultImpl visitInterpolationString(InterpolationString node) => new ValidResult(node.value);
395 EvaluationResultImpl visitListLiteral(ListLiteral node) { 395 EvaluationResultImpl visitListLiteral(ListLiteral node) {
396 if (node.modifier == null) { 396 if (node.constKeyword == null) {
397 return new ErrorResult.con1(node, CompileTimeErrorCode.MISSING_CONST_IN_LI ST_LITERAL); 397 return new ErrorResult.con1(node, CompileTimeErrorCode.MISSING_CONST_IN_LI ST_LITERAL);
398 } 398 }
399 ErrorResult result = null; 399 ErrorResult result = null;
400 for (Expression element in node.elements) { 400 for (Expression element in node.elements) {
401 result = union(result, element.accept(this)); 401 result = union(result, element.accept(this));
402 } 402 }
403 if (result != null) { 403 if (result != null) {
404 return result; 404 return result;
405 } 405 }
406 return ValidResult.RESULT_OBJECT; 406 return ValidResult.RESULT_OBJECT;
407 } 407 }
408 EvaluationResultImpl visitMapLiteral(MapLiteral node) { 408 EvaluationResultImpl visitMapLiteral(MapLiteral node) {
409 if (node.modifier == null) { 409 if (node.constKeyword == null) {
410 return new ErrorResult.con1(node, CompileTimeErrorCode.MISSING_CONST_IN_MA P_LITERAL); 410 return new ErrorResult.con1(node, CompileTimeErrorCode.MISSING_CONST_IN_MA P_LITERAL);
411 } 411 }
412 ErrorResult result = null; 412 ErrorResult result = null;
413 for (MapLiteralEntry entry in node.entries) { 413 for (MapLiteralEntry entry in node.entries) {
414 result = union(result, entry.key.accept(this)); 414 result = union(result, entry.key.accept(this));
415 result = union(result, entry.value.accept(this)); 415 result = union(result, entry.value.accept(this));
416 } 416 }
417 if (result != null) { 417 if (result != null) {
418 return result; 418 return result;
419 } 419 }
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 ValidResult valueOf3(double value) => new ValidResult(value); 1726 ValidResult valueOf3(double value) => new ValidResult(value);
1727 1727
1728 /** 1728 /**
1729 * Return a result object representing the given value. 1729 * Return a result object representing the given value.
1730 * 1730 *
1731 * @param value the value to be represented as a result object 1731 * @param value the value to be represented as a result object
1732 * @return a result object representing the given value 1732 * @return a result object representing the given value
1733 */ 1733 */
1734 ValidResult valueOf4(String value) => new ValidResult(value); 1734 ValidResult valueOf4(String value) => new ValidResult(value);
1735 } 1735 }
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