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

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

Issue 2906253004: Avoid using Invalid{Statement,Expression,Initializer}. (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
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.fasta_accessors; 5 library fasta.fasta_accessors;
6 6
7 export 'frontend_accessors.dart' show wrapInvalid;
8
9 import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart' 7 import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart'
10 show KernelArguments, KernelMethodInvocation; 8 show KernelArguments, KernelMethodInvocation;
11 9
12 import 'package:front_end/src/fasta/kernel/utils.dart' show offsetForToken; 10 import 'package:front_end/src/fasta/kernel/utils.dart' show offsetForToken;
13 11
14 import 'package:front_end/src/scanner/token.dart' show Token; 12 import 'package:front_end/src/scanner/token.dart' show Token;
15 13
16 import 'frontend_accessors.dart' show Accessor, buildIsNull, makeLet; 14 import 'frontend_accessors.dart' show Accessor, buildIsNull, makeLet;
17 15
18 import 'package:front_end/src/fasta/type_inference/type_promotion.dart' 16 import 'package:front_end/src/fasta/type_inference/type_promotion.dart'
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 new NullLiteral(), 873 new NullLiteral(),
876 new KernelMethodInvocation( 874 new KernelMethodInvocation(
877 new VariableGet(variable), name, arguments) 875 new VariableGet(variable), name, arguments)
878 ..fileOffset = offset, 876 ..fileOffset = offset,
879 const DynamicType())); 877 const DynamicType()));
880 } else { 878 } else {
881 return new KernelMethodInvocation(receiver, name, arguments) 879 return new KernelMethodInvocation(receiver, name, arguments)
882 ..fileOffset = offset; 880 ..fileOffset = offset;
883 } 881 }
884 } 882 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698