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

Side by Side Diff: pkg/compiler/lib/src/common/resolution.dart

Issue 2603263002: Prefix resolution_types with Resolution. (Closed)
Patch Set: Rebased Created 3 years, 11 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library dart2js.common.resolution; 5 library dart2js.common.resolution;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compile_time_constants.dart'; 8 import '../compile_time_constants.dart';
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/expressions.dart' show ConstantExpression; 10 import '../constants/expressions.dart' show ConstantExpression;
11 import '../constants/values.dart' show ConstantValue; 11 import '../constants/values.dart' show ConstantValue;
12 import '../core_types.dart' show CommonElements; 12 import '../core_types.dart' show CommonElements;
13 import '../elements/resolution_types.dart' show DartType, Types; 13 import '../elements/resolution_types.dart' show ResolutionDartType, Types;
14 import '../elements/elements.dart' 14 import '../elements/elements.dart'
15 show 15 show
16 AstElement, 16 AstElement,
17 ClassElement, 17 ClassElement,
18 Element, 18 Element,
19 Entity, 19 Entity,
20 ExecutableElement, 20 ExecutableElement,
21 FunctionElement, 21 FunctionElement,
22 FunctionSignature, 22 FunctionSignature,
23 LibraryElement, 23 LibraryElement,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 /// If set to `true` resolution caches will not be cleared. Use this only for 145 /// If set to `true` resolution caches will not be cleared. Use this only for
146 /// testing. 146 /// testing.
147 bool retainCachesForTesting; 147 bool retainCachesForTesting;
148 148
149 void resolveTypedef(TypedefElement typdef); 149 void resolveTypedef(TypedefElement typdef);
150 void resolveClass(ClassElement cls); 150 void resolveClass(ClassElement cls);
151 void registerClass(ClassElement cls); 151 void registerClass(ClassElement cls);
152 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation); 152 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation);
153 FunctionSignature resolveSignature(FunctionElement function); 153 FunctionSignature resolveSignature(FunctionElement function);
154 DartType resolveTypeAnnotation(Element element, TypeAnnotation node); 154 ResolutionDartType resolveTypeAnnotation(
155 Element element, TypeAnnotation node);
155 156
156 /// Returns `true` if [element] has been resolved. 157 /// Returns `true` if [element] has been resolved.
157 // TODO(johnniwinther): Normalize semantics between normal and deserialized 158 // TODO(johnniwinther): Normalize semantics between normal and deserialized
158 // elements; deserialized elements are always resolved but the method will 159 // elements; deserialized elements are always resolved but the method will
159 // return `false`. 160 // return `false`.
160 bool hasBeenResolved(Element element); 161 bool hasBeenResolved(Element element);
161 162
162 /// Resolve [element] if it has not already been resolved. 163 /// Resolve [element] if it has not already been resolved.
163 void ensureResolved(Element element); 164 void ensureResolved(Element element);
164 165
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 if (cls.isPatch) { 251 if (cls.isPatch) {
251 patchParser.parsePatchClassNode(cls); 252 patchParser.parsePatchClassNode(cls);
252 } 253 }
253 }); 254 });
254 } 255 }
255 256
256 @override 257 @override
257 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( 258 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions(
258 canUseNative: backend.canLibraryUseNative(element.library)); 259 canUseNative: backend.canLibraryUseNative(element.library));
259 } 260 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698