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

Side by Side Diff: pkg/compiler/lib/src/native/native.dart

Issue 1383483006: Extract DiagnosticReporter implementation from Compiler. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes after rebase. Created 5 years, 2 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
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/native/ssa.dart » ('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 native; 5 library native;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common/backend_api.dart' show 9 import '../common/backend_api.dart' show
10 ForeignResolver; 10 ForeignResolver;
11 import '../common/registry.dart' show 11 import '../common/registry.dart' show
12 Registry; 12 Registry;
13 import '../common/resolution.dart' show 13 import '../common/resolution.dart' show
14 Parsing, 14 Parsing,
15 Resolution; 15 Resolution;
16 import '../compiler.dart' show 16 import '../compiler.dart' show
17 Compiler; 17 Compiler;
18 import '../constants/values.dart'; 18 import '../constants/values.dart';
19 import '../core_types.dart' show
20 CoreTypes;
19 import '../dart_types.dart'; 21 import '../dart_types.dart';
20 import '../diagnostics/diagnostic_listener.dart'; 22 import '../diagnostics/diagnostic_listener.dart' show
23 DiagnosticReporter;
21 import '../diagnostics/messages.dart' show 24 import '../diagnostics/messages.dart' show
22 MessageKind; 25 MessageKind;
23 import '../diagnostics/spannable.dart' show 26 import '../diagnostics/spannable.dart' show
24 NO_LOCATION_SPANNABLE, 27 NO_LOCATION_SPANNABLE,
25 Spannable; 28 Spannable;
26 import '../enqueue.dart' show 29 import '../enqueue.dart' show
27 Enqueuer, 30 Enqueuer,
28 ResolutionEnqueuer; 31 ResolutionEnqueuer;
29 import '../elements/elements.dart'; 32 import '../elements/elements.dart';
30 import '../elements/modelx.dart' show 33 import '../elements/modelx.dart' show
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 String quotedName = cls.nativeTagInfo; 91 String quotedName = cls.nativeTagInfo;
89 return quotedName.substring(1, quotedName.length - 1).split(','); 92 return quotedName.substring(1, quotedName.length - 1).split(',');
90 } 93 }
91 94
92 List<String> nativeTagsOfClass(ClassElement cls) { 95 List<String> nativeTagsOfClass(ClassElement cls) {
93 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); 96 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList();
94 } 97 }
95 98
96 bool nativeTagsForcedNonLeaf(ClassElement cls) => 99 bool nativeTagsForcedNonLeaf(ClassElement cls) =>
97 nativeTagsOfClassRaw(cls).contains('!nonleaf'); 100 nativeTagsOfClassRaw(cls).contains('!nonleaf');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/native/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698