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

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

Issue 16357010: Basic dart^2 analyzer tests running. (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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 removeNode(sink); 629 removeNode(sink);
630 return sink; 630 return sink;
631 } 631 }
632 632
633 /** 633 /**
634 * Return one node that has no outgoing edges (that is, for which there are no edges that have 634 * Return one node that has no outgoing edges (that is, for which there are no edges that have
635 * that node as the head of the edge), or {@code null} if there are no such no des. 635 * that node as the head of the edge), or {@code null} if there are no such no des.
636 * @return a sink node 636 * @return a sink node
637 */ 637 */
638 N findSink() { 638 N findSink() {
639 for (MapEntry<N, Set<N>> entry in getMapEntrySet(_edges)) { 639 for (N key in _edges.keys) {
640 if (entry.getValue().isEmpty) { 640 if (_edges[key].isEmpty) return key;
641 return entry.getKey();
642 }
643 } 641 }
644 return null; 642 return null;
645 } 643 }
646 } 644 }
647 /** 645 /**
648 * Instances of the class {@code ErrorResult} represent the result of evaluating an expression that 646 * Instances of the class {@code ErrorResult} represent the result of evaluating an expression that
649 * is not a valid compile time constant. 647 * is not a valid compile time constant.
650 */ 648 */
651 class ErrorResult extends EvaluationResultImpl { 649 class ErrorResult extends EvaluationResultImpl {
652 650
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 */ 1657 */
1660 ValidResult valueOf3(double value) => new ValidResult(value); 1658 ValidResult valueOf3(double value) => new ValidResult(value);
1661 1659
1662 /** 1660 /**
1663 * Return a result object representing the given value. 1661 * Return a result object representing the given value.
1664 * @param value the value to be represented as a result object 1662 * @param value the value to be represented as a result object
1665 * @return a result object representing the given value 1663 * @return a result object representing the given value
1666 */ 1664 */
1667 ValidResult valueOf4(String value) => new ValidResult(value); 1665 ValidResult valueOf4(String value) => new ValidResult(value);
1668 } 1666 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698