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

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

Issue 2928033005: Add type inference for assignment to local variables. (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' 10 import '../parser/parser.dart'
(...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after
3093 } 3093 }
3094 3094
3095 Expression buildNullAwareAssignment(Expression value, DartType type, 3095 Expression buildNullAwareAssignment(Expression value, DartType type,
3096 {bool voidContext: false}) { 3096 {bool voidContext: false}) {
3097 return makeInvalidWrite(value); 3097 return makeInvalidWrite(value);
3098 } 3098 }
3099 3099
3100 Expression buildCompoundAssignment(Name binaryOperator, Expression value, 3100 Expression buildCompoundAssignment(Name binaryOperator, Expression value,
3101 {int offset: TreeNode.noOffset, 3101 {int offset: TreeNode.noOffset,
3102 bool voidContext: false, 3102 bool voidContext: false,
3103 Procedure interfaceTarget}) { 3103 Procedure interfaceTarget,
3104 bool isPreIncDec: false}) {
3104 return makeInvalidWrite(value); 3105 return makeInvalidWrite(value);
3105 } 3106 }
3106 3107
3107 Expression buildPrefixIncrement(Name binaryOperator, 3108 Expression buildPrefixIncrement(Name binaryOperator,
3108 {int offset: TreeNode.noOffset, 3109 {int offset: TreeNode.noOffset,
3109 bool voidContext: false, 3110 bool voidContext: false,
3110 Procedure interfaceTarget}) { 3111 Procedure interfaceTarget}) {
3111 return makeInvalidWrite(null); 3112 return makeInvalidWrite(null);
3112 } 3113 }
3113 3114
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
3473 if (starToken == null) { 3474 if (starToken == null) {
3474 return AsyncMarker.Async; 3475 return AsyncMarker.Async;
3475 } else { 3476 } else {
3476 assert(identical(starToken.stringValue, "*")); 3477 assert(identical(starToken.stringValue, "*"));
3477 return AsyncMarker.AsyncStar; 3478 return AsyncMarker.AsyncStar;
3478 } 3479 }
3479 } else { 3480 } else {
3480 return internalError("Unknown async modifier: $asyncToken"); 3481 return internalError("Unknown async modifier: $asyncToken");
3481 } 3482 }
3482 } 3483 }
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