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

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

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of native; 5 import '../common.dart';
6 import '../common/backend_api.dart' show
7 ForeignResolver;
8 import '../common/resolution.dart' show
9 Parsing,
10 Resolution;
11 import '../compiler.dart' show
12 Compiler;
13 import '../constants/values.dart';
14 import '../core_types.dart' show
15 CoreTypes;
16 import '../dart_types.dart';
17 import '../elements/elements.dart';
18 import '../js/js.dart' as js;
19 import '../js_backend/js_backend.dart';
20 import '../tree/tree.dart';
21 import '../universe/side_effects.dart' show
22 SideEffects;
23 import '../util/util.dart';
24
25 import 'enqueue.dart';
26 import 'js.dart';
6 27
7 /// This class is a temporary work-around until we get a more powerful DartType. 28 /// This class is a temporary work-around until we get a more powerful DartType.
8 class SpecialType { 29 class SpecialType {
9 final String name; 30 final String name;
10 const SpecialType._(this.name); 31 const SpecialType._(this.name);
11 32
12 /// The type Object, but no subtypes: 33 /// The type Object, but no subtypes:
13 static const JsObject = const SpecialType._('=Object'); 34 static const JsObject = const SpecialType._('=Object');
14 35
15 int get hashCode => name.hashCode; 36 int get hashCode => name.hashCode;
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 MessageKind.GENERIC, 911 MessageKind.GENERIC,
891 {'text': "Type '$typeString' not found."}); 912 {'text': "Type '$typeString' not found."});
892 return const DynamicType(); 913 return const DynamicType();
893 } 914 }
894 915
895 static _errorNode(locationNodeOrElement, Parsing parsing) { 916 static _errorNode(locationNodeOrElement, Parsing parsing) {
896 if (locationNodeOrElement is Node) return locationNodeOrElement; 917 if (locationNodeOrElement is Node) return locationNodeOrElement;
897 return locationNodeOrElement.parseNode(parsing); 918 return locationNodeOrElement.parseNode(parsing);
898 } 919 }
899 } 920 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698