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

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

Issue 2682333004: Remove convertConstructors. (Closed)
Patch Set: Long line. 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.builder; 5 library fasta.builder;
6 6
7 import '../errors.dart' show 7 import '../errors.dart' show
8 internalError; 8 internalError;
9 9
10 export 'class_builder.dart' show 10 export 'class_builder.dart' show
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 Uri get fileUri => null; 97 Uri get fileUri => null;
98 98
99 /// Resolve types (lookup names in scope) recorded in this builder and return 99 /// Resolve types (lookup names in scope) recorded in this builder and return
100 /// the number of types resolved. 100 /// the number of types resolved.
101 int resolveTypes(Builder parent) => 0; 101 int resolveTypes(Builder parent) => 0;
102 102
103 /// Resolve constructors (lookup names in scope) recorded in this builder and 103 /// Resolve constructors (lookup names in scope) recorded in this builder and
104 /// return the number of constructors resolved. 104 /// return the number of constructors resolved.
105 int resolveConstructors(Builder parent) => 0; 105 int resolveConstructors(Builder parent) => 0;
106 106
107 /// Look for methods with the same name as their enclosing class and convert
108 /// them to constructors. Return the number of methods converted to
109 /// constructors.
110 int convertConstructors(Builder parent) => 0;
111
112 /// This builder and [other] has been imported into [library] using [name]. 107 /// This builder and [other] has been imported into [library] using [name].
113 /// 108 ///
114 /// This method handles this case according to the Dart language 109 /// This method handles this case according to the Dart language
115 /// specification. 110 /// specification.
116 Builder combineAmbiguousImport(String name, Builder other, 111 Builder combineAmbiguousImport(String name, Builder other,
117 LibraryBuilder library) { 112 LibraryBuilder library) {
118 if (other == this) return this; 113 if (other == this) return this;
119 bool isLocal = false; 114 bool isLocal = false;
120 Builder preferred; 115 Builder preferred;
121 Builder hidden; 116 Builder hidden;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 173
179 static Uri getUri(Builder builder) { 174 static Uri getUri(Builder builder) {
180 if (builder == null) return internalError("Builder is null."); 175 if (builder == null) return internalError("Builder is null.");
181 while (builder != null) { 176 while (builder != null) {
182 if (builder is LibraryBuilder) return builder.uri; 177 if (builder is LibraryBuilder) return builder.uri;
183 builder = builder.parent; 178 builder = builder.parent;
184 } 179 }
185 return internalError("No library parent."); 180 return internalError("No library parent.");
186 } 181 }
187 } 182 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698