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

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

Issue 2897273002: Add FunctionEntity.asyncMarker and refactor SourceInformationStrategy to avoid ResolvedAst (Closed)
Patch Set: Created 3 years, 6 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.typechecker; 5 library dart2js.typechecker;
6 6
7 import 'common/names.dart' show Identifiers; 7 import 'common/names.dart' show Identifiers;
8 import 'common/resolution.dart' show Resolution; 8 import 'common/resolution.dart' show Resolution;
9 import 'common/tasks.dart' show CompilerTask; 9 import 'common/tasks.dart' show CompilerTask;
10 import 'common.dart'; 10 import 'common.dart';
11 import 'compiler.dart' show Compiler; 11 import 'compiler.dart' show Compiler;
12 import 'constants/expressions.dart'; 12 import 'constants/expressions.dart';
13 import 'constants/values.dart'; 13 import 'constants/values.dart';
14 import 'common_elements.dart'; 14 import 'common_elements.dart';
15 import 'elements/resolution_types.dart'; 15 import 'elements/resolution_types.dart';
16 import 'elements/elements.dart' 16 import 'elements/elements.dart'
17 show 17 show
18 AbstractFieldElement, 18 AbstractFieldElement,
19 AstElement, 19 AstElement,
20 AsyncMarker,
21 ClassElement, 20 ClassElement,
22 ConstructorElement, 21 ConstructorElement,
23 Element, 22 Element,
24 Elements, 23 Elements,
25 EnumClassElement, 24 EnumClassElement,
26 EnumConstantElement, 25 EnumConstantElement,
27 ExecutableElement, 26 ExecutableElement,
28 FieldElement, 27 FieldElement,
29 FunctionElement, 28 FunctionElement,
30 GetterElement, 29 GetterElement,
31 InitializingFormalElement, 30 InitializingFormalElement,
32 LibraryElement, 31 LibraryElement,
33 MemberSignature, 32 MemberSignature,
34 ParameterElement, 33 ParameterElement,
35 ResolvedAst, 34 ResolvedAst,
36 SetterElement, 35 SetterElement,
37 TypeDeclarationElement, 36 TypeDeclarationElement,
38 TypedElement, 37 TypedElement,
39 VariableElement; 38 VariableElement;
39 import 'elements/entities.dart' show AsyncMarker;
40 import 'elements/names.dart'; 40 import 'elements/names.dart';
41 import 'enqueue.dart' show DeferredAction; 41 import 'enqueue.dart' show DeferredAction;
42 import 'resolution/class_members.dart' show MembersCreator, ErroneousMember; 42 import 'resolution/class_members.dart' show MembersCreator, ErroneousMember;
43 import 'resolution/tree_elements.dart' show TreeElements; 43 import 'resolution/tree_elements.dart' show TreeElements;
44 import 'tree/tree.dart'; 44 import 'tree/tree.dart';
45 import 'util/util.dart' show Link, LinkBuilder; 45 import 'util/util.dart' show Link, LinkBuilder;
46 46
47 class TypeCheckerTask extends CompilerTask { 47 class TypeCheckerTask extends CompilerTask {
48 final Compiler compiler; 48 final Compiler compiler;
49 TypeCheckerTask(Compiler compiler) 49 TypeCheckerTask(Compiler compiler)
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 2057
2058 visitTypedef(Typedef node) { 2058 visitTypedef(Typedef node) {
2059 // Do not typecheck [Typedef] nodes. 2059 // Do not typecheck [Typedef] nodes.
2060 } 2060 }
2061 2061
2062 visitNode(Node node) { 2062 visitNode(Node node) {
2063 reporter.internalError(node, 2063 reporter.internalError(node,
2064 'Unexpected node ${node.getObjectDescription()} in the type checker.'); 2064 'Unexpected node ${node.getObjectDescription()} in the type checker.');
2065 } 2065 }
2066 } 2066 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart ('k') | tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698