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

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

Issue 2810633003: Add kernel/closed_world2_test (Closed)
Patch Set: Add TODOs. Created 3 years, 8 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'; 7 import '../elements/elements.dart';
8 import '../elements/entities.dart'; 8 import '../elements/entities.dart';
9 import '../elements/types.dart';
9 10
10 class KLibrary implements LibraryEntity { 11 class KLibrary implements LibraryEntity {
11 /// Library index used for fast lookup in [KernelWorldBuilder]. 12 /// Library index used for fast lookup in [KernelWorldBuilder].
12 final int libraryIndex; 13 final int libraryIndex;
13 final String name; 14 final String name;
14 final Uri canonicalUri; 15 final Uri canonicalUri;
15 16
16 KLibrary(this.libraryIndex, this.name, this.canonicalUri); 17 KLibrary(this.libraryIndex, this.name, this.canonicalUri);
17 18
18 String toString() => 'library($name)'; 19 String toString() => 'library($name)';
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 218
218 KTypeVariable(this.typeDeclaration, this.name, this.index); 219 KTypeVariable(this.typeDeclaration, this.name, this.index);
219 220
220 String toString() => 'type_variable(${typeDeclaration.name}.$name)'; 221 String toString() => 'type_variable(${typeDeclaration.name}.$name)';
221 } 222 }
222 223
223 class KLocalFunction implements Local { 224 class KLocalFunction implements Local {
224 final String name; 225 final String name;
225 final MemberEntity memberContext; 226 final MemberEntity memberContext;
226 final Entity executableContext; 227 final Entity executableContext;
228 final FunctionType functionType;
227 229
228 KLocalFunction(this.name, this.memberContext, this.executableContext); 230 KLocalFunction(
231 this.name, this.memberContext, this.executableContext, this.functionType);
229 232
230 String toString() => 233 String toString() =>
231 'local_function(${memberContext.name}.${name ?? '<anonymous>'})'; 234 'local_function(${memberContext.name}.${name ?? '<anonymous>'})';
232 } 235 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698