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

Side by Side Diff: pkg/compiler/lib/src/kernel/elements.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 /// Entity model for elements derived from Kernel IR. 5 /// Entity model for elements derived from Kernel IR.
6 6
7 import '../elements/elements.dart';
8 import '../elements/entities.dart'; 7 import '../elements/entities.dart';
8 import '../elements/names.dart';
9 import '../elements/types.dart'; 9 import '../elements/types.dart';
10 10
11 class KLibrary implements LibraryEntity { 11 class KLibrary implements LibraryEntity {
12 /// Library index used for fast lookup in [KernelWorldBuilder]. 12 /// Library index used for fast lookup in [KernelWorldBuilder].
13 final int libraryIndex; 13 final int libraryIndex;
14 final String name; 14 final String name;
15 final Uri canonicalUri; 15 final Uri canonicalUri;
16 16
17 KLibrary(this.libraryIndex, this.name, this.canonicalUri); 17 KLibrary(this.libraryIndex, this.name, this.canonicalUri);
18 18
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 final MemberEntity memberContext; 226 final MemberEntity memberContext;
227 final Entity executableContext; 227 final Entity executableContext;
228 final FunctionType functionType; 228 final FunctionType functionType;
229 229
230 KLocalFunction( 230 KLocalFunction(
231 this.name, this.memberContext, this.executableContext, this.functionType); 231 this.name, this.memberContext, this.executableContext, this.functionType);
232 232
233 String toString() => 233 String toString() =>
234 'local_function(${memberContext.name}.${name ?? '<anonymous>'})'; 234 'local_function(${memberContext.name}.${name ?? '<anonymous>'})';
235 } 235 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map.dart ('k') | pkg/compiler/lib/src/kernel/ir_element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698