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

Unified Diff: tests/compiler/dart2js/type_checker_test.dart

Issue 90713003: Dart2js option to dump info about compilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index 8ca53a84ef9b0c572d620ab748eb367bb79585f2..5718cc9e47d1c264e6781edec26bd7b68556817d 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -11,7 +11,7 @@ import 'mock_compiler.dart';
import 'parser_helper.dart';
import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart'
- show ElementX, CompilationUnitElementX;
+ show ElementX, CompilationUnitElementX, FunctionElementX;
import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart';
@@ -1687,7 +1687,7 @@ abstract class num {
bool operator <(num other);
bool operator <=(num other);
bool operator >(num other);
- bool operator >=(num other);
+ bool operator >=(num other)
}
''';
@@ -1803,8 +1803,8 @@ analyze(String text, {errors, warnings, List hints, List infos}) {
Node node = listener.popNode();
Element compilationUnit =
new CompilationUnitElementX(new Script(null, null), compiler.mainApp);
- Element function = new ElementX(
- '', ElementKind.FUNCTION, compilationUnit);
+ Element function = new FunctionElementX(
+ '', ElementKind.FUNCTION, Modifiers.EMPTY, compilationUnit, false);
TreeElements elements = compiler.resolveNodeStatement(node, function);
TypeCheckerVisitor checker = new TypeCheckerVisitor(compiler, elements,
types);
« tests/compiler/dart2js/dump_info_test.dart ('K') | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698