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

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

Issue 2897273002: Add FunctionEntity.asyncMarker and refactor SourceInformationStrategy to avoid ResolvedAst (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) 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.resolution; 5 library dart2js.resolution;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show Identifiers; 10 import '../common/names.dart' show Identifiers;
11 import '../common/resolution.dart' 11 import '../common/resolution.dart'
12 show ParsingContext, Resolution, ResolutionImpact, Target; 12 show ParsingContext, Resolution, ResolutionImpact, Target;
13 import '../common/tasks.dart' show CompilerTask, Measurer; 13 import '../common/tasks.dart' show CompilerTask, Measurer;
14 import '../compile_time_constants.dart' show ConstantCompiler; 14 import '../compile_time_constants.dart' show ConstantCompiler;
15 import '../constants/expressions.dart' 15 import '../constants/expressions.dart'
16 show 16 show
17 ConstantExpression, 17 ConstantExpression,
18 ConstantExpressionKind, 18 ConstantExpressionKind,
19 ConstructedConstantExpression, 19 ConstructedConstantExpression,
20 ErroneousConstantExpression; 20 ErroneousConstantExpression;
21 import '../constants/values.dart' show ConstantValue; 21 import '../constants/values.dart' show ConstantValue;
22 import '../common_elements.dart' show CommonElements; 22 import '../common_elements.dart' show CommonElements;
23 import '../elements/resolution_types.dart'; 23 import '../elements/resolution_types.dart';
24 import '../elements/elements.dart'; 24 import '../elements/elements.dart';
25 import '../elements/entities.dart' show AsyncMarker;
25 import '../elements/modelx.dart' 26 import '../elements/modelx.dart'
26 show 27 show
27 BaseClassElementX, 28 BaseClassElementX,
28 BaseFunctionElementX, 29 BaseFunctionElementX,
29 ConstructorElementX, 30 ConstructorElementX,
30 FieldElementX, 31 FieldElementX,
31 FunctionElementX, 32 FunctionElementX,
32 GetterElementX, 33 GetterElementX,
33 MetadataAnnotationX, 34 MetadataAnnotationX,
34 MixinApplicationElementX, 35 MixinApplicationElementX,
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 TreeElements get treeElements { 1162 TreeElements get treeElements {
1162 assert(_treeElements != null, 1163 assert(_treeElements != null,
1163 failedAt(this, "TreeElements have not been computed for $this.")); 1164 failedAt(this, "TreeElements have not been computed for $this."));
1164 return _treeElements; 1165 return _treeElements;
1165 } 1166 }
1166 1167
1167 void reuseElement() { 1168 void reuseElement() {
1168 _treeElements = null; 1169 _treeElements = null;
1169 } 1170 }
1170 } 1171 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/resolution_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698