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

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

Issue 3004433002: Encapsulate the index based maps for entities. (Closed)
Patch Set: Updated cf. comments Created 3 years, 3 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 /// Entity interfaces for modeling elements derived from Kernel IR.
6
7 import '../elements/entities.dart';
8
9 abstract class IndexedLibrary implements LibraryEntity {
10 /// Library index used for fast lookup in [KernelToElementMapBase].
11 int get libraryIndex;
12 }
13
14 abstract class IndexedClass implements ClassEntity {
15 /// Class index used for fast lookup in [KernelToElementMapBase].
16 int get classIndex;
17 }
18
19 abstract class IndexedMember implements MemberEntity {
20 /// Member index used for fast lookup in [KernelToElementMapBase].
21 int get memberIndex;
22 }
23
24 abstract class IndexedFunction implements IndexedMember, FunctionEntity {}
25
26 abstract class IndexedConstructor
27 implements IndexedFunction, ConstructorEntity {}
28
29 abstract class IndexedField implements IndexedMember, FieldEntity {}
30
31 abstract class IndexedTypeVariable implements TypeVariableEntity {
32 /// Type variable index used for fast lookup in [KernelToElementMapBase].
33 int get typeVariableIndex;
34 }
35
36 abstract class IndexedTypedef implements TypedefEntity {
37 /// Typedef index used for fast lookup in [KernelToElementMapBase].
38 int get typedefIndex;
39 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/kernel/indexed.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698