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

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

Issue 2854013002: Make JavaScriptBackend.processAnnotations element-model agnostic (Closed)
Patch Set: Fix and check declaration invariant. 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 // TODO(johnniwinther): Remove this when the resolver is removed. 1253 // TODO(johnniwinther): Remove this when the resolver is removed.
1253 DartType getUnaliasedType(DartType type); 1254 DartType getUnaliasedType(DartType type);
1254 1255
1255 /// Returns the [CallStructure] corresponding to calling [entity] with all 1256 /// Returns the [CallStructure] corresponding to calling [entity] with all
1256 /// arguments, both required and optional. 1257 /// arguments, both required and optional.
1257 CallStructure getCallStructure(FunctionEntity entity); 1258 CallStructure getCallStructure(FunctionEntity entity);
1258 1259
1259 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected 1260 /// Returns `true` if [member] a the synthetic getter `loadLibrary` injected
1260 /// on deferred libraries. 1261 /// on deferred libraries.
1261 bool isDeferredLoadLibraryGetter(MemberEntity member); 1262 bool isDeferredLoadLibraryGetter(MemberEntity member);
1263
1264 /// Returns the metadata constants declared on [member].
1265 Iterable<ConstantValue> getMemberMetadata(MemberEntity member);
1262 } 1266 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698