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

Side by Side Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 228293008: Redo "Construct literal maps using factory constructor." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add constructors to mock libraries for dart2js tests Created 6 years, 8 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
« no previous file with comments | « tests/compiler/dart2js/dart_backend_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 abstract class JavaScriptIndexingBehavior {} 54 abstract class JavaScriptIndexingBehavior {}
55 class JSInvocationMirror {} 55 class JSInvocationMirror {}
56 class BoundClosure extends Closure { 56 class BoundClosure extends Closure {
57 var self; 57 var self;
58 var target; 58 var target;
59 var receiver; 59 var receiver;
60 } 60 }
61 class Closure implements Function {} 61 class Closure implements Function {}
62 class Null {} 62 class Null {}
63 class Dynamic_ {} 63 class Dynamic_ {}
64 class LinkedHashMap {} 64 class LinkedHashMap {
65 factory LinkedHashMap._empty() => null;
66 factory LinkedHashMap._literal(elements) => null;
67 }
65 class ConstantMap {} 68 class ConstantMap {}
66 class TypeImpl {} 69 class TypeImpl {}
67 S() {} 70 S() {}
68 throwCyclicInit() {} 71 throwCyclicInit() {}
69 throwExpression(e) {} 72 throwExpression(e) {}
70 unwrapException(e) {} 73 unwrapException(e) {}
71 assertHelper(a) {} 74 assertHelper(a) {}
72 isJsIndexable(a, b) {} 75 isJsIndexable(a, b) {}
73 createRuntimeType(a) {} 76 createRuntimeType(a) {}
74 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} 77 createInvocationMirror(a0, a1, a2, a3, a4, a5) {}
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 } else { 578 } else {
576 sourceFile = compiler.sourceFiles[uri.toString()]; 579 sourceFile = compiler.sourceFiles[uri.toString()];
577 } 580 }
578 if (sourceFile != null && begin != null && end != null) { 581 if (sourceFile != null && begin != null && end != null) {
579 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); 582 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x));
580 } else { 583 } else {
581 print(message); 584 print(message);
582 } 585 }
583 }; 586 };
584 } 587 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/dart_backend_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698