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.fasta_accessors; | 5 library fasta.fasta_accessors; |
6 | 6 |
7 import 'package:kernel/ast.dart' | 7 import 'package:kernel/ast.dart' |
8 hide InvalidExpression, InvalidInitializer, InvalidStatement; | 8 hide InvalidExpression, InvalidInitializer, InvalidStatement; |
9 | 9 |
10 import '../../scanner/token.dart' show Token; | 10 import '../../scanner/token.dart' show Token; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 Expression buildMethodInvocation( | 119 Expression buildMethodInvocation( |
120 Expression receiver, Name name, Arguments arguments, int offset, | 120 Expression receiver, Name name, Arguments arguments, int offset, |
121 {bool isConstantExpression, bool isNullAware, bool isImplicitCall}); | 121 {bool isConstantExpression, bool isNullAware, bool isImplicitCall}); |
122 | 122 |
123 DartType validatedTypeVariableUse( | 123 DartType validatedTypeVariableUse( |
124 TypeParameterType type, int offset, bool nonInstanceAccessIsError); | 124 TypeParameterType type, int offset, bool nonInstanceAccessIsError); |
125 | 125 |
126 void warning(Message message, int charOffset); | 126 void warning(Message message, int charOffset); |
127 | 127 |
128 void deprecated_warning(String message, [int charOffset]); | |
129 | |
130 void warnUnresolvedSuperGet(Name name, int charOffset); | 128 void warnUnresolvedSuperGet(Name name, int charOffset); |
131 | 129 |
132 void warnUnresolvedSuperSet(Name name, int charOffset); | 130 void warnUnresolvedSuperSet(Name name, int charOffset); |
133 | 131 |
134 void warnUnresolvedSuperMethod(Name name, int charOffset); | 132 void warnUnresolvedSuperMethod(Name name, int charOffset); |
135 } | 133 } |
136 | 134 |
137 abstract class FastaAccessor implements Accessor { | 135 abstract class FastaAccessor implements Accessor { |
138 BuilderHelper get helper; | 136 BuilderHelper get helper; |
139 | 137 |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 offset ??= offsetForToken(this.token); | 1056 offset ??= offsetForToken(this.token); |
1059 return helper.throwNoSuchMethodError(new NullLiteral()..fileOffset = offset, | 1057 return helper.throwNoSuchMethodError(new NullLiteral()..fileOffset = offset, |
1060 plainNameForRead, arguments, offset, | 1058 plainNameForRead, arguments, offset, |
1061 isGetter: isGetter, isSetter: isSetter); | 1059 isGetter: isGetter, isSetter: isSetter); |
1062 } | 1060 } |
1063 } | 1061 } |
1064 | 1062 |
1065 bool isFieldOrGetter(Member member) { | 1063 bool isFieldOrGetter(Member member) { |
1066 return member is Field || (member is Procedure && member.isGetter); | 1064 return member is Field || (member is Procedure && member.isGetter); |
1067 } | 1065 } |
OLD | NEW |