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

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

Issue 2765283002: Various errors on constant expressions. (Closed)
Patch Set: Update status files. Created 3 years, 9 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/type_declaration_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 internalError; 7 import '../errors.dart' show internalError;
8 8
9 import '../messages.dart' show nit; 9 import '../messages.dart' show nit;
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 bool get isSetter => false; 155 bool get isSetter => false;
156 156
157 bool get isInstanceMember => false; 157 bool get isInstanceMember => false;
158 158
159 bool get isStatic => false; 159 bool get isStatic => false;
160 160
161 bool get isTopLevel => false; 161 bool get isTopLevel => false;
162 162
163 bool get isTypeDeclaration => false; 163 bool get isTypeDeclaration => false;
164 164
165 bool get isTypeVariable => false;
166
165 bool get isConstructor => false; 167 bool get isConstructor => false;
166 168
167 bool get isFactory => false; 169 bool get isFactory => false;
168 170
169 bool get isLocal => false; 171 bool get isLocal => false;
170 172
173 bool get isConst => false;
174
171 get target => internalError("Unsupported operation $runtimeType."); 175 get target => internalError("Unsupported operation $runtimeType.");
172 176
173 bool get hasProblem => false; 177 bool get hasProblem => false;
174 178
175 String get fullNameForErrors; 179 String get fullNameForErrors;
176 180
177 static Uri getUri(Builder builder) { 181 static Uri getUri(Builder builder) {
178 if (builder == null) return internalError("Builder is null."); 182 if (builder == null) return internalError("Builder is null.");
179 while (builder != null) { 183 while (builder != null) {
180 if (builder is LibraryBuilder) return builder.uri; 184 if (builder is LibraryBuilder) return builder.uri;
181 builder = builder.parent; 185 builder = builder.parent;
182 } 186 }
183 return internalError("No library parent."); 187 return internalError("No library parent.");
184 } 188 }
185 } 189 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/type_declaration_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698