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

Side by Side Diff: pkg/compiler/lib/src/common_elements.dart

Issue 2854013002: Make JavaScriptBackend.processAnnotations element-model agnostic (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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // TODO(sigmund): rename and move to common/elements.dart 5 // TODO(sigmund): rename and move to common/elements.dart
6 library dart2js.type_system; 6 library dart2js.type_system;
7 7
8 import 'common/names.dart' show Identifiers, Uris; 8 import 'common/names.dart' show Identifiers, Uris;
9 import 'js_backend/constant_system_javascript.dart'; 9 import 'constants/values.dart';
10 import 'elements/types.dart'; 10 import 'elements/types.dart';
11 import 'elements/elements.dart' show PublicName; 11 import 'elements/elements.dart' show PublicName;
12 import 'elements/entities.dart'; 12 import 'elements/entities.dart';
13 import 'js_backend/backend.dart' show JavaScriptBackend; 13 import 'js_backend/backend.dart' show JavaScriptBackend;
14 import 'js_backend/constant_system_javascript.dart';
14 import 'universe/call_structure.dart' show CallStructure; 15 import 'universe/call_structure.dart' show CallStructure;
15 import 'universe/selector.dart' show Selector; 16 import 'universe/selector.dart' show Selector;
16 import 'universe/call_structure.dart'; 17 import 'universe/call_structure.dart';
17 18
18 /// The common elements and types in Dart. 19 /// The common elements and types in Dart.
19 class CommonElements { 20 class CommonElements {
20 final ElementEnvironment _env; 21 final ElementEnvironment _env;
21 22
22 CommonElements(this._env); 23 CommonElements(this._env);
23 24
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 // TODO(johnniwinther): Remove this when the resolver is removed. 1241 // TODO(johnniwinther): Remove this when the resolver is removed.
1241 DartType getUnaliasedType(DartType type); 1242 DartType getUnaliasedType(DartType type);
1242 1243
1243 /// Returns the [CallStructure] corresponding to calling [entity] with all 1244 /// Returns the [CallStructure] corresponding to calling [entity] with all
1244 /// arguments, both required and optional. 1245 /// arguments, both required and optional.
1245 CallStructure getCallStructure(FunctionEntity entity); 1246 CallStructure getCallStructure(FunctionEntity entity);
1246 1247
1247 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected 1248 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected
1248 /// on deferred libraries. 1249 /// on deferred libraries.
1249 bool isDeferredLoadLibraryGetter(MemberEntity member); 1250 bool isDeferredLoadLibraryGetter(MemberEntity member);
1251
1252 /// Returns the metadata constants declared on [member].
1253 Iterable<ConstantValue> getMemberMetadata(MemberEntity member);
1250 } 1254 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('j') | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698