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

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

Issue 2902113005: Complain about duplicated names. (Closed)
Patch Set: Update status file. Created 3 years, 7 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; 7 export 'frontend_accessors.dart' show wrapInvalid;
8 8
9 import 'package:front_end/src/fasta/kernel/utils.dart' show offsetForToken; 9 import 'package:front_end/src/fasta/kernel/utils.dart' show offsetForToken;
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 Expression buildProblemExpression(ProblemBuilder builder, int offset); 80 Expression buildProblemExpression(ProblemBuilder builder, int offset);
81 81
82 Expression throwNoSuchMethodError( 82 Expression throwNoSuchMethodError(
83 String name, Arguments arguments, int offset, 83 String name, Arguments arguments, int offset,
84 {bool isSuper: false, isGetter: false, isSetter: false}); 84 {bool isSuper: false, isGetter: false, isSetter: false});
85 85
86 bool checkArguments(FunctionNode function, Arguments arguments, 86 bool checkArguments(FunctionNode function, Arguments arguments,
87 List<TypeParameter> typeParameters); 87 List<TypeParameter> typeParameters);
88 88
89 StaticGet makeStaticGet(Member readTarget, Token token); 89 StaticGet makeStaticGet(Member readTarget, Token token);
90
91 dynamic addCompileTimeError(int charOffset, String message,
92 {bool silent: false});
90 } 93 }
91 94
92 abstract class FastaAccessor implements Accessor { 95 abstract class FastaAccessor implements Accessor {
93 BuilderHelper get helper; 96 BuilderHelper get helper;
94 97
95 String get plainNameForRead; 98 String get plainNameForRead;
96 99
97 Uri get uri => helper.uri; 100 Uri get uri => helper.uri;
98 101
99 String get plainNameForWrite => plainNameForRead; 102 String get plainNameForWrite => plainNameForRead;
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 new NullLiteral(), 936 new NullLiteral(),
934 astFactory.methodInvocation( 937 astFactory.methodInvocation(
935 new VariableGet(variable), name, arguments) 938 new VariableGet(variable), name, arguments)
936 ..fileOffset = offset, 939 ..fileOffset = offset,
937 const DynamicType())); 940 const DynamicType()));
938 } else { 941 } else {
939 return astFactory.methodInvocation(receiver, name, arguments) 942 return astFactory.methodInvocation(receiver, name, arguments)
940 ..fileOffset = offset; 943 ..fileOffset = offset;
941 } 944 }
942 } 945 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698