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

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

Issue 830703004: Emit to StreamCodeOutput instead of CodeBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 years, 11 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 // 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
11 import 'package:compiler/compiler.dart' as api; 11 import 'package:compiler/compiler.dart' as api;
12 import 'package:compiler/src/elements/elements.dart'; 12 import 'package:compiler/src/elements/elements.dart';
13 import 'package:compiler/src/js_backend/js_backend.dart' 13 import 'package:compiler/src/js_backend/js_backend.dart'
14 show JavaScriptBackend; 14 show JavaScriptBackend;
15 import 'package:compiler/src/resolution/resolution.dart'; 15 import 'package:compiler/src/resolution/resolution.dart';
16 import 'package:compiler/src/source_file.dart'; 16 import 'package:compiler/src/io/source_file.dart';
17 import 'package:compiler/src/tree/tree.dart'; 17 import 'package:compiler/src/tree/tree.dart';
18 import 'package:compiler/src/util/util.dart'; 18 import 'package:compiler/src/util/util.dart';
19 import 'parser_helper.dart'; 19 import 'parser_helper.dart';
20 20
21 import 'package:compiler/src/elements/modelx.dart' 21 import 'package:compiler/src/elements/modelx.dart'
22 show ElementX, 22 show ElementX,
23 LibraryElementX, 23 LibraryElementX,
24 ErroneousElementX, 24 ErroneousElementX,
25 FunctionElementX; 25 FunctionElementX;
26 26
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 MockElement(Element enclosingElement) 395 MockElement(Element enclosingElement)
396 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, 396 : super('', ElementKind.FUNCTION, Modifiers.EMPTY,
397 enclosingElement, false); 397 enclosingElement, false);
398 398
399 get node => null; 399 get node => null;
400 400
401 parseNode(_) => null; 401 parseNode(_) => null;
402 402
403 bool get hasNode => false; 403 bool get hasNode => false;
404 } 404 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/memory_source_file_helper.dart ('k') | tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698