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

Side by Side Diff: pkg/compiler/lib/src/resolution/resolution_common.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.common; 5 library dart2js.resolution.common;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Resolution; 8 import '../common/resolution.dart' show Resolution;
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../elements/entities.dart' show AsyncMarker;
10 import '../enqueue.dart' show DeferredAction; 11 import '../enqueue.dart' show DeferredAction;
11 import '../tree/tree.dart'; 12 import '../tree/tree.dart';
12 import 'registry.dart' show ResolutionRegistry; 13 import 'registry.dart' show ResolutionRegistry;
13 import 'scope.dart' show Scope; 14 import 'scope.dart' show Scope;
14 import 'type_resolver.dart' show TypeResolver; 15 import 'type_resolver.dart' show TypeResolver;
15 16
16 class CommonResolverVisitor<R> extends Visitor<R> { 17 class CommonResolverVisitor<R> extends Visitor<R> {
17 final Resolution resolution; 18 final Resolution resolution;
18 19
19 CommonResolverVisitor(this.resolution); 20 CommonResolverVisitor(this.resolution);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 String name, Spannable definition, Spannable existing) { 94 String name, Spannable definition, Spannable existing) {
94 reporter.reportError( 95 reporter.reportError(
95 reporter.createMessage( 96 reporter.createMessage(
96 definition, MessageKind.DUPLICATE_DEFINITION, {'name': name}), 97 definition, MessageKind.DUPLICATE_DEFINITION, {'name': name}),
97 <DiagnosticMessage>[ 98 <DiagnosticMessage>[
98 reporter.createMessage( 99 reporter.createMessage(
99 existing, MessageKind.EXISTING_DEFINITION, {'name': name}), 100 existing, MessageKind.EXISTING_DEFINITION, {'name': name}),
100 ]); 101 ]);
101 } 102 }
102 } 103 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | pkg/compiler/lib/src/resolution/signatures.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698