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:
Ahmed Ashour 2021-08-22 16:33:56 +00:00 committed by commit-bot@chromium.org
parent 86898c2ee6
commit fc9ead5e9d
4 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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);

View file

@ -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;

View file

@ -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