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

Side by Side Diff: pkg/compiler/lib/src/js_backend/no_such_method_registry.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import '../common.dart'; 5 import '../common.dart';
6 import '../common_elements.dart' show CommonElements; 6 import '../common_elements.dart' show CommonElements;
7 import '../common/names.dart' show Identifiers, Selectors; 7 import '../common/names.dart' show Identifiers, Selectors;
8 import '../elements/entities.dart'; 8 import '../elements/entities.dart';
9 import '../types/types.dart'; 9 import '../types/types.dart';
10 10
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 NOT_APPLICABLE, 188 NOT_APPLICABLE,
189 OTHER, 189 OTHER,
190 } 190 }
191 191
192 /// Interface for determining the form of a `noSuchMethod` implementation. 192 /// Interface for determining the form of a `noSuchMethod` implementation.
193 abstract class NoSuchMethodResolver { 193 abstract class NoSuchMethodResolver {
194 /// Computes whether [method] is of the form 194 /// Computes whether [method] is of the form
195 /// 195 ///
196 /// noSuchMethod(i) => super.noSuchMethod(i); 196 /// noSuchMethod(i) => super.noSuchMethod(i);
197 /// 197 ///
198 bool hasForwardingSyntax(FunctionEntity method); 198 bool hasForwardingSyntax(covariant FunctionEntity method);
199 199
200 /// Computes whether [method] is of the form 200 /// Computes whether [method] is of the form
201 /// 201 ///
202 /// noSuchMethod(i) => throw new Error(); 202 /// noSuchMethod(i) => throw new Error();
203 /// 203 ///
204 bool hasThrowingSyntax(FunctionEntity method); 204 bool hasThrowingSyntax(covariant FunctionEntity method);
205 205
206 /// Returns the `noSuchMethod` that [method] overrides. 206 /// Returns the `noSuchMethod` that [method] overrides.
207 FunctionEntity getSuperNoSuchMethod(FunctionEntity method); 207 FunctionEntity getSuperNoSuchMethod(covariant FunctionEntity method);
208 } 208 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer_names.dart ('k') | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698