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

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

Issue 1274073003: Refactor visitSendSet for super compounds and assignment. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
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 22 matching lines...) Expand all
33 show DeferredLoadTask, 33 show DeferredLoadTask,
34 OutputUnit; 34 OutputUnit;
35 35
36 import 'mock_libraries.dart'; 36 import 'mock_libraries.dart';
37 37
38 class WarningMessage { 38 class WarningMessage {
39 Spannable node; 39 Spannable node;
40 Message message; 40 Message message;
41 WarningMessage(this.node, this.message); 41 WarningMessage(this.node, this.message);
42 42
43 toString() => message.toString(); 43 toString() => message.kind.toString();
44 } 44 }
45 45
46 final Uri PATCH_CORE = new Uri(scheme: 'patch', path: 'core'); 46 final Uri PATCH_CORE = new Uri(scheme: 'patch', path: 'core');
47 47
48 class MockCompiler extends Compiler { 48 class MockCompiler extends Compiler {
49 api.DiagnosticHandler diagnosticHandler; 49 api.DiagnosticHandler diagnosticHandler;
50 List<WarningMessage> warnings; 50 List<WarningMessage> warnings;
51 List<WarningMessage> errors; 51 List<WarningMessage> errors;
52 List<WarningMessage> hints; 52 List<WarningMessage> hints;
53 List<WarningMessage> infos; 53 List<WarningMessage> infos;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 MockElement(Element enclosingElement) 402 MockElement(Element enclosingElement)
403 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, 403 : super('', ElementKind.FUNCTION, Modifiers.EMPTY,
404 enclosingElement); 404 enclosingElement);
405 405
406 get node => null; 406 get node => null;
407 407
408 parseNode(_) => null; 408 parseNode(_) => null;
409 409
410 bool get hasNode => false; 410 bool get hasNode => false;
411 } 411 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698