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

Unified Diff: tests/compiler/dart2js/mock_compiler.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/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 8269768c04977e5bd78d0827747763a0522bc562..67e87a3a2a1df51d17a4b18aadccf6b89b700265 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -19,7 +19,8 @@ import 'parser_helper.dart';
import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart'
show ElementX,
LibraryElementX,
- ErroneousElementX;
+ ErroneousElementX,
+ FunctionElementX;
import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
hide TreeElementMapping;
@@ -394,7 +395,8 @@ class MockCompiler extends Compiler {
resolverVisitor() {
Element mockElement =
- new ElementX('', ElementKind.FUNCTION, mainApp.entryCompilationUnit);
+ new FunctionElementX('', ElementKind.FUNCTION, Modifiers.EMPTY,
+ mainApp.entryCompilationUnit, false);
ResolverVisitor visitor =
new ResolverVisitor(this, mockElement,
new CollectingTreeElements(mockElement));

Powered by Google App Engine
This is Rietveld 408576698