OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |