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

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

Issue 1873573004: Serialize TreeElements (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 1
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 library dart2js.common.resolution; 6 library dart2js.common.resolution;
7 7
8 import '../common.dart'; 8 import '../common.dart';
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
11 import '../constants/expressions.dart' show 11 import '../constants/expressions.dart' show
12 ConstantExpression; 12 ConstantExpression;
13 import '../core_types.dart' show 13 import '../core_types.dart' show
14 CoreTypes; 14 CoreTypes;
15 import '../dart_types.dart' show 15 import '../dart_types.dart' show
16 DartType, 16 DartType,
17 InterfaceType; 17 InterfaceType;
18 import '../elements/elements.dart' show 18 import '../elements/elements.dart' show
19 AstElement, 19 AstElement,
20 ClassElement, 20 ClassElement,
21 Element, 21 Element,
22 ErroneousElement, 22 ErroneousElement,
23 FunctionElement, 23 FunctionElement,
24 FunctionSignature, 24 FunctionSignature,
25 LocalFunctionElement, 25 LocalFunctionElement,
26 MetadataAnnotation, 26 MetadataAnnotation,
27 MethodElement, 27 MethodElement,
28 ResolvedAst,
28 TypedefElement, 29 TypedefElement,
29 TypeVariableElement; 30 TypeVariableElement;
30 import '../enqueue.dart' show 31 import '../enqueue.dart' show
31 ResolutionEnqueuer; 32 ResolutionEnqueuer;
32 import '../options.dart' show 33 import '../options.dart' show
33 ParserOptions; 34 ParserOptions;
34 import '../parser/element_listener.dart' show 35 import '../parser/element_listener.dart' show
35 ScannerOptions; 36 ScannerOptions;
36 import '../tree/tree.dart' show 37 import '../tree/tree.dart' show
37 AsyncForIn, 38 AsyncForIn,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void registerClass(ClassElement cls); 198 void registerClass(ClassElement cls);
198 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation); 199 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation);
199 FunctionSignature resolveSignature(FunctionElement function); 200 FunctionSignature resolveSignature(FunctionElement function);
200 DartType resolveTypeAnnotation(Element element, TypeAnnotation node); 201 DartType resolveTypeAnnotation(Element element, TypeAnnotation node);
201 202
202 bool hasBeenResolved(Element element); 203 bool hasBeenResolved(Element element);
203 204
204 ResolutionWorkItem createWorkItem( 205 ResolutionWorkItem createWorkItem(
205 Element element, ItemCompilationContext compilationContext); 206 Element element, ItemCompilationContext compilationContext);
206 207
208 /// Returns `true` if [element] as a fully computed [ResolvedAst].
209 bool hasResolvedAst(Element element);
210
211 /// Returns the `ResolvedAst` for the [element].
212 ResolvedAst getResolvedAst(Element element);
213
207 /// Returns `true` if the [ResolutionImpact] for [element] is cached. 214 /// Returns `true` if the [ResolutionImpact] for [element] is cached.
208 bool hasResolutionImpact(Element element); 215 bool hasResolutionImpact(Element element);
209 216
210 /// Returns the precomputed [ResolutionImpact] for [element]. 217 /// Returns the precomputed [ResolutionImpact] for [element].
211 ResolutionImpact getResolutionImpact(Element element); 218 ResolutionImpact getResolutionImpact(Element element);
212 219
213 /// Returns the precomputed [WorldImpact] for [element]. 220 /// Returns the precomputed [WorldImpact] for [element].
214 WorldImpact getWorldImpact(Element element); 221 WorldImpact getWorldImpact(Element element);
215 222
216 /// Computes the [WorldImpact] for [element]. 223 /// Computes the [WorldImpact] for [element].
(...skipping 10 matching lines...) Expand all
227 } 234 }
228 235
229 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. 236 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`.
230 abstract class Parsing { 237 abstract class Parsing {
231 DiagnosticReporter get reporter; 238 DiagnosticReporter get reporter;
232 void parsePatchClass(ClassElement cls); 239 void parsePatchClass(ClassElement cls);
233 measure(f()); 240 measure(f());
234 ScannerOptions getScannerOptionsFor(Element element); 241 ScannerOptions getScannerOptionsFor(Element element);
235 ParserOptions get parserOptions; 242 ParserOptions get parserOptions;
236 } 243 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | pkg/compiler/lib/src/library_loader.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698