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

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

Issue 2908123002: Remove accessor properties not used by Fasta. (Closed)
Patch Set: Created 3 years, 6 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/kernel/fasta_accessors.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.body_builder; 5 library fasta.body_builder;
6 6
7 import '../fasta_codes.dart' 7 import '../fasta_codes.dart'
8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody; 8 show FastaMessage, codeExpectedButGot, codeExpectedFunctionBody;
9 9
10 import '../parser/parser.dart' show FormalParameterType, MemberKind, optional; 10 import '../parser/parser.dart' show FormalParameterType, MemberKind, optional;
(...skipping 2817 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 2828
2829 abstract class ContextAccessor extends FastaAccessor { 2829 abstract class ContextAccessor extends FastaAccessor {
2830 final BuilderHelper helper; 2830 final BuilderHelper helper;
2831 2831
2832 final FastaAccessor accessor; 2832 final FastaAccessor accessor;
2833 2833
2834 final Token token; 2834 final Token token;
2835 2835
2836 ContextAccessor(this.helper, this.token, this.accessor); 2836 ContextAccessor(this.helper, this.token, this.accessor);
2837 2837
2838 @override
2839 Expression get builtBinary => internalError("Unsupported operation.");
2840
2841 @override
2842 void set builtBinary(Expression expression) {
2843 internalError("Unsupported operation.");
2844 }
2845
2846 @override
2847 Expression get builtGetter => internalError("Unsupported operation.");
2848
2849 @override
2850 void set builtGetter(Expression expression) {
2851 internalError("Unsupported operation.");
2852 }
2853
2854 String get plainNameForRead => internalError("Unsupported operation."); 2838 String get plainNameForRead => internalError("Unsupported operation.");
2855 2839
2856 Expression doInvocation(int charOffset, Arguments arguments) { 2840 Expression doInvocation(int charOffset, Arguments arguments) {
2857 return internalError("Unhandled: ${runtimeType}", uri, charOffset); 2841 return internalError("Unhandled: ${runtimeType}", uri, charOffset);
2858 } 2842 }
2859 2843
2860 Expression buildSimpleRead(); 2844 Expression buildSimpleRead();
2861 2845
2862 Expression buildForEffect(); 2846 Expression buildForEffect();
2863 2847
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
3254 if (starToken == null) { 3238 if (starToken == null) {
3255 return AsyncMarker.Async; 3239 return AsyncMarker.Async;
3256 } else { 3240 } else {
3257 assert(identical(starToken.stringValue, "*")); 3241 assert(identical(starToken.stringValue, "*"));
3258 return AsyncMarker.AsyncStar; 3242 return AsyncMarker.AsyncStar;
3259 } 3243 }
3260 } else { 3244 } else {
3261 return internalError("Unknown async modifier: $asyncToken"); 3245 return internalError("Unknown async modifier: $asyncToken");
3262 } 3246 }
3263 } 3247 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698