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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map.dart

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 years, 7 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 dart2js.kernel.element_map; 5 library dart2js.kernel.element_map;
6 6
7 import 'package:kernel/ast.dart' as ir; 7 import 'package:kernel/ast.dart' as ir;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show Identifiers; 10 import '../common/names.dart' show Identifiers;
11 import '../common/resolution.dart'; 11 import '../common/resolution.dart';
12 import '../compile_time_constants.dart'; 12 import '../compile_time_constants.dart';
13 import '../constants/constant_system.dart'; 13 import '../constants/constant_system.dart';
14 import '../constants/constructors.dart'; 14 import '../constants/constructors.dart';
15 import '../constants/evaluation.dart'; 15 import '../constants/evaluation.dart';
16 import '../constants/expressions.dart'; 16 import '../constants/expressions.dart';
17 import '../constants/values.dart'; 17 import '../constants/values.dart';
18 import '../common_elements.dart'; 18 import '../common_elements.dart';
19 import '../elements/elements.dart'; 19 import '../elements/elements.dart';
20 import '../elements/entities.dart'; 20 import '../elements/entities.dart';
21 import '../elements/names.dart';
21 import '../elements/types.dart'; 22 import '../elements/types.dart';
22 import '../environment.dart'; 23 import '../environment.dart';
23 import '../frontend_strategy.dart'; 24 import '../frontend_strategy.dart';
24 import '../js_backend/constant_system_javascript.dart'; 25 import '../js_backend/constant_system_javascript.dart';
25 import '../js_backend/native_data.dart'; 26 import '../js_backend/native_data.dart';
26 import '../js_backend/no_such_method_registry.dart'; 27 import '../js_backend/no_such_method_registry.dart';
27 import '../native/native.dart' as native; 28 import '../native/native.dart' as native;
28 import '../native/resolver.dart'; 29 import '../native/resolver.dart';
29 import '../ordered_typeset.dart'; 30 import '../ordered_typeset.dart';
30 import '../ssa/kernel_impact.dart'; 31 import '../ssa/kernel_impact.dart';
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 } 1303 }
1303 1304
1304 InterfaceType getMixinTypeForClass(KClass cls) { 1305 InterfaceType getMixinTypeForClass(KClass cls) {
1305 _KClassEnv env = elementMap._classEnvs[cls.classIndex]; 1306 _KClassEnv env = elementMap._classEnvs[cls.classIndex];
1306 ir.Supertype mixedInType = env.cls.mixedInType; 1307 ir.Supertype mixedInType = env.cls.mixedInType;
1307 if (mixedInType == null) return null; 1308 if (mixedInType == null) return null;
1308 return elementMap.createInterfaceType( 1309 return elementMap.createInterfaceType(
1309 mixedInType.classNode, mixedInType.typeArguments); 1310 mixedInType.classNode, mixedInType.typeArguments);
1310 } 1311 }
1311 } 1312 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart ('k') | pkg/compiler/lib/src/kernel/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698