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

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/constructor_reference_builder.dart

Issue 2704753002: Implement line and column numbers. (Closed)
Patch Set: Created 3 years, 10 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 fasta.constructor_reference_builder; 5 library fasta.constructor_reference_builder;
6 6
7 import 'builder.dart' show 7 import 'builder.dart' show
8 PrefixBuilder, 8 PrefixBuilder,
9 ClassBuilder, 9 ClassBuilder,
10 Builder, 10 Builder,
11 TypeBuilder; 11 TypeBuilder;
12 12
13 import '../messages.dart' show
14 warning;
15
13 import 'scope.dart' show 16 import 'scope.dart' show
14 Scope; 17 Scope;
15 18
16 class ConstructorReferenceBuilder extends Builder { 19 class ConstructorReferenceBuilder extends Builder {
17 final String name; 20 final String name;
18 21
19 final List<TypeBuilder> typeArguments; 22 final List<TypeBuilder> typeArguments;
20 23
21 /// This is the name of a named constructor. As `bar` in `new Foo<T>.bar()`. 24 /// This is the name of a named constructor. As `bar` in `new Foo<T>.bar()`.
22 final String suffix; 25 final String suffix;
(...skipping 24 matching lines...) Expand all
47 if (suffix == null) { 50 if (suffix == null) {
48 target = builder; 51 target = builder;
49 return; 52 return;
50 } 53 }
51 } 54 }
52 } 55 }
53 if (builder is ClassBuilder) { 56 if (builder is ClassBuilder) {
54 target = builder.constructors[suffix ?? ""]; 57 target = builder.constructors[suffix ?? ""];
55 } 58 }
56 if (target == null) { 59 if (target == null) {
57 print("Couldn't find constructor $fullNameForErrors."); 60 warning(null, -1, "Couldn't find constructor '$fullNameForErrors'.");
58 } 61 }
59 } 62 }
60 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698