| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |