mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 16:04:53 +00:00
Fix grammar
Fixes #46961 Change-Id: Ic4534e7e27a0ecee681992cb00d92f0d290a7054 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210729 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
parent
86898c2ee6
commit
fc9ead5e9d
|
@ -58,9 +58,9 @@ void f() {
|
|||
}
|
||||
|
||||
Future<void> test_constructor_named_potential() async {
|
||||
// Constructors in other classes shouldn't be considered potential matches,
|
||||
// nor should unresolved method calls, since constructor call sites are
|
||||
// statically bound to their targets).
|
||||
// Constructors in other classes shouldn't be considered potential matches.
|
||||
// Unresolved method calls should also not be considered potential matches,
|
||||
// because constructor call sites are statically bound to their targets.
|
||||
addTestFile('''
|
||||
class A {
|
||||
A.named(p); // A
|
||||
|
|
|
@ -2811,7 +2811,7 @@ class ErrorVerifier extends RecursiveAstVisitor<void>
|
|||
|
||||
var enclosingClass = _enclosingClass;
|
||||
if (enclosingClass == null) {
|
||||
// The field is in an extension and should handled elsewhere.
|
||||
// The field is in an extension and should be handled elsewhere.
|
||||
return;
|
||||
}
|
||||
var hasConstConstructor = enclosingClass.constructors.any((c) => c.isConst);
|
||||
|
|
|
@ -1566,7 +1566,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
|
|||
return assignField();
|
||||
}
|
||||
// TODO(sra): Implement inlining of setters with checks for new rti. The
|
||||
// check and field assignment for the setter should inlined if this is
|
||||
// check and field assignment for the setter should be inlined if this is
|
||||
// the only call to the setter, or the current function already computes
|
||||
// the type of the field.
|
||||
node.needsCheck = true;
|
||||
|
|
|
@ -2675,7 +2675,7 @@ class ClassHierarchyNodeBuilder {
|
|||
// // {Super.method, Class.method}
|
||||
// }
|
||||
//
|
||||
// Maybe we should recognized this.
|
||||
// Maybe we should recognize this.
|
||||
interfaceMembers.addAll(implementedMembers);
|
||||
|
||||
/// Normally, if only one member defines the interface member there
|
||||
|
|
Loading…
Reference in a new issue